import java.util.Scanner;

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

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