class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: J = None
        self.t: B = None
        self.z: H = None
        self.u: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: J = None
        self.s: C = None
        self.r: A = None
        self.y: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: C = None
        self.p: H = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: B = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: C = None
        self.y: I = None
        self.q: I = None
        self.s: G = None
        self.o: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: J = None
        self.s: C = None
        self.r: A = None
        self.y: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: C = None
        self.p: H = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: B = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: C = None
        self.y: I = None
        self.q: I = None
        self.s: G = None
        self.o: B = None
        self.txt = txt

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

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

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

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