class A:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: E = None
        self.z: B = None
        self.r: H = None
        self.t: G = None
        self.w: F = None
        self.y: E = None
        self.x: B = None
        self.v: I = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: I = None
        self.z: D = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: F = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: B = None
        self.u: A = None
        self.z: J = None
        self.w: J = None
        self.r: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: A = None
        self.w: B = None
        self.q: J = None
        self.y: G = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: J = None
        self.x: J = None
        self.s: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: I = None
        self.z: D = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: F = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: B = None
        self.u: A = None
        self.z: J = None
        self.w: J = None
        self.r: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: A = None
        self.w: B = None
        self.q: J = None
        self.y: G = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: J = None
        self.x: J = None
        self.s: B = None
        self.txt = txt

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

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

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