open System

let rot n (c: char) =
    int c
    |> (+) n
    |> function
        | c when c > 90 -> (c - 90) + 64
        | c -> c
    |> char 

[<EntryPoint>]
let main _ =
    let n = Console.ReadLine() |> Int32.Parse
    Console.ReadLine()
    |> Seq.map (rot n >> string)
    |> String.concat ""
    |> printfn "%s"
    0