class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: C = None
        self.y: D = None
        self.u: D = None
        self.q: D = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: D = None
        self.u: H = None
        self.p: A = None
        self.r: D = None
        self.w: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: C = None
        self.v: F = None
        self.w: B = None
        self.t: C = None
        self.x: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: D = None
        self.u: H = None
        self.p: A = None
        self.r: D = None
        self.w: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: C = None
        self.v: F = None
        self.w: B = None
        self.t: C = None
        self.x: A = None
        self.txt = txt

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

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