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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: D = None
        self.y: E = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: J = None
        self.v: B = None
        self.o: C = None
        self.z: F = None
        self.u: A = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: C = None
        self.t: E = None
        self.z: A = None
        self.r: C = None
        self.u: F = None
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.u: D = None
        self.y: G = None
        self.q: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: D = None
        self.y: E = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: J = None
        self.v: B = None
        self.o: C = None
        self.z: F = None
        self.u: A = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: C = None
        self.t: E = None
        self.z: A = None
        self.r: C = None
        self.u: F = None
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.u: D = None
        self.y: G = None
        self.q: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: A = None
        self.txt = txt

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

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