import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) {
    BufferedReader stdin = null;
    try {
      stdin = new BufferedReader(new InputStreamReader(System.in));
      String str = stdin.readLine();
      int len = str.length();
      char[] chars = new char[len];

      for (int i = 0; i < len; i++) {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      }

      System.out.println(chars);
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      try {
        if (stdin != null) {
          stdin.close();
        }
      } catch (IOException e) {
      }
    }
  }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

  public static void main(String[] args) {
    BufferedReader stdin = null;
    try {
      stdin = new BufferedReader(new InputStreamReader(System.in));
      String str = stdin.readLine();
      int len = str.length();
      char[] chars = new char[len];

      for (int i = 0; i < len; i++) {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      }

      System.out.println(chars);
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      try {
        if (stdin != null) {
          stdin.close();
        }
      } catch (IOException e) {
      }
    }
  }

} Main public static void main(String[] args) {
    BufferedReader stdin = null;
    try {
      stdin = new BufferedReader(new InputStreamReader(System.in));
      String str = stdin.readLine();
      int len = str.length();
      char[] chars = new char[len];

      for (int i = 0; i < len; i++) {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      }

      System.out.println(chars);
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      try {
        if (stdin != null) {
          stdin.close();
        }
      } catch (IOException e) {
      }
    }
  } main {
    BufferedReader stdin = null;
    try {
      stdin = new BufferedReader(new InputStreamReader(System.in));
      String str = stdin.readLine();
      int len = str.length();
      char[] chars = new char[len];

      for (int i = 0; i < len; i++) {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      }

      System.out.println(chars);
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      try {
        if (stdin != null) {
          stdin.close();
        }
      } catch (IOException e) {
      }
    }
  } BufferedReader stdin = null; stdin null try {
      stdin = new BufferedReader(new InputStreamReader(System.in));
      String str = stdin.readLine();
      int len = str.length();
      char[] chars = new char[len];

      for (int i = 0; i < len; i++) {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      }

      System.out.println(chars);
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      try {
        if (stdin != null) {
          stdin.close();
        }
      } catch (IOException e) {
      }
    } catch (IOException e) {
      e.printStackTrace();
    } IOException e {
      e.printStackTrace();
    } e.printStackTrace() e.printStackTrace e {
      try {
        if (stdin != null) {
          stdin.close();
        }
      } catch (IOException e) {
      }
    } try {
        if (stdin != null) {
          stdin.close();
        }
      } catch (IOException e) {
      } catch (IOException e) {
      } IOException e {
      } {
        if (stdin != null) {
          stdin.close();
        }
      } if (stdin != null) {
          stdin.close();
        } stdin != null stdin null {
          stdin.close();
        } stdin.close() stdin.close stdin {
      stdin = new BufferedReader(new InputStreamReader(System.in));
      String str = stdin.readLine();
      int len = str.length();
      char[] chars = new char[len];

      for (int i = 0; i < len; i++) {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      }

      System.out.println(chars);
    } stdin = new BufferedReader(new InputStreamReader(System.in)) stdin new BufferedReader(new InputStreamReader(System.in)) String str = stdin.readLine(); str stdin.readLine() stdin.readLine stdin int len = str.length(); len str.length() str.length str char[] chars = new char[len]; chars new char[len] len for (int i = 0; i < len; i++) {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      } int i = 0; int i = 0; i 0 i < len i len i++ i++ i {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      } {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      } char ch = str.charAt(i); ch str.charAt(i) str.charAt str i if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        } Character.isUpperCase(ch) Character.isUpperCase Character ch {
          chars[i] = Character.toLowerCase(ch);
        } chars[i] = Character.toLowerCase(ch) chars[i] chars i Character.toLowerCase(ch) Character.toLowerCase Character ch if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        } Character.isLowerCase(ch) Character.isLowerCase Character ch {
          chars[i] = Character.toUpperCase(ch);
        } chars[i] = Character.toUpperCase(ch) chars[i] chars i Character.toUpperCase(ch) Character.toUpperCase Character ch {
          chars[i] = ch;
        } chars[i] = ch chars[i] chars i ch System.out.println(chars) System.out.println System.out System System.out chars String[] args args public class Main {

  public static void main(String[] args) {
    BufferedReader stdin = null;
    try {
      stdin = new BufferedReader(new InputStreamReader(System.in));
      String str = stdin.readLine();
      int len = str.length();
      char[] chars = new char[len];

      for (int i = 0; i < len; i++) {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      }

      System.out.println(chars);
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      try {
        if (stdin != null) {
          stdin.close();
        }
      } catch (IOException e) {
      }
    }
  }

} public class Main {

  public static void main(String[] args) {
    BufferedReader stdin = null;
    try {
      stdin = new BufferedReader(new InputStreamReader(System.in));
      String str = stdin.readLine();
      int len = str.length();
      char[] chars = new char[len];

      for (int i = 0; i < len; i++) {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      }

      System.out.println(chars);
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      try {
        if (stdin != null) {
          stdin.close();
        }
      } catch (IOException e) {
      }
    }
  }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) {
    BufferedReader stdin = null;
    try {
      stdin = new BufferedReader(new InputStreamReader(System.in));
      String str = stdin.readLine();
      int len = str.length();
      char[] chars = new char[len];

      for (int i = 0; i < len; i++) {
        char ch = str.charAt(i);
        if (Character.isUpperCase(ch)) {
          chars[i] = Character.toLowerCase(ch);
        } else if (Character.isLowerCase(ch)) {
          chars[i] = Character.toUpperCase(ch);
        } else {
          chars[i] = ch;
        }
      }

      System.out.println(chars);
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      try {
        if (stdin != null) {
          stdin.close();
        }
      } catch (IOException e) {
      }
    }
  }

}