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

public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    char ch;
	    String inputed;
		try {
			inputed = br.readLine();
		     for(int i = 0; i < inputed.length(); i++){
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         }
		     System.out.printf("\n");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
 import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    char ch;
	    String inputed;
		try {
			inputed = br.readLine();
		     for(int i = 0; i < inputed.length(); i++){
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         }
		     System.out.printf("\n");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    char ch;
	    String inputed;
		try {
			inputed = br.readLine();
		     for(int i = 0; i < inputed.length(); i++){
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         }
		     System.out.printf("\n");
		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    char ch;
	    String inputed;
		try {
			inputed = br.readLine();
		     for(int i = 0; i < inputed.length(); i++){
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         }
		     System.out.printf("\n");
		} catch (IOException e) {
			e.printStackTrace();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) char ch; ch String inputed; inputed try {
			inputed = br.readLine();
		     for(int i = 0; i < inputed.length(); i++){
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         }
		     System.out.printf("\n");
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			inputed = br.readLine();
		     for(int i = 0; i < inputed.length(); i++){
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         }
		     System.out.printf("\n");
		} inputed = br.readLine() inputed br.readLine() br.readLine br for(int i = 0; i < inputed.length(); i++){
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         } int i = 0; int i = 0; i 0 i < inputed.length() i inputed.length() inputed.length inputed i++ i++ i {
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         } {
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         } ch = inputed.charAt(i) ch inputed.charAt(i) inputed.charAt inputed i if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             } Character.isUpperCase(ch) Character.isUpperCase Character ch {
	                 System.out.print(Character.toLowerCase(ch));
	             } System.out.print(Character.toLowerCase(ch)) System.out.print System.out System System.out Character.toLowerCase(ch) Character.toLowerCase Character ch if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             } Character.isLowerCase(ch) Character.isLowerCase Character ch {
	                 System.out.print(Character.toUpperCase(ch));
	             } System.out.print(Character.toUpperCase(ch)) System.out.print System.out System System.out Character.toUpperCase(ch) Character.toUpperCase Character ch {
	                 System.out.print((char)ch);
	             } System.out.print((char)ch) System.out.print System.out System System.out (char)ch System.out.printf("\n") System.out.printf System.out System System.out "\n" String[] args args public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    char ch;
	    String inputed;
		try {
			inputed = br.readLine();
		     for(int i = 0; i < inputed.length(); i++){
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         }
		     System.out.printf("\n");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    char ch;
	    String inputed;
		try {
			inputed = br.readLine();
		     for(int i = 0; i < inputed.length(); i++){
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         }
		     System.out.printf("\n");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    char ch;
	    String inputed;
		try {
			inputed = br.readLine();
		     for(int i = 0; i < inputed.length(); i++){
	             ch = inputed.charAt(i);

	             if(Character.isUpperCase(ch)){
	                 System.out.print(Character.toLowerCase(ch));
	             }else if(Character.isLowerCase(ch)){
	                 System.out.print(Character.toUpperCase(ch));
	             }else{
	                 System.out.print((char)ch);
	             }
	         }
		     System.out.printf("\n");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

