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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: A = None
        self.q: D = None
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: C = None
        self.t: E = None
        self.z: E = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: B = None
        self.r: F = None
        self.s: E = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: E = None
        self.v: B = None
        self.z: C = None
        self.o: D = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: A = None
        self.q: D = None
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: C = None
        self.t: E = None
        self.z: E = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: B = None
        self.r: F = None
        self.s: E = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: E = None
        self.v: B = None
        self.z: C = None
        self.o: D = None
        self.s: E = None
        self.txt = txt

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

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