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

public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    
		String x = "";
		try {
			x = in.readLine();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		for (int i = 0; i < x.length(); i++) {
			char c = x.charAt(i);
			if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			}
			
			if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			}
			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) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    
		String x = "";
		try {
			x = in.readLine();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		for (int i = 0; i < x.length(); i++) {
			char c = x.charAt(i);
			if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			}
			
			if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			}
			System.out.print(c);
		}
		
		System.out.println();
	}
} Main public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    
		String x = "";
		try {
			x = in.readLine();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		for (int i = 0; i < x.length(); i++) {
			char c = x.charAt(i);
			if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			}
			
			if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			}
			System.out.print(c);
		}
		
		System.out.println();
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    
		String x = "";
		try {
			x = in.readLine();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		for (int i = 0; i < x.length(); i++) {
			char c = x.charAt(i);
			if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			}
			
			if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			}
			System.out.print(c);
		}
		
		System.out.println();
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String x = ""; x "" try {
			x = in.readLine();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} NumberFormatException e {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} IOException e {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			x = in.readLine();
		} x = in.readLine() x in.readLine() in.readLine in for (int i = 0; i < x.length(); i++) {
			char c = x.charAt(i);
			if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			}
			
			if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			}
			System.out.print(c);
		} int i = 0; int i = 0; i 0 i < x.length() i x.length() x.length x i++ i++ i {
			char c = x.charAt(i);
			if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			}
			
			if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			}
			System.out.print(c);
		} {
			char c = x.charAt(i);
			if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			}
			
			if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			}
			System.out.print(c);
		} char c = x.charAt(i); c x.charAt(i) x.charAt x i if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			} (c < 'A') || c > 'z' (c < 'A') c 'A' c > 'z' c 'z' {
				System.out.print(c);
				continue;
			} System.out.print(c) System.out.print System.out System System.out c continue; if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			} (c - 'a') < 0 (c - 'a') c 'a' 0 {
				c = (char)(c + ('a' - 'A'));
			} c = (char)(c + ('a' - 'A')) c (char)(c + ('a' - 'A')) c ('a' - 'A') 'a' 'A' {
				c = (char)(c - ('a' - 'A'));
			} c = (char)(c - ('a' - 'A')) c (char)(c - ('a' - 'A')) c ('a' - 'A') 'a' 'A' 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) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    
		String x = "";
		try {
			x = in.readLine();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		for (int i = 0; i < x.length(); i++) {
			char c = x.charAt(i);
			if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			}
			
			if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			}
			System.out.print(c);
		}
		
		System.out.println();
	}
} public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    
		String x = "";
		try {
			x = in.readLine();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		for (int i = 0; i < x.length(); i++) {
			char c = x.charAt(i);
			if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			}
			
			if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			}
			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) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    
		String x = "";
		try {
			x = in.readLine();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		for (int i = 0; i < x.length(); i++) {
			char c = x.charAt(i);
			if ((c < 'A') || c > 'z') {
				System.out.print(c);
				continue;
			}
			
			if ((c - 'a') < 0) {
				c = (char)(c + ('a' - 'A'));
			} else {
				c = (char)(c - ('a' - 'A'));
			}
			System.out.print(c);
		}
		
		System.out.println();
	}
}