class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: G = None
        self.r: G = None
        self.q: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: D = None
        self.x: J = None
        self.s: H = None
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: J = None
        self.y: E = None
        self.o: A = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: J = None
        self.q: G = None
        self.s: F = None
        self.y: J = None
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: H = None
        self.o: I = None
        self.r: E = None
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: D = None
        self.r: H = None
        self.p: E = None
        self.o: E = None
        self.t: C = None
        self.v: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: D = None
        self.x: J = None
        self.s: H = None
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: J = None
        self.y: E = None
        self.o: A = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: J = None
        self.q: G = None
        self.s: F = None
        self.y: J = None
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: H = None
        self.o: I = None
        self.r: E = None
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: D = None
        self.r: H = None
        self.p: E = None
        self.o: E = None
        self.t: C = None
        self.v: G = None
        self.txt = txt

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

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

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