class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: F = None
        self.z: A = None
        self.p: J = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: B = None
        self.w: J = None
        self.x: H = None
        self.o: G = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: J = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: E = None
        self.v: I = None
        self.t: A = None
        self.q: H = None
        self.o: G = None
        self.z: D = None
        self.u: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: F = None
        self.z: A = None
        self.p: J = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: B = None
        self.w: J = None
        self.x: H = None
        self.o: G = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: J = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: E = None
        self.v: I = None
        self.t: A = None
        self.q: H = None
        self.o: G = None
        self.z: D = None
        self.u: C = None
        self.txt = txt

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

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