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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: D = None
        self.q: B = None
        self.s: A = None
        self.u: C = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: D = None
        self.q: B = None
        self.s: A = None
        self.u: C = None
        self.w: B = None
        self.txt = txt

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

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