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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: H = None
        self.o: G = None
        self.w: E = None
        self.z: E = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: E = None
        self.t: A = None
        self.p: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: A = None
        self.r: H = None
        self.p: B = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: H = None
        self.o: G = None
        self.w: E = None
        self.z: E = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: E = None
        self.t: A = None
        self.p: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: A = None
        self.r: H = None
        self.p: B = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: A = None
        self.txt = txt

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

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