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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: B = None
        self.t: F = None
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: C = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: B = None
        self.t: F = None
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: C = None
        self.txt = txt

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

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

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

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

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

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