class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: B = None
        self.v: C = None
        self.o: J = None
        self.u: J = None
        self.r: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: C = None
        self.o: B = None
        self.w: I = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: H = None
        self.q: H = None
        self.t: B = None
        self.o: D = None
        self.w: J = None
        self.p: A = None
        self.s: C = None
        self.y: F = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: E = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: B = None
        self.v: I = None
        self.s: F = None
        self.p: D = None
        self.z: C = None
        self.y: F = None
        self.q: J = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: C = None
        self.o: B = None
        self.w: I = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: H = None
        self.q: H = None
        self.t: B = None
        self.o: D = None
        self.w: J = None
        self.p: A = None
        self.s: C = None
        self.y: F = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: E = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: B = None
        self.v: I = None
        self.s: F = None
        self.p: D = None
        self.z: C = None
        self.y: F = None
        self.q: J = None
        self.txt = txt

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

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

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

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

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