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.
#include <stdio.h>
int main(void){
while(1){
    int x;
    x=getchar();
    
    if(x==-1)
    break;
    else if(65<=x&&90>=x)
    x+=32;
    else if(97<=x&&122>=x)
    x-=32;
  
    putchar(x);
}
printf("\0\n");

    return 0;
}