class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: G = None
        self.u: F = None
        self.z: C = None
        self.v: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: B = None
        self.v: I = None
        self.y: B = None
        self.p: D = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: G = None
        self.x: B = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: D = None
        self.w: J = None
        self.y: G = None
        self.t: C = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: B = None
        self.v: I = None
        self.y: B = None
        self.p: D = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: G = None
        self.x: B = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: D = None
        self.w: J = None
        self.y: G = None
        self.t: C = None
        self.s: C = None
        self.txt = txt

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

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

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

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