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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: C = None
        self.v: I = None
        self.r: H = None
        self.u: I = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: A = None
        self.w: E = None
        self.y: I = None
        self.p: C = None
        self.o: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: C = None
        self.v: I = None
        self.r: H = None
        self.u: I = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: A = None
        self.w: E = None
        self.y: I = None
        self.p: C = None
        self.o: E = None
        self.txt = txt

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

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

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