import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String word = scan.nextLine();
            for(int x = 0; x < word.length(); x++){
                char c = word.charAt(x);
                if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                }
                if(x == word.length() - 1){
                    System.out.println();
                }
            }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String word = scan.nextLine();
            for(int x = 0; x < word.length(); x++){
                char c = word.charAt(x);
                if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                }
                if(x == word.length() - 1){
                    System.out.println();
                }
            }
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String word = scan.nextLine();
            for(int x = 0; x < word.length(); x++){
                char c = word.charAt(x);
                if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                }
                if(x == word.length() - 1){
                    System.out.println();
                }
            }
    } main {
        Scanner scan = new Scanner(System.in);
        String word = scan.nextLine();
            for(int x = 0; x < word.length(); x++){
                char c = word.charAt(x);
                if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                }
                if(x == word.length() - 1){
                    System.out.println();
                }
            }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String word = scan.nextLine(); word scan.nextLine() scan.nextLine scan for(int x = 0; x < word.length(); x++){
                char c = word.charAt(x);
                if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                }
                if(x == word.length() - 1){
                    System.out.println();
                }
            } int x = 0; int x = 0; x 0 x < word.length() x word.length() word.length word x++ x++ x {
                char c = word.charAt(x);
                if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                }
                if(x == word.length() - 1){
                    System.out.println();
                }
            } {
                char c = word.charAt(x);
                if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                }
                if(x == word.length() - 1){
                    System.out.println();
                }
            } char c = word.charAt(x); c word.charAt(x) word.charAt word x if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                } Character.isLetter(c) Character.isLetter Character c {
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                } if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    } Character.isLowerCase(c) Character.isLowerCase Character c {
                        System.out.print(Character.toUpperCase(c));
                    } System.out.print(Character.toUpperCase(c)) System.out.print System.out System System.out Character.toUpperCase(c) Character.toUpperCase Character c {
                        System.out.print(Character.toLowerCase(c));
                    } System.out.print(Character.toLowerCase(c)) System.out.print System.out System System.out Character.toLowerCase(c) Character.toLowerCase Character c {
                    System.out.print(c);
                } System.out.print(c) System.out.print System.out System System.out c if(x == word.length() - 1){
                    System.out.println();
                } x == word.length() - 1 x word.length() - 1 word.length() word.length word 1 {
                    System.out.println();
                } System.out.println() System.out.println System.out System System.out String[] args args public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String word = scan.nextLine();
            for(int x = 0; x < word.length(); x++){
                char c = word.charAt(x);
                if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                }
                if(x == word.length() - 1){
                    System.out.println();
                }
            }
    }
} public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String word = scan.nextLine();
            for(int x = 0; x < word.length(); x++){
                char c = word.charAt(x);
                if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                }
                if(x == word.length() - 1){
                    System.out.println();
                }
            }
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String word = scan.nextLine();
            for(int x = 0; x < word.length(); x++){
                char c = word.charAt(x);
                if(Character.isLetter(c)){
                    if(Character.isLowerCase(c)){
                        System.out.print(Character.toUpperCase(c));
                    }
                    else{
                        System.out.print(Character.toLowerCase(c));
                    }
                }
                else{
                    System.out.print(c);
                }
                if(x == word.length() - 1){
                    System.out.println();
                }
            }
    }
}
