import java.util.Scanner;
import java.util.Formatter;
public class Main {
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        Formatter fm = new Formatter();
            String line = sc.nextLine();
            String answer = "";
            int length = line.length();
            for(int i=0;i<length;i++){
                char ch = line.charAt(i);
                char ch2;
                if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch);
                fm.format(answer+"%c",ch2);
            }
            System.out.println(fm);
        
    }
}
 import java.util.Scanner; Scanner java.util import java.util.Formatter; Formatter java.util public class Main {
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        Formatter fm = new Formatter();
            String line = sc.nextLine();
            String answer = "";
            int length = line.length();
            for(int i=0;i<length;i++){
                char ch = line.charAt(i);
                char ch2;
                if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch);
                fm.format(answer+"%c",ch2);
            }
            System.out.println(fm);
        
    }
} Main public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        Formatter fm = new Formatter();
            String line = sc.nextLine();
            String answer = "";
            int length = line.length();
            for(int i=0;i<length;i++){
                char ch = line.charAt(i);
                char ch2;
                if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch);
                fm.format(answer+"%c",ch2);
            }
            System.out.println(fm);
        
    } main {
        Scanner sc = new Scanner(System.in);
        Formatter fm = new Formatter();
            String line = sc.nextLine();
            String answer = "";
            int length = line.length();
            for(int i=0;i<length;i++){
                char ch = line.charAt(i);
                char ch2;
                if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch);
                fm.format(answer+"%c",ch2);
            }
            System.out.println(fm);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Formatter fm = new Formatter(); fm new Formatter() String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String answer = ""; answer "" int length = line.length(); length line.length() line.length line for(int i=0;i<length;i++){
                char ch = line.charAt(i);
                char ch2;
                if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch);
                fm.format(answer+"%c",ch2);
            } int i=0; int i=0; i 0 i<length i length i++ i++ i {
                char ch = line.charAt(i);
                char ch2;
                if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch);
                fm.format(answer+"%c",ch2);
            } {
                char ch = line.charAt(i);
                char ch2;
                if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch);
                fm.format(answer+"%c",ch2);
            } char ch = line.charAt(i); ch line.charAt(i) line.charAt line i char ch2; ch2 if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch); Character.isLowerCase(ch) Character.isLowerCase Character ch ch2 = Character.toUpperCase(ch) ch2 Character.toUpperCase(ch) Character.toUpperCase Character ch ch2 = Character.toLowerCase(ch) ch2 Character.toLowerCase(ch) Character.toLowerCase Character ch fm.format(answer+"%c",ch2) fm.format fm answer+"%c" answer "%c" ch2 System.out.println(fm) System.out.println System.out System System.out fm String[]args args public class Main {
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        Formatter fm = new Formatter();
            String line = sc.nextLine();
            String answer = "";
            int length = line.length();
            for(int i=0;i<length;i++){
                char ch = line.charAt(i);
                char ch2;
                if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch);
                fm.format(answer+"%c",ch2);
            }
            System.out.println(fm);
        
    }
} public class Main {
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        Formatter fm = new Formatter();
            String line = sc.nextLine();
            String answer = "";
            int length = line.length();
            for(int i=0;i<length;i++){
                char ch = line.charAt(i);
                char ch2;
                if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch);
                fm.format(answer+"%c",ch2);
            }
            System.out.println(fm);
        
    }
} Main
import java.util.Scanner;
import java.util.Formatter;
public class Main {
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        Formatter fm = new Formatter();
            String line = sc.nextLine();
            String answer = "";
            int length = line.length();
            for(int i=0;i<length;i++){
                char ch = line.charAt(i);
                char ch2;
                if(Character.isLowerCase(ch))ch2 = Character.toUpperCase(ch);
                else ch2 = Character.toLowerCase(ch);
                fm.format(answer+"%c",ch2);
            }
            System.out.println(fm);
        
    }
}

