import std.stdio, std.conv, std.string, std.range, std.algorithm, std.array,
  std.functional, std.container, std.typecons;

void main() {
  int N = readln.chomp.to!int;
  char[] S = readln.chomp.dup;

  foreach(ref c; S) {
    c = ((c - 'A' + N) % 26) + 'A';
  }

  S.writeln;
}
