class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: F = None
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: G = None
        self.p: H = None
        self.r: F = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: I = None
        self.w: I = None
        self.o: F = None
        self.u: J = None
        self.p: A = None
        self.q: F = None
        self.x: A = None
        self.s: J = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: F = None
        self.o: E = None
        self.x: C = None
        self.r: E = None
        self.u: A = None
        self.q: F = None
        self.z: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: J = None
        self.r: I = None
        self.t: I = None
        self.w: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: D = None
        self.z: D = None
        self.s: E = None
        self.q: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: G = None
        self.p: H = None
        self.r: F = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: I = None
        self.w: I = None
        self.o: F = None
        self.u: J = None
        self.p: A = None
        self.q: F = None
        self.x: A = None
        self.s: J = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: F = None
        self.o: E = None
        self.x: C = None
        self.r: E = None
        self.u: A = None
        self.q: F = None
        self.z: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: J = None
        self.r: I = None
        self.t: I = None
        self.w: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: D = None
        self.z: D = None
        self.s: E = None
        self.q: D = None
        self.txt = txt

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

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

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