class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: J = None
        self.v: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: A = None
        self.u: J = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: F = None
        self.o: G = None
        self.x: F = None
        self.s: H = None
        self.u: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.x: G = None
        self.v: B = None
        self.z: C = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: H = None
        self.s: E = None
        self.o: D = None
        self.v: I = None
        self.u: A = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: A = None
        self.u: J = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: F = None
        self.o: G = None
        self.x: F = None
        self.s: H = None
        self.u: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.x: G = None
        self.v: B = None
        self.z: C = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: H = None
        self.s: E = None
        self.o: D = None
        self.v: I = None
        self.u: A = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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