require 'pp'

def gets; ARGF.gets; end

class Solver

  def initialize
  end

  def main
    n = gets.chomp.to_i
    s = gets.chomp

    s.each_char do |c|
      code = c.ord - 'A'.ord
      rc = ((code + n) % 26) + 'A'.ord

      puts rc.chr
    end
  end
end

if __FILE__ == $0
  Solver.new.main
end
