class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: H = None
        self.v: C = None
        self.o: B = None
        self.z: I = None
        self.x: F = None
        self.p: B = None
        self.y: F = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: H = None
        self.o: A = None
        self.y: F = None
        self.p: J = None
        self.q: G = None
        self.t: F = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: B = None
        self.y: A = None
        self.x: F = None
        self.q: E = None
        self.w: B = None
        self.t: J = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: J = None
        self.p: I = None
        self.y: G = None
        self.s: J = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

l = A("l")
b = B("b")
k = C("k")
c = D("c")
n = E("n")
f = F("f")
h = G("h")
g = H("g")
a = I("a")
e = J("e")

l.t = f
l.x = f
l.y = f
l.r = g
l.v = k
l.u = k
l.o = b
l.p = b
l.z = a
b.o = h
b.t = f
k.w = n
k.x = g
k.z = g
k.o = l
k.y = f
k.t = f
k.p = e
k.q = h
c.u = l
c.y = l
c.s = b
c.w = b
c.x = f
c.q = n
c.v = n
c.t = e
n.p = a
n.t = e
f.u = l
f.r = e
f.s = e
f.p = a
f.y = h
f.v = c
h.q = c
g.z = b
a.u = n
a.y = n
a.o = e
a.v = e
a.s = l
a.z = f
e.z = g
assert a.o.z.z.o.q.q.t.txt == "
class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: H = None
        self.v: C = None
        self.o: B = None
        self.z: I = None
        self.x: F = None
        self.p: B = None
        self.y: F = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: H = None
        self.o: A = None
        self.y: F = None
        self.p: J = None
        self.q: G = None
        self.t: F = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: B = None
        self.y: A = None
        self.x: F = None
        self.q: E = None
        self.w: B = None
        self.t: J = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: J = None
        self.p: I = None
        self.y: G = None
        self.s: J = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

l = A("l")
b = B("b")
k = C("k")
c = D("c")
n = E("n")
f = F("f")
h = G("h")
g = H("g")
a = I("a")
e = J("e")

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