import java.util.Scanner;

public class Main{
    public static void main(String[]argc){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String answer = "";
        int length = line.length();
        for(int i=0;i<length;i++){
            char ch = line.charAt(i);
            if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            }
            answer += ch;
        }
        System.out.println(answer);
    }
}
 import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[]argc){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String answer = "";
        int length = line.length();
        for(int i=0;i<length;i++){
            char ch = line.charAt(i);
            if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            }
            answer += ch;
        }
        System.out.println(answer);
    }
} Main public static void main(String[]argc){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String answer = "";
        int length = line.length();
        for(int i=0;i<length;i++){
            char ch = line.charAt(i);
            if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            }
            answer += ch;
        }
        System.out.println(answer);
    } main {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String answer = "";
        int length = line.length();
        for(int i=0;i<length;i++){
            char ch = line.charAt(i);
            if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            }
            answer += ch;
        }
        System.out.println(answer);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String answer = ""; answer "" int length = line.length(); length line.length() line.length line for(int i=0;i<length;i++){
            char ch = line.charAt(i);
            if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            }
            answer += ch;
        } int i=0; int i=0; i 0 i<length i length i++ i++ i {
            char ch = line.charAt(i);
            if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            }
            answer += ch;
        } {
            char ch = line.charAt(i);
            if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            }
            answer += ch;
        } char ch = line.charAt(i); ch line.charAt(i) line.charAt line i if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            } ch>='a'&&ch<='z' ch>='a' ch 'a' ch<='z' ch 'z' {
                ch = (char)(ch - 32);
            } ch = (char)(ch - 32) ch (char)(ch - 32) ch 32 if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            } ch>='A'&&ch<='Z' ch>='A' ch 'A' ch<='Z' ch 'Z' {
                ch = (char)(ch + 32);
            } ch = (char)(ch + 32) ch (char)(ch + 32) ch 32 answer += ch answer ch System.out.println(answer) System.out.println System.out System System.out answer String[]argc argc public class Main{
    public static void main(String[]argc){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String answer = "";
        int length = line.length();
        for(int i=0;i<length;i++){
            char ch = line.charAt(i);
            if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            }
            answer += ch;
        }
        System.out.println(answer);
    }
} public class Main{
    public static void main(String[]argc){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String answer = "";
        int length = line.length();
        for(int i=0;i<length;i++){
            char ch = line.charAt(i);
            if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            }
            answer += ch;
        }
        System.out.println(answer);
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[]argc){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String answer = "";
        int length = line.length();
        for(int i=0;i<length;i++){
            char ch = line.charAt(i);
            if(ch>='a'&&ch<='z'){
                ch = (char)(ch - 32);
            }else if(ch>='A'&&ch<='Z'){
                ch = (char)(ch + 32);
            }
            answer += ch;
        }
        System.out.println(answer);
    }
}

