n = gets.to_i
s = gets.chomp

alphabets = ("A".."Z").to_a
arr = []

s.chars.each do |char|
  new_index = alphabets.index(char) + n
  new_index -= 26 if new_index > 25
  arr << alphabets[new_index]
end

puts arr.join