class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: G = None
        self.r: E = None
        self.w: D = None
        self.v: D = None
        self.x: H = None
        self.t: G = None
        self.q: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: F = None
        self.z: B = None
        self.o: G = None
        self.s: H = None
        self.r: A = None
        self.p: D = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.x: H = None
        self.w: A = None
        self.o: D = None
        self.q: F = None
        self.z: H = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: H = None
        self.r: H = None
        self.o: G = None
        self.x: A = None
        self.s: D = None
        self.u: H = None
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: F = None
        self.z: B = None
        self.o: G = None
        self.s: H = None
        self.r: A = None
        self.p: D = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.x: H = None
        self.w: A = None
        self.o: D = None
        self.q: F = None
        self.z: H = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: H = None
        self.r: H = None
        self.o: G = None
        self.x: A = None
        self.s: D = None
        self.u: H = None
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

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

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