import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String Str = sc.nextLine();
        String Ans = "";
        int l = Str.length();
        int i;
        char c1,c2;
        for(i=0;i<l;i++){
            c1 = Str.charAt(i);
            if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            }
            Ans += c2;
        }
        System.out.println(Ans);
    }
}
 import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String Str = sc.nextLine();
        String Ans = "";
        int l = Str.length();
        int i;
        char c1,c2;
        for(i=0;i<l;i++){
            c1 = Str.charAt(i);
            if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            }
            Ans += c2;
        }
        System.out.println(Ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String Str = sc.nextLine();
        String Ans = "";
        int l = Str.length();
        int i;
        char c1,c2;
        for(i=0;i<l;i++){
            c1 = Str.charAt(i);
            if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            }
            Ans += c2;
        }
        System.out.println(Ans);
    } main {
        Scanner sc = new Scanner(System.in);
        String Str = sc.nextLine();
        String Ans = "";
        int l = Str.length();
        int i;
        char c1,c2;
        for(i=0;i<l;i++){
            c1 = Str.charAt(i);
            if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            }
            Ans += c2;
        }
        System.out.println(Ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String Str = sc.nextLine(); Str sc.nextLine() sc.nextLine sc String Ans = ""; Ans "" int l = Str.length(); l Str.length() Str.length Str int i; i char c1 c1 c2; c2 for(i=0;i<l;i++){
            c1 = Str.charAt(i);
            if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            }
            Ans += c2;
        } i=0; i=0 i 0 i<l i l i++ i++ i {
            c1 = Str.charAt(i);
            if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            }
            Ans += c2;
        } {
            c1 = Str.charAt(i);
            if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            }
            Ans += c2;
        } c1 = Str.charAt(i) c1 Str.charAt(i) Str.charAt Str i if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            } Character.isLowerCase(c1) == true Character.isLowerCase(c1) Character.isLowerCase Character c1 true {
                c2 = Character.toUpperCase(c1);
            } c2 = Character.toUpperCase(c1) c2 Character.toUpperCase(c1) Character.toUpperCase Character c1 {
                c2 = Character.toLowerCase(c1);
            } c2 = Character.toLowerCase(c1) c2 Character.toLowerCase(c1) Character.toLowerCase Character c1 Ans += c2 Ans c2 System.out.println(Ans) System.out.println System.out System System.out Ans String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String Str = sc.nextLine();
        String Ans = "";
        int l = Str.length();
        int i;
        char c1,c2;
        for(i=0;i<l;i++){
            c1 = Str.charAt(i);
            if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            }
            Ans += c2;
        }
        System.out.println(Ans);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String Str = sc.nextLine();
        String Ans = "";
        int l = Str.length();
        int i;
        char c1,c2;
        for(i=0;i<l;i++){
            c1 = Str.charAt(i);
            if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            }
            Ans += c2;
        }
        System.out.println(Ans);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String Str = sc.nextLine();
        String Ans = "";
        int l = Str.length();
        int i;
        char c1,c2;
        for(i=0;i<l;i++){
            c1 = Str.charAt(i);
            if(Character.isLowerCase(c1) == true) {
                c2 = Character.toUpperCase(c1);
            }else{
                c2 = Character.toLowerCase(c1);
            }
            Ans += c2;
        }
        System.out.println(Ans);
    }
}

