class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: J = None
        self.u: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: F = None
        self.s: C = None
        self.u: G = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: B = None
        self.s: B = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: A = None
        self.z: D = None
        self.y: C = None
        self.v: F = None
        self.p: D = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: H = None
        self.s: J = None
        self.u: B = None
        self.z: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: C = None
        self.r: B = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: D = None
        self.o: B = None
        self.s: I = None
        self.z: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: F = None
        self.s: C = None
        self.u: G = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: B = None
        self.s: B = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: A = None
        self.z: D = None
        self.y: C = None
        self.v: F = None
        self.p: D = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: H = None
        self.s: J = None
        self.u: B = None
        self.z: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: C = None
        self.r: B = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: D = None
        self.o: B = None
        self.s: I = None
        self.z: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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