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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: J = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: J = None
        self.s: J = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: E = None
        self.q: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: J = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: J = None
        self.s: J = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: E = None
        self.q: A = None
        self.txt = txt

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

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

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