class A:
    def __init__(self, txt: str):
        self.z: J = None
        self.u: D = None
        self.o: D = None
        self.s: B = None
        self.p: H = None
        self.w: B = None
        self.q: B = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: G = None
        self.y: H = None
        self.x: A = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: I = None
        self.s: E = None
        self.txt = txt

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

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

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

k = A("k")
i = B("i")
g = C("g")
e = D("e")
f = E("f")
j = F("j")
m = G("m")
h = H("h")
a = I("a")
l = J("l")

k.z = l
k.u = e
k.o = e
k.x = e
k.s = i
k.w = i
k.q = i
k.p = h
i.z = m
g.o = e
g.u = h
g.t = i
g.r = a
g.p = k
e.s = l
e.p = m
e.y = h
e.x = k
e.z = f
f.z = a
f.w = j
f.v = i
j.q = k
m.v = f
m.s = f
m.x = a
h.q = j
h.z = j
h.x = f
h.t = a
h.u = l
h.s = e
h.o = i
h.p = i
a.w = h
a.p = g
a.r = g
a.u = g
a.s = m
a.t = m
a.o = i
l.s = g
assert g.u.z.q.z.s.u.txt == "
class A:
    def __init__(self, txt: str):
        self.z: J = None
        self.u: D = None
        self.o: D = None
        self.s: B = None
        self.p: H = None
        self.w: B = None
        self.q: B = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: G = None
        self.y: H = None
        self.x: A = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: I = None
        self.s: E = None
        self.txt = txt

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

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

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

k = A("k")
i = B("i")
g = C("g")
e = D("e")
f = E("f")
j = F("j")
m = G("m")
h = H("h")
a = I("a")
l = J("l")

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