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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: B = None
        self.r: H = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: H = None
        self.w: G = None
        self.p: F = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: C = None
        self.p: C = None
        self.s: A = None
        self.w: F = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: A = None
        self.o: F = None
        self.p: B = None
        self.y: C = None
        self.x: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: B = None
        self.r: H = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: H = None
        self.w: G = None
        self.p: F = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: C = None
        self.p: C = None
        self.s: A = None
        self.w: F = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: A = None
        self.o: F = None
        self.p: B = None
        self.y: C = None
        self.x: C = None
        self.txt = txt

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

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