class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: H = None
        self.u: F = None
        self.y: G = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: C = None
        self.x: B = None
        self.w: B = None
        self.q: F = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: C = None
        self.t: E = None
        self.txt = txt

i = A("i")
e = B("e")
a = C("a")
f = D("f")
k = E("k")
c = F("c")
m = G("m")
d = H("d")

i.q = c
i.u = c
i.z = d
i.y = m
i.o = k
e.u = d
a.p = f
a.t = f
a.w = i
a.o = e
a.x = k
a.z = d
a.q = m
f.v = a
f.o = m
f.q = m
f.z = i
k.p = i
k.t = a
k.s = e
k.r = f
c.o = e
c.v = k
m.t = a
m.p = a
m.x = e
m.w = e
m.q = c
m.v = f
d.w = m
d.x = a
d.t = k
assert e.u.w.p.z.x.x.txt == "
class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: H = None
        self.u: F = None
        self.y: G = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: C = None
        self.x: B = None
        self.w: B = None
        self.q: F = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: C = None
        self.t: E = None
        self.txt = txt

i = A("i")
e = B("e")
a = C("a")
f = D("f")
k = E("k")
c = F("c")
m = G("m")
d = H("d")

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