class A:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: D = None
        self.y: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: F = None
        self.x: F = None
        self.z: B = None
        self.v: G = None
        self.q: D = None
        self.u: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: F = None
        self.x: F = None
        self.z: B = None
        self.v: G = None
        self.q: D = None
        self.u: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

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

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

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