class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: B = None
        self.v: E = None
        self.u: B = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: F = None
        self.y: E = None
        self.u: F = None
        self.x: A = None
        self.r: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: A = None
        self.y: D = None
        self.txt = txt

j = A("j")
a = B("a")
f = C("f")
n = D("n")
m = E("m")
b = F("b")
k = C("k")
e = C("e")
i = C("i")

j.s = b
j.z = a
j.u = a
j.v = m
j.x = n
a.x = b
a.y = j
f.w = a
f.v = b
f.u = b
f.y = m
f.x = j
f.r = j
n.w = m
m.x = k
m.q = n
m.z = n
m.s = j
m.y = j
m.w = a
b.q = j
b.u = j
b.y = n
k.w = a
k.v = b
k.u = b
k.y = m
k.x = j
k.r = j
e.w = a
e.v = b
e.u = b
e.y = m
e.x = j
e.r = j
i.w = a
i.v = b
i.u = b
i.y = m
i.x = j
i.r = j
assert n.w.w.y.s.u.v.q.w.txt == "
class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: B = None
        self.v: E = None
        self.u: B = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: F = None
        self.y: E = None
        self.u: F = None
        self.x: A = None
        self.r: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: A = None
        self.y: D = None
        self.txt = txt

j = A("j")
a = B("a")
f = C("f")
n = D("n")
m = E("m")
b = F("b")
k = C("k")
e = C("e")
i = C("i")

j.s = b
j.z = a
j.u = a
j.v = m
j.x = n
a.x = b
a.y = j
f.w = a
f.v = b
f.u = b
f.y = m
f.x = j
f.r = j
n.w = m
m.x = k
m.q = n
m.z = n
m.s = j
m.y = j
m.w = a
b.q = j
b.u = j
b.y = n
k.w = a
k.v = b
k.u = b
k.y = m
k.x = j
k.r = j
e.w = a
e.v = b
e.u = b
e.y = m
e.x = j
e.r = j
i.w = a
i.v = b
i.u = b
i.y = m
i.x = j
i.r = j
assert n.w.w.y.s.u.v.q.w.txt == "m"