class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.r: F = None
        self.s: D = None
        self.z: D = None
        self.u: G = None
        self.t: G = None
        self.q: D = None
        self.y: I = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: E = None
        self.o: G = None
        self.s: I = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: B = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: F = None
        self.y: B = None
        self.s: C = None
        self.w: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: E = None
        self.w: G = None
        self.u: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: E = None
        self.o: G = None
        self.s: I = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: B = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: F = None
        self.y: B = None
        self.s: C = None
        self.w: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: E = None
        self.w: G = None
        self.u: F = None
        self.txt = txt

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

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

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