def rotate_word(s, x):
    for l in s:
        n = ord(l)
        if n < 'n':
        	n += x
        	print(chr(n), end="")
       	else:
       		n -= x
       		print(chr(n), end="")

rotate_word("sup dvach", 13)