import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine();
        String answer = "";

        for(int i=0;i<code.length();i++){
            char box = code.charAt(i);

            if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            }
        }

        System.out.println(answer);

        sc.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine();
        String answer = "";

        for(int i=0;i<code.length();i++){
            char box = code.charAt(i);

            if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            }
        }

        System.out.println(answer);

        sc.close();
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine();
        String answer = "";

        for(int i=0;i<code.length();i++){
            char box = code.charAt(i);

            if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            }
        }

        System.out.println(answer);

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine();
        String answer = "";

        for(int i=0;i<code.length();i++){
            char box = code.charAt(i);

            if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            }
        }

        System.out.println(answer);

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String code = sc.nextLine(); code sc.nextLine() sc.nextLine sc String answer = ""; answer "" for(int i=0;i<code.length();i++){
            char box = code.charAt(i);

            if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            }
        } int i=0; int i=0; i 0 i<code.length() i code.length() code.length code i++ i++ i {
            char box = code.charAt(i);

            if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            }
        } {
            char box = code.charAt(i);

            if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            }
        } char box = code.charAt(i); box code.charAt(i) code.charAt code i if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            } Character.isLowerCase(box) Character.isLowerCase Character box {
                answer += Character.toUpperCase(box);
            } answer += Character.toUpperCase(box) answer Character.toUpperCase(box) Character.toUpperCase Character box {
                answer += Character.toLowerCase(box);
            } answer += Character.toLowerCase(box) answer Character.toLowerCase(box) Character.toLowerCase Character box System.out.println(answer) System.out.println System.out System System.out answer sc.close() sc.close sc String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine();
        String answer = "";

        for(int i=0;i<code.length();i++){
            char box = code.charAt(i);

            if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            }
        }

        System.out.println(answer);

        sc.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine();
        String answer = "";

        for(int i=0;i<code.length();i++){
            char box = code.charAt(i);

            if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            }
        }

        System.out.println(answer);

        sc.close();
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine();
        String answer = "";

        for(int i=0;i<code.length();i++){
            char box = code.charAt(i);

            if(Character.isLowerCase(box)){
                answer += Character.toUpperCase(box);
            }else{
                answer += Character.toLowerCase(box);
            }
        }

        System.out.println(answer);

        sc.close();
    }
}
