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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: G = None
        self.u: B = None
        self.q: E = None
        self.z: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: H = None
        self.q: E = None
        self.v: D = None
        self.w: A = None
        self.o: H = None
        self.r: B = None
        self.u: D = None
        self.t: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: D = None
        self.x: D = None
        self.u: A = None
        self.t: H = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: G = None
        self.u: B = None
        self.q: E = None
        self.z: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: H = None
        self.q: E = None
        self.v: D = None
        self.w: A = None
        self.o: H = None
        self.r: B = None
        self.u: D = None
        self.t: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: D = None
        self.x: D = None
        self.u: A = None
        self.t: H = None
        self.s: G = None
        self.txt = txt

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

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