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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: E = None
        self.o: F = None
        self.q: E = None
        self.r: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: D = None
        self.y: I = None
        self.u: G = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: C = None
        self.o: B = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: E = None
        self.o: F = None
        self.q: E = None
        self.r: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: D = None
        self.y: I = None
        self.u: G = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: C = None
        self.o: B = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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