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

class B:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: C = None
        self.z: D = None
        self.w: H = None
        self.y: F = None
        self.x: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: F = None
        self.q: B = None
        self.z: A = None
        self.p: H = None
        self.x: E = None
        self.y: H = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: A = None
        self.x: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: D = None
        self.y: H = None
        self.w: C = None
        self.z: D = None
        self.r: E = None
        self.v: D = None
        self.txt = txt

j = A("j")
b = B("b")
c = C("c")
i = D("i")
m = E("m")
l = F("l")
a = G("a")
n = H("n")
f = B("f")
d = H("d")

j.v = l
j.o = a
j.p = n
j.z = i
j.x = c
b.u = f
b.r = c
b.z = i
b.w = n
b.y = l
b.x = a
c.s = i
c.x = i
c.v = f
c.q = f
c.p = b
c.o = j
c.w = m
c.y = a
i.o = a
i.r = l
i.w = l
i.q = f
i.z = j
i.p = d
i.y = d
i.x = m
m.t = l
l.q = n
l.r = j
l.x = i
a.o = c
n.o = c
n.w = c
n.u = i
n.z = i
n.v = i
n.y = d
n.r = m
f.u = b
f.r = c
f.z = i
f.w = d
f.y = l
f.x = a
d.o = c
d.w = c
d.u = i
d.z = i
d.v = i
d.y = n
d.r = m
assert n.o.y.o.o.p.o.p.w.txt == "
class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: G = None
        self.p: H = None
        self.z: D = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: C = None
        self.z: D = None
        self.w: H = None
        self.y: F = None
        self.x: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: F = None
        self.q: B = None
        self.z: A = None
        self.p: H = None
        self.x: E = None
        self.y: H = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: A = None
        self.x: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: D = None
        self.y: H = None
        self.w: C = None
        self.z: D = None
        self.r: E = None
        self.v: D = None
        self.txt = txt

j = A("j")
b = B("b")
c = C("c")
i = D("i")
m = E("m")
l = F("l")
a = G("a")
n = H("n")
f = B("f")
d = H("d")

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