class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: E = None
        self.o: H = None
        self.z: D = None
        self.v: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: D = None
        self.p: C = None
        self.q: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: E = None
        self.o: H = None
        self.z: D = None
        self.v: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: D = None
        self.p: C = None
        self.q: B = None
        self.txt = txt

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

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

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

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