Write a program which converts uppercase/lowercase letters to lowercase/uppercase for a given string.

Constraints

* The length of the input string < 1200

Input

A string is given in a line.

Output

Print the converted string in a line. Note that you do not need to convert any characters other than alphabetical letters.

Example

Input

fAIR, LATER, OCCASIONALLY CLOUDY.


Output

Fair, later, occasionally cloudy.
import sys

printf = sys.stdout.write

word = map(str, raw_input().split(', '))

count = []
new_word = []
for i in range(len(word)):
    for j in range(len(word[i])):
        if word[i][j].islower():
            new_word.append(chr(ord(word[i][j]) - 32))
        elif word[i][j].isupper(): 
            new_word.append(chr(ord(word[i][j]) + 32))
        else:
            new_word.append(word[i][j])
    new_word.append(", ")


for i in range(len(new_word) - 1):
    printf(new_word[i])
    
print ""