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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: A = None
        self.q: B = None
        self.w: C = None
        self.o: B = None
        self.z: F = None
        self.t: H = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: A = None
        self.q: B = None
        self.w: C = None
        self.o: B = None
        self.z: F = None
        self.t: H = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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