class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: E = None
        self.r: C = None
        self.o: B = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: F = None
        self.o: C = None
        self.z: D = None
        self.q: D = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: C = None
        self.u: B = None
        self.y: B = None
        self.s: C = None
        self.z: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: A = None
        self.p: F = None
        self.r: C = None
        self.q: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: F = None
        self.o: C = None
        self.z: D = None
        self.q: D = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: C = None
        self.u: B = None
        self.y: B = None
        self.s: C = None
        self.z: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: A = None
        self.p: F = None
        self.r: C = None
        self.q: A = None
        self.txt = txt

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

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