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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: D = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: I = None
        self.r: D = None
        self.v: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: D = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: I = None
        self.r: D = None
        self.v: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: A = None
        self.txt = txt

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

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