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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: D = None
        self.s: D = None
        self.o: C = None
        self.w: F = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: E = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: E = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: A = None
        self.s: B = None
        self.o: D = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: A = None
        self.txt = txt

m = A("m")
e = B("e")
d = C("d")
i = D("i")
n = E("n")
g = F("g")
a = C("a")
c = E("c")
l = C("l")
b = B("b")

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: D = None
        self.s: D = None
        self.o: C = None
        self.w: F = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: E = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: E = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: A = None
        self.s: B = None
        self.o: D = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: A = None
        self.txt = txt

m = A("m")
e = B("e")
d = C("d")
i = D("i")
n = E("n")
g = F("g")
a = C("a")
c = E("c")
l = C("l")
b = B("b")

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