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

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: C = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: E = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: G = None
        self.r: G = None
        self.v: A = None
        self.x: H = None
        self.w: B = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: C = None
        self.y: H = None
        self.q: D = None
        self.z: C = None
        self.v: F = None
        self.u: D = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: C = None
        self.txt = txt

i = A("i")
e = B("e")
a = C("a")
d = D("d")
c = E("c")
k = F("k")
l = G("l")
j = H("j")
g = F("g")
b = C("b")

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

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: C = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: E = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: G = None
        self.r: G = None
        self.v: A = None
        self.x: H = None
        self.w: B = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: C = None
        self.y: H = None
        self.q: D = None
        self.z: C = None
        self.v: F = None
        self.u: D = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: C = None
        self.txt = txt

i = A("i")
e = B("e")
a = C("a")
d = D("d")
c = E("c")
k = F("k")
l = G("l")
j = H("j")
g = F("g")
b = C("b")

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