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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: D = None
        self.w: E = None
        self.q: G = None
        self.t: D = None
        self.r: D = None
        self.y: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: E = None
        self.t: A = None
        self.y: H = None
        self.w: E = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: H = None
        self.q: C = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: H = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: G = None
        self.u: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: D = None
        self.w: E = None
        self.q: G = None
        self.t: D = None
        self.r: D = None
        self.y: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: E = None
        self.t: A = None
        self.y: H = None
        self.w: E = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: H = None
        self.q: C = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: H = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: G = None
        self.u: C = None
        self.txt = txt

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

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