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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: E = None
        self.q: A = None
        self.x: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: J = None
        self.w: A = None
        self.z: A = None
        self.y: B = None
        self.o: E = None
        self.q: C = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: B = None
        self.z: G = None
        self.p: F = None
        self.s: E = None
        self.r: F = None
        self.t: C = None
        self.y: G = None
        self.u: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: E = None
        self.q: A = None
        self.x: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: J = None
        self.w: A = None
        self.z: A = None
        self.y: B = None
        self.o: E = None
        self.q: C = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: B = None
        self.z: G = None
        self.p: F = None
        self.s: E = None
        self.r: F = None
        self.t: C = None
        self.y: G = None
        self.u: C = None
        self.txt = txt

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

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

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