class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.r: J = None
        self.o: I = None
        self.p: E = None
        self.y: B = None
        self.x: G = None
        self.z: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.w: A = None
        self.o: C = None
        self.z: H = None
        self.p: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: J = None
        self.z: H = None
        self.p: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: J = None
        self.p: H = None
        self.o: E = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: F = None
        self.p: E = None
        self.o: B = None
        self.y: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.w: A = None
        self.o: C = None
        self.z: H = None
        self.p: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: J = None
        self.z: H = None
        self.p: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: J = None
        self.p: H = None
        self.o: E = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: F = None
        self.p: E = None
        self.o: B = None
        self.y: E = None
        self.txt = txt

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

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

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

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