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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: H = None
        self.y: I = None
        self.z: H = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: C = None
        self.t: B = None
        self.r: C = None
        self.x: D = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: H = None
        self.y: I = None
        self.z: H = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: C = None
        self.t: B = None
        self.r: C = None
        self.x: D = None
        self.txt = txt

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

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

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

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

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

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