class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: E = None
        self.z: F = None
        self.q: F = None
        self.p: I = None
        self.t: C = None
        self.o: G = None
        self.s: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: F = None
        self.t: I = None
        self.w: H = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: C = None
        self.p: C = None
        self.o: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: F = None
        self.t: I = None
        self.w: H = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: C = None
        self.p: C = None
        self.o: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: H = None
        self.txt = txt

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

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