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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: G = None
        self.u: E = None
        self.w: E = None
        self.y: E = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: G = None
        self.u: E = None
        self.w: E = None
        self.y: E = None
        self.txt = txt

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

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