
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int length = line.length();
		for (int i = 0; i < length; i++) {
			char ch = line.charAt(i);
			if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else 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 sc = new Scanner(System.in);
		String line = sc.nextLine();
		int length = line.length();
		for (int i = 0; i < length; i++) {
			char ch = line.charAt(i);
			if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else ch = Character.toLowerCase(ch);
			System.out.print(ch);
		}
		System.out.println();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int length = line.length();
		for (int i = 0; i < length; i++) {
			char ch = line.charAt(i);
			if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else ch = Character.toLowerCase(ch);
			System.out.print(ch);
		}
		System.out.println();
	} main {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int length = line.length();
		for (int i = 0; i < length; i++) {
			char ch = line.charAt(i);
			if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else ch = Character.toLowerCase(ch);
			System.out.print(ch);
		}
		System.out.println();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc int length = line.length(); length line.length() line.length line for (int i = 0; i < length; i++) {
			char ch = line.charAt(i);
			if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else ch = Character.toLowerCase(ch);
			System.out.print(ch);
		} int i = 0; int i = 0; i 0 i < length i length i++ i++ i {
			char ch = line.charAt(i);
			if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else ch = Character.toLowerCase(ch);
			System.out.print(ch);
		} {
			char ch = line.charAt(i);
			if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else ch = Character.toLowerCase(ch);
			System.out.print(ch);
		} char ch = line.charAt(i); ch line.charAt(i) line.charAt line i if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else ch = Character.toLowerCase(ch); Character.isLowerCase(ch) == true Character.isLowerCase(ch) Character.isLowerCase Character ch true ch = Character.toUpperCase(ch) ch Character.toUpperCase(ch) Character.toUpperCase Character 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 sc = new Scanner(System.in);
		String line = sc.nextLine();
		int length = line.length();
		for (int i = 0; i < length; i++) {
			char ch = line.charAt(i);
			if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else ch = Character.toLowerCase(ch);
			System.out.print(ch);
		}
		System.out.println();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int length = line.length();
		for (int i = 0; i < length; i++) {
			char ch = line.charAt(i);
			if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else 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 sc = new Scanner(System.in);
		String line = sc.nextLine();
		int length = line.length();
		for (int i = 0; i < length; i++) {
			char ch = line.charAt(i);
			if (Character.isLowerCase(ch) == true) ch = Character.toUpperCase(ch);
			else ch = Character.toLowerCase(ch);
			System.out.print(ch);
		}
		System.out.println();
	}
}

