class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: B = None
        self.s: I = None
        self.t: F = None
        self.x: D = None
        self.z: C = None
        self.q: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: B = None
        self.o: H = None
        self.u: G = None
        self.y: E = None
        self.q: A = None
        self.p: G = None
        self.x: B = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: B = None
        self.o: H = None
        self.u: G = None
        self.y: E = None
        self.q: A = None
        self.p: G = None
        self.x: B = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

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

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