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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: C = None
        self.u: A = None
        self.q: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: F = None
        self.t: E = None
        self.y: C = None
        self.p: A = None
        self.s: G = None
        self.z: D = None
        self.o: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: I = None
        self.x: H = None
        self.txt = txt

e = A("e")
a = B("a")
m = C("m")
c = D("c")
j = E("j")
n = F("n")
i = G("i")
l = H("l")
k = I("k")
d = J("d")

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: C = None
        self.u: A = None
        self.q: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: F = None
        self.t: E = None
        self.y: C = None
        self.p: A = None
        self.s: G = None
        self.z: D = None
        self.o: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: I = None
        self.x: H = None
        self.txt = txt

e = A("e")
a = B("a")
m = C("m")
c = D("c")
j = E("j")
n = F("n")
i = G("i")
l = H("l")
k = I("k")
d = J("d")

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