class A:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: G = None
        self.o: D = None
        self.s: D = None
        self.v: F = None
        self.u: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: G = None
        self.t: G = None
        self.q: G = None
        self.u: E = None
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: H = None
        self.s: I = None
        self.r: F = None
        self.x: F = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: A = None
        self.p: I = None
        self.o: G = None
        self.z: C = None
        self.s: C = None
        self.x: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: F = None
        self.p: F = None
        self.v: A = None
        self.z: H = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: G = None
        self.t: G = None
        self.q: G = None
        self.u: E = None
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: H = None
        self.s: I = None
        self.r: F = None
        self.x: F = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: A = None
        self.p: I = None
        self.o: G = None
        self.z: C = None
        self.s: C = None
        self.x: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: F = None
        self.p: F = None
        self.v: A = None
        self.z: H = None
        self.txt = txt

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

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