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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: G = None
        self.x: C = None
        self.w: A = None
        self.t: D = None
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: E = None
        self.o: B = None
        self.p: C = None
        self.u: E = None
        self.txt = txt

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

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

e = A("e")
n = B("n")
j = C("j")
k = D("k")
i = E("i")
l = F("l")
h = G("h")
a = D("a")
b = E("b")

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: G = None
        self.x: C = None
        self.w: A = None
        self.t: D = None
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: E = None
        self.o: B = None
        self.p: C = None
        self.u: E = None
        self.txt = txt

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

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

e = A("e")
n = B("n")
j = C("j")
k = D("k")
i = E("i")
l = F("l")
h = G("h")
a = D("a")
b = E("b")

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