class A:
    def __init__(self, txt: str):
        self.r: J = None
        self.v: C = None
        self.u: D = None
        self.w: E = None
        self.t: G = None
        self.q: D = None
        self.x: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: B = None
        self.u: E = None
        self.y: E = None
        self.q: A = None
        self.r: A = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: E = None
        self.w: B = None
        self.y: B = None
        self.r: F = None
        self.q: E = None
        self.o: I = None
        self.t: J = None
        self.z: A = None
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: I = None
        self.z: E = None
        self.t: I = None
        self.y: J = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: D = None
        self.q: F = None
        self.u: C = None
        self.y: H = None
        self.v: I = None
        self.w: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: A = None
        self.o: E = None
        self.y: J = None
        self.x: E = None
        self.r: C = None
        self.z: G = None
        self.p: G = None
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: C = None
        self.x: C = None
        self.t: H = None
        self.w: E = None
        self.r: B = None
        self.o: B = None
        self.u: F = None
        self.v: B = None
        self.p: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: B = None
        self.u: E = None
        self.y: E = None
        self.q: A = None
        self.r: A = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: E = None
        self.w: B = None
        self.y: B = None
        self.r: F = None
        self.q: E = None
        self.o: I = None
        self.t: J = None
        self.z: A = None
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: I = None
        self.z: E = None
        self.t: I = None
        self.y: J = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: D = None
        self.q: F = None
        self.u: C = None
        self.y: H = None
        self.v: I = None
        self.w: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: A = None
        self.o: E = None
        self.y: J = None
        self.x: E = None
        self.r: C = None
        self.z: G = None
        self.p: G = None
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: C = None
        self.x: C = None
        self.t: H = None
        self.w: E = None
        self.r: B = None
        self.o: B = None
        self.u: F = None
        self.v: B = None
        self.p: C = None
        self.txt = txt

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

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