class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: E = None
        self.s: G = None
        self.z: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: I = None
        self.u: F = None
        self.w: A = None
        self.r: E = 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.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: B = None
        self.v: G = None
        self.y: C = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: B = None
        self.v: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

c = A("c")
b = B("b")
i = C("i")
g = D("g")
l = E("l")
k = F("k")
f = G("f")
d = H("d")
a = I("a")
h = H("h")

c.v = a
c.o = l
c.s = f
c.z = g
b.o = l
b.t = l
b.x = d
b.y = k
b.v = c
b.p = h
b.s = i
b.q = f
i.y = l
i.r = l
i.o = a
i.u = k
i.w = c
g.s = l
l.t = g
k.q = b
k.s = b
k.v = f
k.y = i
k.u = l
f.u = a
f.v = a
f.s = b
d.w = g
d.r = c
d.p = c
d.o = l
d.t = l
d.s = k
d.y = k
d.z = a
d.x = h
a.s = f
h.w = g
h.r = c
h.p = c
h.o = l
h.t = l
h.s = k
h.y = k
h.z = a
h.x = d
assert k.y.w.v.s.u.s.s.o.txt == "
class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: E = None
        self.s: G = None
        self.z: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: I = None
        self.u: F = None
        self.w: A = None
        self.r: E = 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.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: B = None
        self.v: G = None
        self.y: C = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: B = None
        self.v: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

c = A("c")
b = B("b")
i = C("i")
g = D("g")
l = E("l")
k = F("k")
f = G("f")
d = H("d")
a = I("a")
h = H("h")

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