import std.stdio;
import std.string;

void main() {
  int n;
  readf("%d\n", &n);
  char[] s = readln.chomp.dup;
  foreach (i; 0 .. s.length) {
    s[i] = (s[i] - 'A' + n) % 26 + 'A';
  }
  writeln(s);
}
