class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: J = None
        self.t: G = None
        self.p: F = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: B = None
        self.x: J = None
        self.z: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: A = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.p: D = None
        self.r: B = None
        self.q: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: H = None
        self.t: B = None
        self.u: J = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: D = None
        self.w: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: B = None
        self.x: J = None
        self.z: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: A = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.p: D = None
        self.r: B = None
        self.q: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: H = None
        self.t: B = None
        self.u: J = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: D = None
        self.w: B = None
        self.txt = txt

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

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