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

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

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: G = None
        self.y: C = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: C = None
        self.u: A = None
        self.r: G = None
        self.v: H = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: B = None
        self.y: F = None
        self.u: D = None
        self.z: B = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: H = None
        self.o: B = None
        self.y: H = None
        self.s: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: I = None
        self.u: B = None
        self.x: B = None
        self.q: C = None
        self.t: I = None
        self.s: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: G = None
        self.y: C = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: C = None
        self.u: A = None
        self.r: G = None
        self.v: H = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: B = None
        self.y: F = None
        self.u: D = None
        self.z: B = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: H = None
        self.o: B = None
        self.y: H = None
        self.s: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: I = None
        self.u: B = None
        self.x: B = None
        self.q: C = None
        self.t: I = None
        self.s: D = None
        self.txt = txt

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

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