class A:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: C = None
        self.s: H = None
        self.p: D = None
        self.v: F = None
        self.u: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: H = None
        self.p: G = None
        self.o: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: C = None
        self.p: C = None
        self.x: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: C = None
        self.s: H = None
        self.p: D = None
        self.v: F = None
        self.u: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: H = None
        self.p: G = None
        self.o: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: C = None
        self.p: C = None
        self.x: G = None
        self.txt = txt

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

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