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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: C = None
        self.o: D = None
        self.z: D = None
        self.w: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: D = None
        self.z: D = None
        self.x: B = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: A = None
        self.t: A = None
        self.o: A = None
        self.x: C = None
        self.w: F = None
        self.txt = txt

e = A("e")
c = B("c")
k = C("k")
g = D("g")
b = E("b")
j = F("j")
d = F("d")
h = F("h")
i = B("i")

e.x = k
e.u = c
e.w = b
c.q = k
c.r = k
c.o = g
c.z = g
c.w = g
k.y = e
k.u = e
k.o = h
k.r = i
k.w = b
g.t = e
g.q = i
g.z = k
b.p = k
b.r = k
b.w = g
b.z = g
b.x = c
j.u = b
j.z = e
j.t = e
j.o = e
j.x = k
j.w = d
d.u = b
d.z = e
d.t = e
d.o = e
d.x = k
d.w = j
h.u = b
h.z = e
h.t = e
h.o = e
h.x = k
h.w = j
i.q = k
i.r = k
i.o = g
i.z = g
i.w = g
assert d.w.z.u.o.t.txt == "
class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: B = None
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: C = None
        self.o: D = None
        self.z: D = None
        self.w: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: D = None
        self.z: D = None
        self.x: B = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: A = None
        self.t: A = None
        self.o: A = None
        self.x: C = None
        self.w: F = None
        self.txt = txt

e = A("e")
c = B("c")
k = C("k")
g = D("g")
b = E("b")
j = F("j")
d = F("d")
h = F("h")
i = B("i")

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