class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: D = None
        self.w: E = None
        self.v: E = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: F = None
        self.u: F = None
        self.p: C = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: E = None
        self.v: C = None
        self.y: C = None
        self.u: B = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: D = None
        self.t: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: B = None
        self.o: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: F = None
        self.u: F = None
        self.p: C = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: E = None
        self.v: C = None
        self.y: C = None
        self.u: B = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: D = None
        self.t: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: B = None
        self.o: C = None
        self.txt = txt

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

j.s = i
j.z = f
j.w = m
j.v = m
j.t = e
e.o = j
e.s = a
e.u = a
e.p = d
e.x = f
d.r = e
d.u = e
d.x = i
d.v = h
d.y = h
d.s = a
f.o = j
f.t = m
m.z = f
m.o = f
m.t = i
a.t = d
a.r = e
a.o = h
b.o = j
b.t = i
i.z = b
i.o = n
i.t = m
h.r = e
h.u = e
h.x = i
h.v = d
h.y = d
h.s = a
n.o = j
n.t = i
assert j.z.t.z.t.o.o.s.o.o.txt == "j"