import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        int c;
        while ((c = System.in.read()) != -1)
            System.out.print(convert((char)c));
    }
    private static char convert(char c) {
        if (Character.isLowerCase(c))
            return Character.toUpperCase(c);
        if (Character.isUpperCase(c))
            return Character.toLowerCase(c);
        return c;
    }
}
 import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws IOException {
        int c;
        while ((c = System.in.read()) != -1)
            System.out.print(convert((char)c));
    }
    private static char convert(char c) {
        if (Character.isLowerCase(c))
            return Character.toUpperCase(c);
        if (Character.isUpperCase(c))
            return Character.toLowerCase(c);
        return c;
    }
} Main public static void main(String[] args) throws IOException {
        int c;
        while ((c = System.in.read()) != -1)
            System.out.print(convert((char)c));
    } main {
        int c;
        while ((c = System.in.read()) != -1)
            System.out.print(convert((char)c));
    } int c; c while ((c = System.in.read()) != -1)
            System.out.print(convert((char)c)); (c = System.in.read()) != -1 (c = System.in.read()) c System.in.read() System.in.read System.in System System.in -1 1 System.out.print(convert((char)c)) System.out.print System.out System System.out convert((char)c) convert (char)c String[] args args private static char convert(char c) {
        if (Character.isLowerCase(c))
            return Character.toUpperCase(c);
        if (Character.isUpperCase(c))
            return Character.toLowerCase(c);
        return c;
    } convert {
        if (Character.isLowerCase(c))
            return Character.toUpperCase(c);
        if (Character.isUpperCase(c))
            return Character.toLowerCase(c);
        return c;
    } if (Character.isLowerCase(c))
            return Character.toUpperCase(c); Character.isLowerCase(c) Character.isLowerCase Character c return Character.toUpperCase(c); Character.toUpperCase(c) Character.toUpperCase Character c if (Character.isUpperCase(c))
            return Character.toLowerCase(c); Character.isUpperCase(c) Character.isUpperCase Character c return Character.toLowerCase(c); Character.toLowerCase(c) Character.toLowerCase Character c return c; c char c c public class Main {
    public static void main(String[] args) throws IOException {
        int c;
        while ((c = System.in.read()) != -1)
            System.out.print(convert((char)c));
    }
    private static char convert(char c) {
        if (Character.isLowerCase(c))
            return Character.toUpperCase(c);
        if (Character.isUpperCase(c))
            return Character.toLowerCase(c);
        return c;
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        int c;
        while ((c = System.in.read()) != -1)
            System.out.print(convert((char)c));
    }
    private static char convert(char c) {
        if (Character.isLowerCase(c))
            return Character.toUpperCase(c);
        if (Character.isUpperCase(c))
            return Character.toLowerCase(c);
        return c;
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        int c;
        while ((c = System.in.read()) != -1)
            System.out.print(convert((char)c));
    }
    private static char convert(char c) {
        if (Character.isLowerCase(c))
            return Character.toUpperCase(c);
        if (Character.isUpperCase(c))
            return Character.toLowerCase(c);
        return c;
    }
}

