class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: G = None
        self.x: D = None
        self.t: B = None
        self.y: G = None
        self.v: C = None
        self.q: I = None
        self.s: A = None
        self.o: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: G = None
        self.x: D = None
        self.t: B = None
        self.y: G = None
        self.v: C = None
        self.q: I = None
        self.s: A = None
        self.o: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: A = None
        self.txt = txt

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

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