#t182. 简单密码
简单密码
Simple Cipher
Problem Description
Julius Caesar once used a very simple cipher. For each character in the plaintext, replace it with the character that is positions later in the alphabet, obtaining the ciphertext. For example, the letter A is replaced by F. The correspondence between ciphertext and plaintext characters is shown below.
Ciphertext:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Plaintext:
V W X Y Z A B C D E F G H I J K L M N O P Q R S T U
Your task is to decrypt a given ciphertext into the plaintext.
Note that all letters appearing in the ciphertext are uppercase letters. The ciphertext may also contain non-alphabetic characters; these characters are not to be decoded.
Input Format
One line giving the ciphertext. The ciphertext is non-empty and contains no more than characters.
Output Format
Output one line: the plaintext corresponding to the ciphertext.
Sample Input
NS BFW, JAJSYX TK NRUTWYFSHJ FWJ YMJ WJXZQY TK YWNANFQ HFZXJX
Sample Output
IN WAR, EVENTS OF IMPORTANCE ARE THE RESULT OF TRIVIAL CAUSES