class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: G = None
        self.r: G = None
        self.v: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: E = None
        self.o: A = None
        self.w: B = None
        self.q: C = None
        self.p: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: E = None
        self.y: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: E = None
        self.o: A = None
        self.w: B = None
        self.q: C = None
        self.p: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: E = None
        self.y: A = None
        self.txt = txt

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

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