#P391. 【例68.2】 简单密码
【例68.2】 简单密码
Description
Julius Caesar once used a very simple cipher. For each character in the plaintext, it was replaced by the character 5 positions later in the alphabet to create the ciphertext. For example, the character '' was replaced by ''. Below is the correspondence between ciphertext and plaintext characters.
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 the given ciphertext to obtain the plaintext.
Note that all letters in the ciphertext are uppercase. The ciphertext may also contain non-letter characters (including spaces), which should not be decoded.
Input Format
One line containing the ciphertext. The ciphertext is not empty and contains no more than characters.
Output Format
Output one line containing the corresponding plaintext.
Sample
NS BFW, JAJSYX TK NRUTWYFSHJ FWJ YMJ WJXZQY TK YWNANFQ HFZXJXIN WAR, EVENTS OF IMPORTANCE ARE THE RESULT OF TRIVIAL CAUSES
Related
In following homework: