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