
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String data = scn.nextLine();
		char[] datas = data.toCharArray();
		for (int i = 0; i < data.length(); i++) {
			if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			}
		}
		String changedData = String.valueOf(datas);
		System.out.println(changedData);
	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String data = scn.nextLine();
		char[] datas = data.toCharArray();
		for (int i = 0; i < data.length(); i++) {
			if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			}
		}
		String changedData = String.valueOf(datas);
		System.out.println(changedData);
	}
} Main public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String data = scn.nextLine();
		char[] datas = data.toCharArray();
		for (int i = 0; i < data.length(); i++) {
			if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			}
		}
		String changedData = String.valueOf(datas);
		System.out.println(changedData);
	} main {
		Scanner scn = new Scanner(System.in);
		String data = scn.nextLine();
		char[] datas = data.toCharArray();
		for (int i = 0; i < data.length(); i++) {
			if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			}
		}
		String changedData = String.valueOf(datas);
		System.out.println(changedData);
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) String data = scn.nextLine(); data scn.nextLine() scn.nextLine scn char[] datas = data.toCharArray(); datas data.toCharArray() data.toCharArray data for (int i = 0; i < data.length(); i++) {
			if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			}
		} int i = 0; int i = 0; i 0 i < data.length() i data.length() data.length data i++ i++ i {
			if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			}
		} {
			if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			}
		} if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			} Character.isLowerCase(datas[i]) Character.isLowerCase Character datas[i] datas i {
				datas[i] = Character.toUpperCase(datas[i]);
			} datas[i] = Character.toUpperCase(datas[i]) datas[i] datas i Character.toUpperCase(datas[i]) Character.toUpperCase Character datas[i] datas i if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			} Character.isUpperCase(datas[i]) Character.isUpperCase Character datas[i] datas i {
				datas[i] = Character.toLowerCase(datas[i]);
			} datas[i] = Character.toLowerCase(datas[i]) datas[i] datas i Character.toLowerCase(datas[i]) Character.toLowerCase Character datas[i] datas i String changedData = String.valueOf(datas); changedData String.valueOf(datas) String.valueOf String datas System.out.println(changedData) System.out.println System.out System System.out changedData String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String data = scn.nextLine();
		char[] datas = data.toCharArray();
		for (int i = 0; i < data.length(); i++) {
			if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			}
		}
		String changedData = String.valueOf(datas);
		System.out.println(changedData);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String data = scn.nextLine();
		char[] datas = data.toCharArray();
		for (int i = 0; i < data.length(); i++) {
			if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			}
		}
		String changedData = String.valueOf(datas);
		System.out.println(changedData);
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String data = scn.nextLine();
		char[] datas = data.toCharArray();
		for (int i = 0; i < data.length(); i++) {
			if (Character.isLowerCase(datas[i])) {
				datas[i] = Character.toUpperCase(datas[i]);
			} else if (Character.isUpperCase(datas[i])) {
				datas[i] = Character.toLowerCase(datas[i]);
			}
		}
		String changedData = String.valueOf(datas);
		System.out.println(changedData);
	}
}

