class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.y: D = None
        self.x: F = None
        self.u: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: F = None
        self.s: D = None
        self.r: H = None
        self.v: H = None
        self.u: A = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: F = None
        self.t: I = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: A = None
        self.z: C = None
        self.p: A = None
        self.q: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: F = None
        self.s: D = None
        self.r: H = None
        self.v: H = None
        self.u: A = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: F = None
        self.t: I = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: A = None
        self.z: C = None
        self.p: A = None
        self.q: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

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