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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: G = None
        self.o: D = None
        self.v: C = None
        self.w: F = None
        self.p: G = None
        self.s: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: F = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: B = None
        self.s: C = None
        self.u: C = None
        self.y: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: G = None
        self.o: D = None
        self.v: C = None
        self.w: F = None
        self.p: G = None
        self.s: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: F = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: B = None
        self.s: C = None
        self.u: C = None
        self.y: C = None
        self.txt = txt

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

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

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

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