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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: C = None
        self.p: B = None
        self.y: C = None
        self.t: B = None
        self.o: F = None
        self.z: I = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: D = None
        self.r: I = None
        self.u: D = None
        self.q: F = None
        self.s: C = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: G = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: C = None
        self.p: B = None
        self.y: C = None
        self.t: B = None
        self.o: F = None
        self.z: I = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: D = None
        self.r: I = None
        self.u: D = None
        self.q: F = None
        self.s: C = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: G = None
        self.v: F = None
        self.txt = txt

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

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