import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		String str="";
		String conv_str="";

		Scanner sc= new Scanner( System.in );
		str = sc.nextLine();

		for ( int i = 0 ; i < str.length() ; i++ ) {
			if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			}
		}

		System.out.println( conv_str );

		sc.close();
	}
}
 import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		String str="";
		String conv_str="";

		Scanner sc= new Scanner( System.in );
		str = sc.nextLine();

		for ( int i = 0 ; i < str.length() ; i++ ) {
			if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			}
		}

		System.out.println( conv_str );

		sc.close();
	}
} Main public static void main(String[] args) {

		String str="";
		String conv_str="";

		Scanner sc= new Scanner( System.in );
		str = sc.nextLine();

		for ( int i = 0 ; i < str.length() ; i++ ) {
			if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			}
		}

		System.out.println( conv_str );

		sc.close();
	} main {

		String str="";
		String conv_str="";

		Scanner sc= new Scanner( System.in );
		str = sc.nextLine();

		for ( int i = 0 ; i < str.length() ; i++ ) {
			if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			}
		}

		System.out.println( conv_str );

		sc.close();
	} String str=""; str "" String conv_str=""; conv_str "" Scanner sc= new Scanner( System.in ); sc new Scanner( System.in ) str = sc.nextLine() str sc.nextLine() sc.nextLine sc for ( int i = 0 ; i < str.length() ; i++ ) {
			if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			}
		} int i = 0 ; int i = 0 ; i 0 i < str.length() i str.length() str.length str i++ i++ i {
			if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			}
		} {
			if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			}
		} if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			} Character.isUpperCase(str.charAt(i)) Character.isUpperCase Character str.charAt(i) str.charAt str i {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			} conv_str += String.valueOf(str.charAt(i)).toLowerCase() conv_str String.valueOf(str.charAt(i)).toLowerCase() String.valueOf(str.charAt(i)).toLowerCase String.valueOf(str.charAt(i)) String.valueOf String str.charAt(i) str.charAt str i if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			} Character.isLowerCase(str.charAt(i)) Character.isLowerCase Character str.charAt(i) str.charAt str i {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			} conv_str += String.valueOf(str.charAt(i)).toUpperCase() conv_str String.valueOf(str.charAt(i)).toUpperCase() String.valueOf(str.charAt(i)).toUpperCase String.valueOf(str.charAt(i)) String.valueOf String str.charAt(i) str.charAt str i {
				conv_str += String.valueOf(str.charAt(i));
			} conv_str += String.valueOf(str.charAt(i)) conv_str String.valueOf(str.charAt(i)) String.valueOf String str.charAt(i) str.charAt str i System.out.println( conv_str ) System.out.println System.out System System.out conv_str sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		String str="";
		String conv_str="";

		Scanner sc= new Scanner( System.in );
		str = sc.nextLine();

		for ( int i = 0 ; i < str.length() ; i++ ) {
			if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			}
		}

		System.out.println( conv_str );

		sc.close();
	}
} public class Main {

	public static void main(String[] args) {

		String str="";
		String conv_str="";

		Scanner sc= new Scanner( System.in );
		str = sc.nextLine();

		for ( int i = 0 ; i < str.length() ; i++ ) {
			if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			}
		}

		System.out.println( conv_str );

		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		String str="";
		String conv_str="";

		Scanner sc= new Scanner( System.in );
		str = sc.nextLine();

		for ( int i = 0 ; i < str.length() ; i++ ) {
			if(Character.isUpperCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toLowerCase();
			}else if(Character.isLowerCase(str.charAt(i))) {
				conv_str += String.valueOf(str.charAt(i)).toUpperCase();
			}else {
				conv_str += String.valueOf(str.charAt(i));
			}
		}

		System.out.println( conv_str );

		sc.close();
	}
}

