class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: H = None
        self.x: B = None
        self.z: D = None
        self.w: B = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: F = None
        self.s: I = None
        self.w: I = None
        self.q: G = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: F = None
        self.s: I = None
        self.w: I = None
        self.q: G = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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