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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: C = None
        self.v: C = None
        self.txt = txt

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

e = A("e")
f = B("f")
a = C("a")
h = D("h")
c = E("c")
n = F("n")
k = B("k")
b = C("b")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: C = None
        self.v: C = None
        self.txt = txt

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

e = A("e")
f = B("f")
a = C("a")
h = D("h")
c = E("c")
n = F("n")
k = B("k")
b = C("b")

e.z = h
e.q = h
e.r = k
e.t = c
e.w = a
f.t = n
f.x = n
f.w = e
f.z = h
f.o = c
a.w = k
a.s = c
a.x = c
a.r = b
a.z = h
h.o = c
h.y = c
h.q = e
h.w = e
h.s = n
c.z = h
c.o = a
c.v = a
n.t = c
n.q = c
n.o = k
n.x = k
k.t = n
k.x = n
k.w = e
k.z = h
k.o = c
b.w = f
b.s = c
b.x = c
b.r = a
b.z = h
assert e.w.w.z.y.o.r.r.txt == "a"