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

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

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: J = None
        self.v: F = None
        self.r: F = None
        self.t: A = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: I = None
        self.q: H = None
        self.w: C = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: J = None
        self.v: F = None
        self.r: F = None
        self.t: A = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: I = None
        self.q: H = None
        self.w: C = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: D = None
        self.txt = txt

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

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

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