12889 - Caesar Cipher   

Description

In cryptography, a Caesar cipher, also known the shift cipher or Caesar shift, is one of the simplest encryption techniques.

In Caesar cipher each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a left shift of 3, D would be replaced by A, E would become B, and so on.

 

 

(Excerpted from wiki: https://en.wikipedia.org/wiki/Caesar_cipher)

Given one integer S to represent the left shift amount, and a string CT to represent the ciphered-text. Please Write a C Program to print out the origin plaintext.

Input

One integer S (left shift amount) and a string CT (ciphered-text).

Note that:

  1. -32,768 <= S <= 32,767.
  2. CT contains only lowercase English letters.
  3. The length of CT <= 2000.

Output

Output should follow below format:

PT

Note that:

  1. Need to have a return value('\n') at the end of your string.

Sample Input  Download

Sample Output  Download

Tags




Discuss