n = gets.to_i
s = gets.chomp.chars.map(&:to_s)

result = []

s.each do |alphabet|
  alphabet_ord = alphabet.ord + n
  if 90 < alphabet_ord
    result.push (alphabet_ord - 26).chr
  else
    result.push alphabet_ord.chr
  end
end

print "#{result.join}"