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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: A = None
        self.p: F = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: B = None
        self.z: J = None
        self.o: G = None
        self.y: G = None
        self.s: E = None
        self.v: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: C = None
        self.t: I = None
        self.x: F = None
        self.w: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: A = None
        self.p: F = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: B = None
        self.z: J = None
        self.o: G = None
        self.y: G = None
        self.s: E = None
        self.v: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: C = None
        self.t: I = None
        self.x: F = None
        self.w: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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