import java.io.*;
  
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = input.readLine()) != null) {
            char[] line_chars = line.toCharArray();
            int line_len = line_chars.length;
            for (int i = 0; i < line_len; i++) {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            }
            System.out.println(new String(line_chars));
        }
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = input.readLine()) != null) {
            char[] line_chars = line.toCharArray();
            int line_len = line_chars.length;
            for (int i = 0; i < line_len; i++) {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            }
            System.out.println(new String(line_chars));
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = input.readLine()) != null) {
            char[] line_chars = line.toCharArray();
            int line_len = line_chars.length;
            for (int i = 0; i < line_len; i++) {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            }
            System.out.println(new String(line_chars));
        }
    } main {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = input.readLine()) != null) {
            char[] line_chars = line.toCharArray();
            int line_len = line_chars.length;
            for (int i = 0; i < line_len; i++) {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            }
            System.out.println(new String(line_chars));
        }
    } BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) String line; line while ((line = input.readLine()) != null) {
            char[] line_chars = line.toCharArray();
            int line_len = line_chars.length;
            for (int i = 0; i < line_len; i++) {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            }
            System.out.println(new String(line_chars));
        } (line = input.readLine()) != null (line = input.readLine()) line input.readLine() input.readLine input null {
            char[] line_chars = line.toCharArray();
            int line_len = line_chars.length;
            for (int i = 0; i < line_len; i++) {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            }
            System.out.println(new String(line_chars));
        } char[] line_chars = line.toCharArray(); line_chars line.toCharArray() line.toCharArray line int line_len = line_chars.length; line_len line_chars.length line_chars line_chars.length for (int i = 0; i < line_len; i++) {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            } int i = 0; int i = 0; i 0 i < line_len i line_len i++ i++ i {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            } {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            } char ch = line_chars[i]; ch line_chars[i] line_chars i int amount = 0; amount 0 if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32; Character.isUpperCase(ch) Character.isUpperCase Character ch amount = 32 amount 32 if (Character.isLowerCase(ch))
                    amount = -32; Character.isLowerCase(ch) Character.isLowerCase Character ch amount = -32 amount -32 32 line_chars[i] += amount line_chars[i] line_chars i amount System.out.println(new String(line_chars)) System.out.println System.out System System.out new String(line_chars) String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = input.readLine()) != null) {
            char[] line_chars = line.toCharArray();
            int line_len = line_chars.length;
            for (int i = 0; i < line_len; i++) {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            }
            System.out.println(new String(line_chars));
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = input.readLine()) != null) {
            char[] line_chars = line.toCharArray();
            int line_len = line_chars.length;
            for (int i = 0; i < line_len; i++) {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            }
            System.out.println(new String(line_chars));
        }
    }
} Main
import java.io.*;
  
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = input.readLine()) != null) {
            char[] line_chars = line.toCharArray();
            int line_len = line_chars.length;
            for (int i = 0; i < line_len; i++) {
                char ch = line_chars[i];
                int amount = 0;
                if (Character.isUpperCase(ch))
                    amount = 32;
                else if (Character.isLowerCase(ch))
                    amount = -32;
                line_chars[i] += amount;
            }
            System.out.println(new String(line_chars));
        }
    }
}