let () =
  let chenge c n =
    let num = (Char.code c) + n in
    if 90 < num then print_char (Char.chr (num-26))
    else print_char (Char.chr num) in
  Scanf.scanf "%d\n%s\n" @@ fun n s ->
  String.iter (fun c -> chenge c n) s; print_newline ();