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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: A = None
        self.w: F = None
        self.s: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: I = None
        self.p: C = None
        self.w: I = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: A = None
        self.w: F = None
        self.s: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: I = None
        self.p: C = None
        self.w: I = None
        self.txt = txt

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

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

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

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

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