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

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

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: B = None
        self.t: H = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: A = None
        self.w: D = None
        self.s: F = None
        self.o: D = None
        self.p: D = None
        self.v: F = None
        self.u: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: F = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: C = None
        self.y: F = None
        self.p: G = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: B = None
        self.t: H = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: A = None
        self.w: D = None
        self.s: F = None
        self.o: D = None
        self.p: D = None
        self.v: F = None
        self.u: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: F = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: C = None
        self.y: F = None
        self.p: G = None
        self.t: E = None
        self.txt = txt

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

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