class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: D = None
        self.p: G = None
        self.z: A = None
        self.w: G = None
        self.t: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: H = None
        self.o: J = None
        self.t: B = None
        self.y: J = None
        self.q: F = None
        self.u: H = None
        self.v: G = None
        self.z: D = None
        self.s: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: I = None
        self.r: I = None
        self.t: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: C = None
        self.v: A = None
        self.p: C = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: G = None
        self.u: B = None
        self.s: C = None
        self.w: A = None
        self.z: E = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: F = None
        self.s: E = None
        self.t: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: D = None
        self.p: G = None
        self.z: A = None
        self.w: G = None
        self.t: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: H = None
        self.o: J = None
        self.t: B = None
        self.y: J = None
        self.q: F = None
        self.u: H = None
        self.v: G = None
        self.z: D = None
        self.s: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: I = None
        self.r: I = None
        self.t: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: C = None
        self.v: A = None
        self.p: C = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: G = None
        self.u: B = None
        self.s: C = None
        self.w: A = None
        self.z: E = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: F = None
        self.s: E = None
        self.t: A = None
        self.txt = txt

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

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