import java.util.*;

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

        for (char c : string.toCharArray()) {
            System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c));
        }
        System.out.println();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String string = scan.nextLine();

        for (char c : string.toCharArray()) {
            System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c));
        }
        System.out.println();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String string = scan.nextLine();

        for (char c : string.toCharArray()) {
            System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c));
        }
        System.out.println();
    } main {
        Scanner scan = new Scanner(System.in);
        String string = scan.nextLine();

        for (char c : string.toCharArray()) {
            System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c));
        }
        System.out.println();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String string = scan.nextLine(); string scan.nextLine() scan.nextLine scan for (char c : string.toCharArray()) {
            System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c));
        } char c string.toCharArray() string.toCharArray string {
            System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c));
        } {
            System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c));
        } System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c)) System.out.print System.out System System.out Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c) Character.isUpperCase(c) Character.isUpperCase Character c Character.toLowerCase(c) Character.toLowerCase Character c Character.toUpperCase(c) Character.toUpperCase Character c System.out.println() System.out.println System.out System System.out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String string = scan.nextLine();

        for (char c : string.toCharArray()) {
            System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c));
        }
        System.out.println();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String string = scan.nextLine();

        for (char c : string.toCharArray()) {
            System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c));
        }
        System.out.println();
    }
} Main
import java.util.*;

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

        for (char c : string.toCharArray()) {
            System.out.print(Character.isUpperCase(c)?
                    Character.toLowerCase(c) : Character.toUpperCase(c));
        }
        System.out.println();
    }
}