import java.util.Scanner;
import java.util.stream.StreamSupport;

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

        while(sc.hasNext()){
            int i=0;
            String word = sc.nextLine();
            String result = "";
            for(i=0; i<word.length(); i++){
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            }

            System.out.println(result);

        }
    }
}
 import java.util.Scanner; Scanner java.util import java.util.stream.StreamSupport; StreamSupport java.util.stream public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            int i=0;
            String word = sc.nextLine();
            String result = "";
            for(i=0; i<word.length(); i++){
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            }

            System.out.println(result);

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

        while(sc.hasNext()){
            int i=0;
            String word = sc.nextLine();
            String result = "";
            for(i=0; i<word.length(); i++){
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            }

            System.out.println(result);

        }
    } main {
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            int i=0;
            String word = sc.nextLine();
            String result = "";
            for(i=0; i<word.length(); i++){
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            }

            System.out.println(result);

        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
            int i=0;
            String word = sc.nextLine();
            String result = "";
            for(i=0; i<word.length(); i++){
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            }

            System.out.println(result);

        } sc.hasNext() sc.hasNext sc {
            int i=0;
            String word = sc.nextLine();
            String result = "";
            for(i=0; i<word.length(); i++){
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            }

            System.out.println(result);

        } int i=0; i 0 String word = sc.nextLine(); word sc.nextLine() sc.nextLine sc String result = ""; result "" for(i=0; i<word.length(); i++){
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            } i=0; i=0 i 0 i<word.length() i word.length() word.length word i++ i++ i {
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            } {
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            } char ch = word.charAt(i); ch word.charAt(i) word.charAt word i if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                } Character.isLowerCase(ch) Character.isLowerCase Character ch {
                    ch = Character.toUpperCase(ch);
                } ch = Character.toUpperCase(ch) ch Character.toUpperCase(ch) Character.toUpperCase Character ch if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                } Character.isUpperCase(ch) Character.isUpperCase Character ch {
                    ch = Character.toLowerCase(ch);
                } ch = Character.toLowerCase(ch) ch Character.toLowerCase(ch) Character.toLowerCase Character ch result += ch result ch System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            int i=0;
            String word = sc.nextLine();
            String result = "";
            for(i=0; i<word.length(); i++){
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            }

            System.out.println(result);

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

        while(sc.hasNext()){
            int i=0;
            String word = sc.nextLine();
            String result = "";
            for(i=0; i<word.length(); i++){
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            }

            System.out.println(result);

        }
    }
} Main
import java.util.Scanner;
import java.util.stream.StreamSupport;

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

        while(sc.hasNext()){
            int i=0;
            String word = sc.nextLine();
            String result = "";
            for(i=0; i<word.length(); i++){
                char ch = word.charAt(i);
                if (Character.isLowerCase(ch)){
                    ch = Character.toUpperCase(ch);
                }
                else if (Character.isUpperCase(ch)){
                    ch = Character.toLowerCase(ch);
                }

                result += ch;
            }

            System.out.println(result);

        }
    }
}

