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

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

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: F = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: F = None
        self.q: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: F = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: F = None
        self.q: E = None
        self.txt = txt

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

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