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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: I = None
        self.r: I = None
        self.u: H = None
        self.x: E = None
        self.v: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: H = None
        self.x: H = None
        self.s: A = None
        self.u: C = None
        self.t: H = None
        self.z: H = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: C = None
        self.s: H = None
        self.q: G = None
        self.x: E = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: E = None
        self.r: I = None
        self.o: H = None
        self.z: H = None
        self.w: H = None
        self.p: H = None
        self.q: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: I = None
        self.r: I = None
        self.u: H = None
        self.x: E = None
        self.v: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: H = None
        self.x: H = None
        self.s: A = None
        self.u: C = None
        self.t: H = None
        self.z: H = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: C = None
        self.s: H = None
        self.q: G = None
        self.x: E = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: E = None
        self.r: I = None
        self.o: H = None
        self.z: H = None
        self.w: H = None
        self.p: H = None
        self.q: D = None
        self.txt = txt

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

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

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

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