class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: E = None
        self.t: G = None
        self.q: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: D = None
        self.t: F = None
        self.z: D = None
        self.u: F = None
        self.y: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: F = None
        self.t: C = None
        self.y: F = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: G = None
        self.q: A = None
        self.s: D = None
        self.p: D = None
        self.z: G = None
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: D = None
        self.v: B = None
        self.o: G = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: E = None
        self.q: E = None
        self.x: B = None
        self.s: F = None
        self.o: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: D = None
        self.t: F = None
        self.z: D = None
        self.u: F = None
        self.y: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: F = None
        self.t: C = None
        self.y: F = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: G = None
        self.q: A = None
        self.s: D = None
        self.p: D = None
        self.z: G = None
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: D = None
        self.v: B = None
        self.o: G = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: E = None
        self.q: E = None
        self.x: B = None
        self.s: F = None
        self.o: B = None
        self.txt = txt

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

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