import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
        String s1 = sc.nextLine();
        
        sc.close();
        
        String[] strArray1 = new String[s1.length()];
        String[] strArray2 = new String[s1.length()];
        for (int i = 0; i < s1.length(); i++) {
        strArray1[i] = String.valueOf(s1.charAt(i));
        }
        for (int i = 0; i < s1.length(); i++) {
        strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase();
        }
        for (int i = 0; i < s1.length(); i++) {
            if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            }
            
        }
        for (int i = 0; i < strArray1.length; i++) {
        System.out.print(strArray2[i]);
        }
        System.out.println();

	}

}
 import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
        String s1 = sc.nextLine();
        
        sc.close();
        
        String[] strArray1 = new String[s1.length()];
        String[] strArray2 = new String[s1.length()];
        for (int i = 0; i < s1.length(); i++) {
        strArray1[i] = String.valueOf(s1.charAt(i));
        }
        for (int i = 0; i < s1.length(); i++) {
        strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase();
        }
        for (int i = 0; i < s1.length(); i++) {
            if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            }
            
        }
        for (int i = 0; i < strArray1.length; i++) {
        System.out.print(strArray2[i]);
        }
        System.out.println();

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
        String s1 = sc.nextLine();
        
        sc.close();
        
        String[] strArray1 = new String[s1.length()];
        String[] strArray2 = new String[s1.length()];
        for (int i = 0; i < s1.length(); i++) {
        strArray1[i] = String.valueOf(s1.charAt(i));
        }
        for (int i = 0; i < s1.length(); i++) {
        strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase();
        }
        for (int i = 0; i < s1.length(); i++) {
            if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            }
            
        }
        for (int i = 0; i < strArray1.length; i++) {
        System.out.print(strArray2[i]);
        }
        System.out.println();

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
        String s1 = sc.nextLine();
        
        sc.close();
        
        String[] strArray1 = new String[s1.length()];
        String[] strArray2 = new String[s1.length()];
        for (int i = 0; i < s1.length(); i++) {
        strArray1[i] = String.valueOf(s1.charAt(i));
        }
        for (int i = 0; i < s1.length(); i++) {
        strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase();
        }
        for (int i = 0; i < s1.length(); i++) {
            if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            }
            
        }
        for (int i = 0; i < strArray1.length; i++) {
        System.out.print(strArray2[i]);
        }
        System.out.println();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s1 = sc.nextLine(); s1 sc.nextLine() sc.nextLine sc sc.close() sc.close sc String[] strArray1 = new String[s1.length()]; strArray1 new String[s1.length()] s1.length() s1.length s1 String[] strArray2 = new String[s1.length()]; strArray2 new String[s1.length()] s1.length() s1.length s1 for (int i = 0; i < s1.length(); i++) {
        strArray1[i] = String.valueOf(s1.charAt(i));
        } int i = 0; int i = 0; i 0 i < s1.length() i s1.length() s1.length s1 i++ i++ i {
        strArray1[i] = String.valueOf(s1.charAt(i));
        } {
        strArray1[i] = String.valueOf(s1.charAt(i));
        } strArray1[i] = String.valueOf(s1.charAt(i)) strArray1[i] strArray1 i String.valueOf(s1.charAt(i)) String.valueOf String s1.charAt(i) s1.charAt s1 i for (int i = 0; i < s1.length(); i++) {
        strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase();
        } int i = 0; int i = 0; i 0 i < s1.length() i s1.length() s1.length s1 i++ i++ i {
        strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase();
        } {
        strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase();
        } strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase() strArray2[i] strArray2 i String.valueOf(s1.charAt(i)).toLowerCase() String.valueOf(s1.charAt(i)).toLowerCase String.valueOf(s1.charAt(i)) String.valueOf String s1.charAt(i) s1.charAt s1 i for (int i = 0; i < s1.length(); i++) {
            if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            }
            
        } int i = 0; int i = 0; i 0 i < s1.length() i s1.length() s1.length s1 i++ i++ i {
            if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            }
            
        } {
            if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            }
            
        } if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            } strArray1[i].equals(strArray2[i]) strArray1[i].equals strArray1[i] strArray1 i strArray2[i] strArray2 i {
                strArray2[i] = strArray1[i].toUpperCase();
            } strArray2[i] = strArray1[i].toUpperCase() strArray2[i] strArray2 i strArray1[i].toUpperCase() strArray1[i].toUpperCase strArray1[i] strArray1 i for (int i = 0; i < strArray1.length; i++) {
        System.out.print(strArray2[i]);
        } int i = 0; int i = 0; i 0 i < strArray1.length i strArray1.length strArray1 strArray1.length i++ i++ i {
        System.out.print(strArray2[i]);
        } {
        System.out.print(strArray2[i]);
        } System.out.print(strArray2[i]) System.out.print System.out System System.out strArray2[i] strArray2 i System.out.println() System.out.println System.out System System.out String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
        String s1 = sc.nextLine();
        
        sc.close();
        
        String[] strArray1 = new String[s1.length()];
        String[] strArray2 = new String[s1.length()];
        for (int i = 0; i < s1.length(); i++) {
        strArray1[i] = String.valueOf(s1.charAt(i));
        }
        for (int i = 0; i < s1.length(); i++) {
        strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase();
        }
        for (int i = 0; i < s1.length(); i++) {
            if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            }
            
        }
        for (int i = 0; i < strArray1.length; i++) {
        System.out.print(strArray2[i]);
        }
        System.out.println();

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
        String s1 = sc.nextLine();
        
        sc.close();
        
        String[] strArray1 = new String[s1.length()];
        String[] strArray2 = new String[s1.length()];
        for (int i = 0; i < s1.length(); i++) {
        strArray1[i] = String.valueOf(s1.charAt(i));
        }
        for (int i = 0; i < s1.length(); i++) {
        strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase();
        }
        for (int i = 0; i < s1.length(); i++) {
            if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            }
            
        }
        for (int i = 0; i < strArray1.length; i++) {
        System.out.print(strArray2[i]);
        }
        System.out.println();

	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
        String s1 = sc.nextLine();
        
        sc.close();
        
        String[] strArray1 = new String[s1.length()];
        String[] strArray2 = new String[s1.length()];
        for (int i = 0; i < s1.length(); i++) {
        strArray1[i] = String.valueOf(s1.charAt(i));
        }
        for (int i = 0; i < s1.length(); i++) {
        strArray2[i] = String.valueOf(s1.charAt(i)).toLowerCase();
        }
        for (int i = 0; i < s1.length(); i++) {
            if(strArray1[i].equals(strArray2[i])){
                strArray2[i] = strArray1[i].toUpperCase();
            }
            
        }
        for (int i = 0; i < strArray1.length; i++) {
        System.out.print(strArray2[i]);
        }
        System.out.println();

	}

}

