class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: B = None
        self.q: G = None
        self.v: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: I = None
        self.p: I = None
        self.s: I = None
        self.v: G = None
        self.o: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: J = None
        self.x: A = None
        self.s: B = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: D = None
        self.y: I = None
        self.v: D = None
        self.o: H = None
        self.q: I = None
        self.x: G = None
        self.p: G = None
        self.z: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: I = None
        self.p: I = None
        self.s: I = None
        self.v: G = None
        self.o: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: J = None
        self.x: A = None
        self.s: B = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: D = None
        self.y: I = None
        self.v: D = None
        self.o: H = None
        self.q: I = None
        self.x: G = None
        self.p: G = None
        self.z: C = None
        self.txt = txt

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

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