n = gets.to_i
s = gets.chomp.split("")

word = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")

result = s.map{ |sx|
	index = word.index(sx) + n
	if index >= word.size then
		index -= word.size
	end
	word[index]
}

puts result.join("")
