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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: E = None
        self.q: F = None
        self.z: A = None
        self.w: E = None
        self.o: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: H = None
        self.u: F = None
        self.q: H = None
        self.w: G = None
        self.y: H = None
        self.t: H = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: B = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: D = None
        self.o: H = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: E = None
        self.q: F = None
        self.z: A = None
        self.w: E = None
        self.o: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: H = None
        self.u: F = None
        self.q: H = None
        self.w: G = None
        self.y: H = None
        self.t: H = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: B = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: D = None
        self.o: H = None
        self.txt = txt

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

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

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

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