class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: I = None
        self.q: F = None
        self.v: D = None
        self.r: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: J = None
        self.t: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.q: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.s: C = None
        self.y: I = None
        self.u: A = None
        self.r: G = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: H = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: B = None
        self.p: D = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: D = None
        self.p: J = None
        self.v: A = None
        self.q: H = None
        self.z: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: J = None
        self.t: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.q: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.s: C = None
        self.y: I = None
        self.u: A = None
        self.r: G = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: H = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: B = None
        self.p: D = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: D = None
        self.p: J = None
        self.v: A = None
        self.q: H = None
        self.z: D = None
        self.txt = txt

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

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

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