class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: F = None
        self.o: J = None
        self.s: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: C = None
        self.s: G = None
        self.o: B = None
        self.x: B = None
        self.q: I = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: E = None
        self.w: H = None
        self.u: C = None
        self.v: F = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: F = None
        self.t: I = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: C = None
        self.s: G = None
        self.o: B = None
        self.x: B = None
        self.q: I = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: E = None
        self.w: H = None
        self.u: C = None
        self.v: F = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: F = None
        self.t: I = None
        self.u: C = None
        self.txt = txt

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

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