class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: G = None
        self.r: B = None
        self.q: C = None
        self.o: E = None
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: E = None
        self.x: E = None
        self.u: G = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: H = None
        self.o: F = None
        self.w: G = None
        self.s: D = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.u: B = None
        self.y: E = None
        self.w: B = None
        self.p: C = None
        self.x: C = None
        self.q: C = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: G = None
        self.q: C = None
        self.p: C = None
        self.t: B = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: B = None
        self.r: D = None
        self.y: A = None
        self.w: E = None
        self.x: C = None
        self.u: B = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

l = A("l")
b = B("b")
f = C("f")
e = D("e")
a = E("a")
c = F("c")
j = G("j")
g = H("g")
m = I("m")

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: E = None
        self.x: E = None
        self.u: G = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: H = None
        self.o: F = None
        self.w: G = None
        self.s: D = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.u: B = None
        self.y: E = None
        self.w: B = None
        self.p: C = None
        self.x: C = None
        self.q: C = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: G = None
        self.q: C = None
        self.p: C = None
        self.t: B = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: B = None
        self.r: D = None
        self.y: A = None
        self.w: E = None
        self.x: C = None
        self.u: B = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

l = A("l")
b = B("b")
f = C("f")
e = D("e")
a = E("a")
c = F("c")
j = G("j")
g = H("g")
m = I("m")

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