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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.p: H = None
        self.w: G = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: C = None
        self.z: G = None
        self.r: C = None
        self.w: B = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.w: A = None
        self.o: F = None
        self.y: C = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.p: H = None
        self.w: G = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: C = None
        self.z: G = None
        self.r: C = None
        self.w: B = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.w: A = None
        self.o: F = None
        self.y: C = None
        self.v: C = None
        self.txt = txt

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

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

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

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