class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: D = None
        self.p: H = None
        self.x: E = None
        self.v: G = None
        self.u: B = None
        self.z: E = None
        self.w: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: G = None
        self.s: E = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: E = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: H = None
        self.v: B = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.y: D = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: E = None
        self.q: I = None
        self.w: E = None
        self.t: C = None
        self.r: H = None
        self.v: D = None
        self.z: E = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: A = None
        self.y: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: A = None
        self.u: D = None
        self.y: C = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

d = A("d")
j = B("j")
l = C("l")
i = D("i")
a = E("a")
e = F("e")
b = G("b")
g = H("g")
k = I("k")
n = B("n")

d.s = a
d.x = a
d.z = a
d.y = i
d.p = g
d.v = b
d.u = n
d.w = k
j.p = g
j.v = b
j.s = a
j.z = a
l.x = d
l.r = a
l.s = a
i.p = d
i.r = g
i.v = n
i.o = j
a.q = l
a.y = i
a.w = e
e.p = k
e.q = k
e.u = a
e.w = a
e.z = a
e.t = l
e.r = g
e.s = g
e.v = i
b.v = a
b.w = d
b.y = k
g.v = i
g.u = i
g.w = d
g.t = d
g.y = l
k.u = g
n.p = g
n.v = b
n.s = a
n.z = a
assert j.s.w.v.o.v.y.u.w.u.txt == "
class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: D = None
        self.p: H = None
        self.x: E = None
        self.v: G = None
        self.u: B = None
        self.z: E = None
        self.w: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: G = None
        self.s: E = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: E = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: H = None
        self.v: B = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.y: D = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: E = None
        self.q: I = None
        self.w: E = None
        self.t: C = None
        self.r: H = None
        self.v: D = None
        self.z: E = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: A = None
        self.y: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: A = None
        self.u: D = None
        self.y: C = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

d = A("d")
j = B("j")
l = C("l")
i = D("i")
a = E("a")
e = F("e")
b = G("b")
g = H("g")
k = I("k")
n = B("n")

d.s = a
d.x = a
d.z = a
d.y = i
d.p = g
d.v = b
d.u = n
d.w = k
j.p = g
j.v = b
j.s = a
j.z = a
l.x = d
l.r = a
l.s = a
i.p = d
i.r = g
i.v = n
i.o = j
a.q = l
a.y = i
a.w = e
e.p = k
e.q = k
e.u = a
e.w = a
e.z = a
e.t = l
e.r = g
e.s = g
e.v = i
b.v = a
b.w = d
b.y = k
g.v = i
g.u = i
g.w = d
g.t = d
g.y = l
k.u = g
n.p = g
n.v = b
n.s = a
n.z = a
assert j.s.w.v.o.v.y.u.w.u.txt == "n"