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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: E = None
        self.v: D = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: E = None
        self.p: B = None
        self.q: D = None
        self.t: B = None
        self.u: E = None
        self.w: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: E = None
        self.v: D = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: E = None
        self.p: B = None
        self.q: D = None
        self.t: B = None
        self.u: E = None
        self.w: G = None
        self.txt = txt

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

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