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

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

        String s = scanner.nextLine();
        for(int i = 0; i < s.length(); i++){
            if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z'){
                System.out.print((char)(s.charAt(i)-'a'+'A'));
            }
            else if(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z'){
                System.out.print((char)(s.charAt(i)+'a'-'A'));
            }
            else System.out.print(s.charAt(i));
        }
        System.out.println("");
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);

        String s = scanner.nextLine();
        for(int i = 0; i < s.length(); i++){
            if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z'){
                System.out.print((char)(s.charAt(i)-'a'+'A'));
            }
            else if(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z'){
                System.out.print((char)(s.charAt(i)+'a'-'A'));
            }
            else System.out.print(s.charAt(i));
        }
        System.out.println("");
    } main {
        Scanner scanner = new Scanner(System.in);

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

        String s = scanner.nextLine();
        for(int i = 0; i < s.length(); i++){
            if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z'){
                System.out.print((char)(s.charAt(i)-'a'+'A'));
            }
            else if(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z'){
                System.out.print((char)(s.charAt(i)+'a'-'A'));
            }
            else System.out.print(s.charAt(i));
        }
        System.out.println("");
    }
}

