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

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

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: E = None
        self.x: B = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: H = None
        self.r: C = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: E = None
        self.x: B = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: H = None
        self.r: C = None
        self.u: A = None
        self.txt = txt

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

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

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