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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: F = None
        self.z: A = None
        self.w: B = None
        self.x: G = None
        self.v: E = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: G = None
        self.x: E = None
        self.t: D = None
        self.p: B = None
        self.y: C = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: D = None
        self.q: E = None
        self.o: A = None
        self.r: B = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: F = None
        self.z: A = None
        self.w: B = None
        self.x: G = None
        self.v: E = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: G = None
        self.x: E = None
        self.t: D = None
        self.p: B = None
        self.y: C = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: D = None
        self.q: E = None
        self.o: A = None
        self.r: B = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: E = None
        self.txt = txt

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

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