import java.util.Scanner;
public class Main { 
    public static void main(String[] args) {  
        try (Scanner sc = new Scanner(System.in)) { 
            String line = sc.nextLine(); 
            String answer = ""; 
            int length = line.length(); 
            for (int i = 0; i < length; i++) { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } 
            System.out.println(answer); 
        } 
    }
}
 import java.util.Scanner; Scanner java.util public class Main { 
    public static void main(String[] args) {  
        try (Scanner sc = new Scanner(System.in)) { 
            String line = sc.nextLine(); 
            String answer = ""; 
            int length = line.length(); 
            for (int i = 0; i < length; i++) { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } 
            System.out.println(answer); 
        } 
    }
} Main public static void main(String[] args) {  
        try (Scanner sc = new Scanner(System.in)) { 
            String line = sc.nextLine(); 
            String answer = ""; 
            int length = line.length(); 
            for (int i = 0; i < length; i++) { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } 
            System.out.println(answer); 
        } 
    } main {  
        try (Scanner sc = new Scanner(System.in)) { 
            String line = sc.nextLine(); 
            String answer = ""; 
            int length = line.length(); 
            for (int i = 0; i < length; i++) { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } 
            System.out.println(answer); 
        } 
    } try (Scanner sc = new Scanner(System.in)) { 
            String line = sc.nextLine(); 
            String answer = ""; 
            int length = line.length(); 
            for (int i = 0; i < length; i++) { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } 
            System.out.println(answer); 
        } { 
            String line = sc.nextLine(); 
            String answer = ""; 
            int length = line.length(); 
            for (int i = 0; i < length; i++) { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } 
            System.out.println(answer); 
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) 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); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } int i = 0; int i = 0; i 0 i < length i length i++ i++ i { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } char ch = line.charAt(i); ch line.charAt(i) line.charAt line i if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                } Character.isLowerCase(ch) == true Character.isLowerCase(ch) Character.isLowerCase Character ch true {
                    ch = Character.toUpperCase(line.charAt(i));
                } ch = Character.toUpperCase(line.charAt(i)) ch Character.toUpperCase(line.charAt(i)) Character.toUpperCase Character line.charAt(i) line.charAt line i if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                } Character.isLowerCase(ch) == false Character.isLowerCase(ch) Character.isLowerCase Character ch false {
                    ch = Character.toLowerCase(line.charAt(i));
                } ch = Character.toLowerCase(line.charAt(i)) ch Character.toLowerCase(line.charAt(i)) Character.toLowerCase Character line.charAt(i) line.charAt line i answer = answer + ch answer answer + ch answer ch System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main { 
    public static void main(String[] args) {  
        try (Scanner sc = new Scanner(System.in)) { 
            String line = sc.nextLine(); 
            String answer = ""; 
            int length = line.length(); 
            for (int i = 0; i < length; i++) { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } 
            System.out.println(answer); 
        } 
    }
} public class Main { 
    public static void main(String[] args) {  
        try (Scanner sc = new Scanner(System.in)) { 
            String line = sc.nextLine(); 
            String answer = ""; 
            int length = line.length(); 
            for (int i = 0; i < length; i++) { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } 
            System.out.println(answer); 
        } 
    }
} Main
import java.util.Scanner;
public class Main { 
    public static void main(String[] args) {  
        try (Scanner sc = new Scanner(System.in)) { 
            String line = sc.nextLine(); 
            String answer = ""; 
            int length = line.length(); 
            for (int i = 0; i < length; i++) { 
                char ch = line.charAt(i); 
                if(Character.isLowerCase(ch) == true){
                    ch = Character.toUpperCase(line.charAt(i));
                } else if(Character.isLowerCase(ch) == false){
                    ch = Character.toLowerCase(line.charAt(i));
                }
                answer = answer + ch;
            } 
            System.out.println(answer); 
        } 
    }
}

