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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: E = None
        self.w: G = None
        self.r: I = None
        self.q: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: A = None
        self.y: C = None
        self.q: D = None
        self.x: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: C = None
        self.z: E = None
        self.o: C = None
        self.q: E = None
        self.r: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: E = None
        self.w: G = None
        self.r: I = None
        self.q: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: A = None
        self.y: C = None
        self.q: D = None
        self.x: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: C = None
        self.z: E = None
        self.o: C = None
        self.q: E = None
        self.r: B = None
        self.txt = txt

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

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

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