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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: F = None
        self.o: A = None
        self.r: A = None
        self.v: E = None
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: A = None
        self.z: B = None
        self.v: F = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: E = None
        self.p: E = None
        self.t: A = None
        self.txt = txt

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

i.z = m
m.s = a
a.s = c
a.z = h
a.o = i
a.r = i
a.v = j
a.t = e
e.u = m
k.p = i
k.s = i
k.r = i
k.z = f
k.v = c
h.z = e
h.x = j
h.p = d
h.t = i
d.p = i
d.s = i
d.r = i
d.z = m
d.v = h
f.s = a
j.p = i
j.s = i
j.r = i
j.z = f
j.v = c
c.z = e
c.x = d
c.p = d
c.t = i
assert j.z.s.v.p.z.s.v.v.x.txt == "
class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: F = None
        self.o: A = None
        self.r: A = None
        self.v: E = None
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: A = None
        self.z: B = None
        self.v: F = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: E = None
        self.p: E = None
        self.t: A = None
        self.txt = txt

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

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