class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: C = None
        self.r: D = None
        self.x: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: B = None
        self.y: A = None
        self.p: E = None
        self.x: E = None
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.w: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: B = None
        self.y: A = None
        self.p: E = None
        self.x: E = None
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.w: D = None
        self.txt = txt

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

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