
public class Main {
	public static void main(String[] args) {
		String input = new java.util.Scanner(System.in).nextLine();
		char serch; String str = "";
		for (int i = 0; i < input.length(); i++) {
			serch = input.charAt(i);
			if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			}
			str += serch;
		}
		System.out.println(str);
	}

} public class Main {
	public static void main(String[] args) {
		String input = new java.util.Scanner(System.in).nextLine();
		char serch; String str = "";
		for (int i = 0; i < input.length(); i++) {
			serch = input.charAt(i);
			if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			}
			str += serch;
		}
		System.out.println(str);
	}

} Main public static void main(String[] args) {
		String input = new java.util.Scanner(System.in).nextLine();
		char serch; String str = "";
		for (int i = 0; i < input.length(); i++) {
			serch = input.charAt(i);
			if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			}
			str += serch;
		}
		System.out.println(str);
	} main {
		String input = new java.util.Scanner(System.in).nextLine();
		char serch; String str = "";
		for (int i = 0; i < input.length(); i++) {
			serch = input.charAt(i);
			if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			}
			str += serch;
		}
		System.out.println(str);
	} String input = new java.util.Scanner(System.in).nextLine(); input new java.util.Scanner(System.in).nextLine() new java.util.Scanner(System.in).nextLine new java.util.Scanner(System.in) char serch; serch String str = ""; str "" for (int i = 0; i < input.length(); i++) {
			serch = input.charAt(i);
			if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			}
			str += serch;
		} int i = 0; int i = 0; i 0 i < input.length() i input.length() input.length input i++ i++ i {
			serch = input.charAt(i);
			if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			}
			str += serch;
		} {
			serch = input.charAt(i);
			if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			}
			str += serch;
		} serch = input.charAt(i) serch input.charAt(i) input.charAt input i if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			} Character.isLowerCase(serch) Character.isLowerCase Character serch {
				serch = Character.toUpperCase(serch);
			} serch = Character.toUpperCase(serch) serch Character.toUpperCase(serch) Character.toUpperCase Character serch if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			} Character.isUpperCase(serch) Character.isUpperCase Character serch {
				serch = Character.toLowerCase(serch);
			} serch = Character.toLowerCase(serch) serch Character.toLowerCase(serch) Character.toLowerCase Character serch str += serch str serch System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main {
	public static void main(String[] args) {
		String input = new java.util.Scanner(System.in).nextLine();
		char serch; String str = "";
		for (int i = 0; i < input.length(); i++) {
			serch = input.charAt(i);
			if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			}
			str += serch;
		}
		System.out.println(str);
	}

} public class Main {
	public static void main(String[] args) {
		String input = new java.util.Scanner(System.in).nextLine();
		char serch; String str = "";
		for (int i = 0; i < input.length(); i++) {
			serch = input.charAt(i);
			if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			}
			str += serch;
		}
		System.out.println(str);
	}

} Main

public class Main {
	public static void main(String[] args) {
		String input = new java.util.Scanner(System.in).nextLine();
		char serch; String str = "";
		for (int i = 0; i < input.length(); i++) {
			serch = input.charAt(i);
			if (Character.isLowerCase(serch)) {
				serch = Character.toUpperCase(serch);
			} else if (Character.isUpperCase(serch)) {
				serch = Character.toLowerCase(serch);
			}
			str += serch;
		}
		System.out.println(str);
	}

}