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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: C = None
        self.t: D = None
        self.v: E = None
        self.p: F = None
        self.y: E = None
        self.r: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: G = None
        self.s: G = None
        self.o: A = None
        self.v: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: C = None
        self.t: D = None
        self.v: E = None
        self.p: F = None
        self.y: E = None
        self.r: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: G = None
        self.s: G = None
        self.o: A = None
        self.v: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: I = None
        self.txt = txt

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

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

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