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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: I = None
        self.z: D = None
        self.p: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: J = None
        self.y: B = None
        self.o: B = None
        self.x: G = None
        self.s: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: I = None
        self.v: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: I = None
        self.z: D = None
        self.p: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: J = None
        self.y: B = None
        self.o: B = None
        self.x: G = None
        self.s: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: I = None
        self.v: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

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