class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: A = None
        self.s: D = None
        self.p: F = None
        self.q: F = None
        self.u: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: A = None
        self.t: A = None
        self.w: B = None
        self.x: E = None
        self.z: E = None
        self.txt = txt

a = A("a")
n = B("n")
b = C("b")
d = D("d")
l = E("l")
c = F("c")
j = B("j")
h = E("h")
e = A("e")

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: A = None
        self.t: A = None
        self.w: B = None
        self.x: E = None
        self.z: E = None
        self.txt = txt

a = A("a")
n = B("n")
b = C("b")
d = D("d")
l = E("l")
c = F("c")
j = B("j")
h = E("h")
e = A("e")

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