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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: A = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: A = None
        self.txt = txt

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

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

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

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

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