class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: I = None
        self.o: A = None
        self.s: A = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: E = None
        self.x: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: I = None
        self.z: B = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: I = None
        self.t: I = None
        self.q: B = None
        self.o: D = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: D = None
        self.t: A = None
        self.w: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: I = None
        self.o: A = None
        self.s: A = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: E = None
        self.x: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: I = None
        self.z: B = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: I = None
        self.t: I = None
        self.q: B = None
        self.o: D = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: D = None
        self.t: A = None
        self.w: H = None
        self.txt = txt

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

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