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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: B = None
        self.x: F = None
        self.v: F = None
        self.q: F = None
        self.o: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: D = None
        self.r: A = None
        self.t: C = None
        self.p: B = None
        self.v: F = None
        self.txt = txt

i = A("i")
c = B("c")
h = C("h")
a = D("a")
f = E("f")
l = F("l")
e = F("e")

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: B = None
        self.x: F = None
        self.v: F = None
        self.q: F = None
        self.o: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: D = None
        self.r: A = None
        self.t: C = None
        self.p: B = None
        self.v: F = None
        self.txt = txt

i = A("i")
c = B("c")
h = C("h")
a = D("a")
f = E("f")
l = F("l")
e = F("e")

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