class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: J = None
        self.w: I = None
        self.v: D = None
        self.p: G = None
        self.q: B = 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.z: J = None
        self.w: F = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: J = None
        self.z: A = None
        self.t: G = None
        self.q: B = None
        self.x: H = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: H = None
        self.p: I = None
        self.y: H = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: A = None
        self.w: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: G = None
        self.o: J = None
        self.y: E = None
        self.x: J = None
        self.w: B = None
        self.u: C = None
        self.txt = txt

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

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

b.x = j
b.t = k
b.w = l
b.v = g
b.p = e
b.q = d
d.r = m
n.z = k
n.w = m
n.u = a
g.r = a
g.x = a
g.s = k
g.z = b
g.t = e
g.q = d
g.w = j
j.v = d
j.x = a
j.y = a
j.t = a
j.p = l
m.o = b
m.s = b
m.w = g
e.v = j
e.r = m
e.t = m
a.y = b
a.s = b
a.z = b
a.x = e
a.w = e
a.p = e
a.t = e
a.u = k
a.v = j
a.q = g
l.v = n
l.u = n
l.z = e
l.o = k
l.x = k
l.y = j
l.w = d
k.p = g
k.o = e
k.w = m
k.y = m
k.q = b
k.z = a
k.s = d
k.x = n
assert l.y.x.q.w.p.txt == "
class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: J = None
        self.w: I = None
        self.v: D = None
        self.p: G = None
        self.q: B = 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.z: J = None
        self.w: F = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: J = None
        self.z: A = None
        self.t: G = None
        self.q: B = None
        self.x: H = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: H = None
        self.p: I = None
        self.y: H = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: A = None
        self.w: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: G = None
        self.o: J = None
        self.y: E = None
        self.x: J = None
        self.w: B = None
        self.u: C = None
        self.txt = txt

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

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

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