class A:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: G = None
        self.y: I = None
        self.q: D = None
        self.t: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: E = None
        self.s: A = None
        self.w: I = None
        self.t: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.s: F = None
        self.u: B = None
        self.o: D = None
        self.q: B = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: C = None
        self.v: C = None
        self.t: A = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: I = None
        self.s: F = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: I = None
        self.t: C = None
        self.s: F = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: C = None
        self.q: J = None
        self.v: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: E = None
        self.y: E = None
        self.p: H = None
        self.z: I = None
        self.u: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: E = None
        self.s: A = None
        self.w: I = None
        self.t: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.s: F = None
        self.u: B = None
        self.o: D = None
        self.q: B = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: C = None
        self.v: C = None
        self.t: A = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: I = None
        self.s: F = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: I = None
        self.t: C = None
        self.s: F = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: C = None
        self.q: J = None
        self.v: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: E = None
        self.y: E = None
        self.p: H = None
        self.z: I = None
        self.u: A = None
        self.txt = txt

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

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