# Caesar cipher - decrypting a message.
cipher = input('Enter your cryptogram: ')
text = ''
for char in cipher:
    if char.isspace():
        cipher +=char
    if not char.isalpha():
        continue
    char = char.upper()
    code = ord(char) - 1
    if code <ord('A'):
        code = ord('Z')
    text += chr(code)

print(text)