import java.util.Scanner;
import java.util.ArrayList;
public class Main {
	private static Scanner sc=new Scanner(System.in);
	private static String input=sc.nextLine();
	private static ArrayList<String> result=new ArrayList<String>();
	public static void main(String[] args){
		for(int i=0;i<input.length();i++){
			char c=exchanger(input.charAt(i));
			result.add(String.valueOf(c));
		}
		for(int i=0;i<result.size();i++){
			System.out.print(result.get(i));
		}
		System.out.println("");
	}
	private static char exchanger(char x){
		if(Character.isUpperCase(x)) return Character.toLowerCase(x);
		if(Character.isLowerCase(x)) return Character.toUpperCase(x);
		else return x;
	}
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util public class Main {
	private static Scanner sc=new Scanner(System.in);
	private static String input=sc.nextLine();
	private static ArrayList<String> result=new ArrayList<String>();
	public static void main(String[] args){
		for(int i=0;i<input.length();i++){
			char c=exchanger(input.charAt(i));
			result.add(String.valueOf(c));
		}
		for(int i=0;i<result.size();i++){
			System.out.print(result.get(i));
		}
		System.out.println("");
	}
	private static char exchanger(char x){
		if(Character.isUpperCase(x)) return Character.toLowerCase(x);
		if(Character.isLowerCase(x)) return Character.toUpperCase(x);
		else return x;
	}
} Main private static Scanner sc=new Scanner(System.in); sc new Scanner(System.in) private static String input=sc.nextLine(); input sc.nextLine() sc.nextLine sc private static ArrayList<String> result=new ArrayList<String>(); result new ArrayList<String>() public static void main(String[] args){
		for(int i=0;i<input.length();i++){
			char c=exchanger(input.charAt(i));
			result.add(String.valueOf(c));
		}
		for(int i=0;i<result.size();i++){
			System.out.print(result.get(i));
		}
		System.out.println("");
	} main {
		for(int i=0;i<input.length();i++){
			char c=exchanger(input.charAt(i));
			result.add(String.valueOf(c));
		}
		for(int i=0;i<result.size();i++){
			System.out.print(result.get(i));
		}
		System.out.println("");
	} for(int i=0;i<input.length();i++){
			char c=exchanger(input.charAt(i));
			result.add(String.valueOf(c));
		} int i=0; int i=0; i 0 i<input.length() i input.length() input.length input i++ i++ i {
			char c=exchanger(input.charAt(i));
			result.add(String.valueOf(c));
		} {
			char c=exchanger(input.charAt(i));
			result.add(String.valueOf(c));
		} char c=exchanger(input.charAt(i)); c exchanger(input.charAt(i)) exchanger input.charAt(i) input.charAt input i result.add(String.valueOf(c)) result.add result String.valueOf(c) String.valueOf String c for(int i=0;i<result.size();i++){
			System.out.print(result.get(i));
		} int i=0; int i=0; i 0 i<result.size() i result.size() result.size result i++ i++ i {
			System.out.print(result.get(i));
		} {
			System.out.print(result.get(i));
		} System.out.print(result.get(i)) System.out.print System.out System System.out result.get(i) result.get result i System.out.println("") System.out.println System.out System System.out "" String[] args args private static char exchanger(char x){
		if(Character.isUpperCase(x)) return Character.toLowerCase(x);
		if(Character.isLowerCase(x)) return Character.toUpperCase(x);
		else return x;
	} exchanger {
		if(Character.isUpperCase(x)) return Character.toLowerCase(x);
		if(Character.isLowerCase(x)) return Character.toUpperCase(x);
		else return x;
	} if(Character.isUpperCase(x)) return Character.toLowerCase(x); Character.isUpperCase(x) Character.isUpperCase Character x return Character.toLowerCase(x); Character.toLowerCase(x) Character.toLowerCase Character x if(Character.isLowerCase(x)) return Character.toUpperCase(x);
		else return x; Character.isLowerCase(x) Character.isLowerCase Character x return Character.toUpperCase(x); Character.toUpperCase(x) Character.toUpperCase Character x return x; x char x x public class Main {
	private static Scanner sc=new Scanner(System.in);
	private static String input=sc.nextLine();
	private static ArrayList<String> result=new ArrayList<String>();
	public static void main(String[] args){
		for(int i=0;i<input.length();i++){
			char c=exchanger(input.charAt(i));
			result.add(String.valueOf(c));
		}
		for(int i=0;i<result.size();i++){
			System.out.print(result.get(i));
		}
		System.out.println("");
	}
	private static char exchanger(char x){
		if(Character.isUpperCase(x)) return Character.toLowerCase(x);
		if(Character.isLowerCase(x)) return Character.toUpperCase(x);
		else return x;
	}
} public class Main {
	private static Scanner sc=new Scanner(System.in);
	private static String input=sc.nextLine();
	private static ArrayList<String> result=new ArrayList<String>();
	public static void main(String[] args){
		for(int i=0;i<input.length();i++){
			char c=exchanger(input.charAt(i));
			result.add(String.valueOf(c));
		}
		for(int i=0;i<result.size();i++){
			System.out.print(result.get(i));
		}
		System.out.println("");
	}
	private static char exchanger(char x){
		if(Character.isUpperCase(x)) return Character.toLowerCase(x);
		if(Character.isLowerCase(x)) return Character.toUpperCase(x);
		else return x;
	}
} Main
import java.util.Scanner;
import java.util.ArrayList;
public class Main {
	private static Scanner sc=new Scanner(System.in);
	private static String input=sc.nextLine();
	private static ArrayList<String> result=new ArrayList<String>();
	public static void main(String[] args){
		for(int i=0;i<input.length();i++){
			char c=exchanger(input.charAt(i));
			result.add(String.valueOf(c));
		}
		for(int i=0;i<result.size();i++){
			System.out.print(result.get(i));
		}
		System.out.println("");
	}
	private static char exchanger(char x){
		if(Character.isUpperCase(x)) return Character.toLowerCase(x);
		if(Character.isLowerCase(x)) return Character.toUpperCase(x);
		else return x;
	}
}