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 java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int i;
		char cha = 0;
		String str;
		try (Scanner sc = new Scanner(System.in)) {
			str = sc.nextLine();
			for(i = 0; i < str.length(); i++) {
				cha = str.charAt(i); //strの文字列を一文字づつchaに入れる
				if(Character.isUpperCase(cha)){
					System.out.print(Character.toLowerCase(cha)); //chaが大文字の時小文字にする
				}else {
					System.out.print(Character.toUpperCase(cha)); //chaが小文字の時大文字にし、それ以外はそのまま出力
				}
			}
			System.out.println();
		}
	}
}

