class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: H = None
        self.u: J = None
        self.o: F = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.p: B = None
        self.t: H = None
        self.y: J = None
        self.u: G = None
        self.s: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: C = None
        self.x: H = None
        self.y: G = None
        self.t: I = None
        self.w: A = None
        self.z: J = None
        self.q: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.z: J = None
        self.p: E = None
        self.y: E = None
        self.o: I = None
        self.q: J = None
        self.t: D = None
        self.r: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: D = None
        self.s: A = None
        self.p: A = None
        self.t: C = None
        self.x: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.p: B = None
        self.t: H = None
        self.y: J = None
        self.u: G = None
        self.s: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: C = None
        self.x: H = None
        self.y: G = None
        self.t: I = None
        self.w: A = None
        self.z: J = None
        self.q: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.z: J = None
        self.p: E = None
        self.y: E = None
        self.o: I = None
        self.q: J = None
        self.t: D = None
        self.r: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: D = None
        self.s: A = None
        self.p: A = None
        self.t: C = None
        self.x: D = None
        self.txt = txt

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

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