
import java.util.*;
import java.io.*;

public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int x;
		
		try{
			do{
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			}while((char)x!='\n');
			
		}catch(IOException e){
			e.printStackTrace();
		}
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int x;
		
		try{
			do{
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			}while((char)x!='\n');
			
		}catch(IOException e){
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int x;
		
		try{
			do{
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			}while((char)x!='\n');
			
		}catch(IOException e){
			e.printStackTrace();
		}
	} main {
		Scanner stdIn = new Scanner(System.in);
		
		int x;
		
		try{
			do{
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			}while((char)x!='\n');
			
		}catch(IOException e){
			e.printStackTrace();
		}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int x; x try{
			do{
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			}while((char)x!='\n');
			
		}catch(IOException e){
			e.printStackTrace();
		} catch(IOException e){
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			do{
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			}while((char)x!='\n');
			
		} do{
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			}while((char)x!='\n'); (char)x!='\n' (char)x '\n' {
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			} x = System.in.read() x System.in.read() System.in.read System.in System System.in if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				} Character.isLowerCase((char)x) Character.isLowerCase Character (char)x {
					System.out.print(Character.toUpperCase((char)x));
				} System.out.print(Character.toUpperCase((char)x)) System.out.print System.out System System.out Character.toUpperCase((char)x) Character.toUpperCase Character (char)x {
					System.out.print(Character.toLowerCase((char)x));
				} System.out.print(Character.toLowerCase((char)x)) System.out.print System.out System System.out Character.toLowerCase((char)x) Character.toLowerCase Character (char)x String[] args args public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int x;
		
		try{
			do{
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			}while((char)x!='\n');
			
		}catch(IOException e){
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int x;
		
		try{
			do{
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			}while((char)x!='\n');
			
		}catch(IOException e){
			e.printStackTrace();
		}
	}
} Main

import java.util.*;
import java.io.*;

public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int x;
		
		try{
			do{
				x = System.in.read();
				if(Character.isLowerCase((char)x))
				{
					System.out.print(Character.toUpperCase((char)x));
				}
				else
				{
					System.out.print(Character.toLowerCase((char)x));
				}
			}while((char)x!='\n');
			
		}catch(IOException e){
			e.printStackTrace();
		}
	}
}