class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: E = None
        self.r: D = None
        self.s: D = None
        self.u: D = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: C = None
        self.y: A = None
        self.v: J = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: D = None
        self.p: G = None
        self.w: H = None
        self.z: A = None
        self.o: I = None
        self.u: B = None
        self.t: A = None
        self.r: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: A = None
        self.r: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: C = None
        self.y: A = None
        self.v: J = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: D = None
        self.p: G = None
        self.w: H = None
        self.z: A = None
        self.o: I = None
        self.u: B = None
        self.t: A = None
        self.r: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: A = None
        self.r: H = None
        self.txt = txt

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

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

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