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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: H = None
        self.t: G = None
        self.q: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: A = None
        self.p: G = None
        self.s: C = None
        self.x: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: H = None
        self.r: A = None
        self.w: F = None
        self.y: B = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: F = None
        self.w: B = None
        self.s: C = None
        self.txt = txt

m = A("m")
e = B("e")
k = C("k")
c = D("c")
b = E("b")
l = F("l")
g = G("g")
i = H("i")
a = A("a")

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: H = None
        self.t: G = None
        self.q: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: A = None
        self.p: G = None
        self.s: C = None
        self.x: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: H = None
        self.r: A = None
        self.w: F = None
        self.y: B = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: F = None
        self.w: B = None
        self.s: C = None
        self.txt = txt

m = A("m")
e = B("e")
k = C("k")
c = D("c")
b = E("b")
l = F("l")
g = G("g")
i = H("i")
a = A("a")

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