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

public class Main {
	public static void main(String[] args) throws IOException {
	Character objChar1;
	
	String str;
	char c;
	int i,a;
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	str = br.readLine();
	
	

	for (i=0;i<str.length();i++){
		c=str.charAt(i);
		if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		}
		System.out.print(c);
		
	}
	System.out.println();
}
} 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) throws IOException {
	Character objChar1;
	
	String str;
	char c;
	int i,a;
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	str = br.readLine();
	
	

	for (i=0;i<str.length();i++){
		c=str.charAt(i);
		if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		}
		System.out.print(c);
		
	}
	System.out.println();
}
} Main public static void main(String[] args) throws IOException {
	Character objChar1;
	
	String str;
	char c;
	int i,a;
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	str = br.readLine();
	
	

	for (i=0;i<str.length();i++){
		c=str.charAt(i);
		if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		}
		System.out.print(c);
		
	}
	System.out.println();
} main {
	Character objChar1;
	
	String str;
	char c;
	int i,a;
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	str = br.readLine();
	
	

	for (i=0;i<str.length();i++){
		c=str.charAt(i);
		if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		}
		System.out.print(c);
		
	}
	System.out.println();
} Character objChar1; objChar1 String str; str char c; c int i i a; a InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) str = br.readLine() str br.readLine() br.readLine br for (i=0;i<str.length();i++){
		c=str.charAt(i);
		if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		}
		System.out.print(c);
		
	} i=0; i=0 i 0 i<str.length() i str.length() str.length str i++ i++ i {
		c=str.charAt(i);
		if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		}
		System.out.print(c);
		
	} {
		c=str.charAt(i);
		if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		}
		System.out.print(c);
		
	} c=str.charAt(i) c str.charAt(i) str.charAt str i if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		} Character.isUpperCase(c) Character.isUpperCase Character c {
			c=Character.toLowerCase(c);
		} c=Character.toLowerCase(c) c Character.toLowerCase(c) Character.toLowerCase Character c {
			c=Character.toUpperCase(c);
		} c=Character.toUpperCase(c) c Character.toUpperCase(c) Character.toUpperCase Character c System.out.print(c) System.out.print System.out System System.out c System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) throws IOException {
	Character objChar1;
	
	String str;
	char c;
	int i,a;
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	str = br.readLine();
	
	

	for (i=0;i<str.length();i++){
		c=str.charAt(i);
		if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		}
		System.out.print(c);
		
	}
	System.out.println();
}
} public class Main {
	public static void main(String[] args) throws IOException {
	Character objChar1;
	
	String str;
	char c;
	int i,a;
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	str = br.readLine();
	
	

	for (i=0;i<str.length();i++){
		c=str.charAt(i);
		if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		}
		System.out.print(c);
		
	}
	System.out.println();
}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
	Character objChar1;
	
	String str;
	char c;
	int i,a;
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	str = br.readLine();
	
	

	for (i=0;i<str.length();i++){
		c=str.charAt(i);
		if(Character.isUpperCase(c)) {
			c=Character.toLowerCase(c);
		}else {
			c=Character.toUpperCase(c);
		}
		System.out.print(c);
		
	}
	System.out.println();
}
}