class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: J = None
        self.y: B = None
        self.t: I = None
        self.r: C = None
        self.x: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: C = None
        self.y: E = None
        self.q: F = None
        self.s: A = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: H = None
        self.z: J = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: G = None
        self.r: E = None
        self.t: D = None
        self.w: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: G = None
        self.q: I = None
        self.o: D = None
        self.w: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: C = None
        self.y: E = None
        self.q: F = None
        self.s: A = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: H = None
        self.z: J = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: G = None
        self.r: E = None
        self.t: D = None
        self.w: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: G = None
        self.q: I = None
        self.o: D = None
        self.w: F = None
        self.txt = txt

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

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