import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		try {
			while ((buffer = reader.readLine())  != null) {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}
 import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		try {
			while ((buffer = reader.readLine())  != null) {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		try {
			while ((buffer = reader.readLine())  != null) {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		try {
			while ((buffer = reader.readLine())  != null) {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String buffer; buffer try {
			while ((buffer = reader.readLine())  != null) {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		} catch (Exception ex) {
			ex.printStackTrace();
		} Exception ex {
			ex.printStackTrace();
		} ex.printStackTrace() ex.printStackTrace ex {
			while ((buffer = reader.readLine())  != null) {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			}
		} while ((buffer = reader.readLine())  != null) {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			} (buffer = reader.readLine())  != null (buffer = reader.readLine()) buffer reader.readLine() reader.readLine reader null {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			} char[] chars = buffer.toCharArray(); chars buffer.toCharArray() buffer.toCharArray buffer for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				} int i = 0; int i = 0; i 0 i < chars.length i chars.length chars chars.length i++ i++ i {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				} {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				} char ch = chars[i]; ch chars[i] chars i if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					} Character.isLowerCase(ch) Character.isLowerCase Character ch {
						chars[i] = Character.toUpperCase(ch);
					} chars[i] = Character.toUpperCase(ch) chars[i] chars i Character.toUpperCase(ch) Character.toUpperCase Character ch {
						chars[i] = Character.toLowerCase(ch);
					} chars[i] = Character.toLowerCase(ch) chars[i] chars i Character.toLowerCase(ch) Character.toLowerCase Character ch System.out.println(String.valueOf(chars)) System.out.println System.out System System.out String.valueOf(chars) String.valueOf String chars String[] args args public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		try {
			while ((buffer = reader.readLine())  != null) {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
} public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		try {
			while ((buffer = reader.readLine())  != null) {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		try {
			while ((buffer = reader.readLine())  != null) {
				//String[] input = buffer.split(" ");
				char[] chars = buffer.toCharArray();
				for (int i = 0; i < chars.length; i++) {
					char ch = chars[i];
					if (Character.isLowerCase(ch)) {
						chars[i] = Character.toUpperCase(ch);
					}
					else {
						chars[i] = Character.toLowerCase(ch);
					}
				}
				System.out.println(String.valueOf(chars));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}

