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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.r: B = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: H = None
        self.y: H = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: G = None
        self.v: C = None
        self.p: A = None
        self.y: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.r: B = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: H = None
        self.y: H = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: G = None
        self.v: C = None
        self.p: A = None
        self.y: E = None
        self.txt = txt

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

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