import java.util.*;
import java.io.*;
 
class Main{
    public static void main(String args[])throws IOException{
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       String s;
       char c;
       while((s = br.readLine())!=null){
           if(s.length()>=1200)break;
           for(int i=0; i<s.length(); i++){
                   c = s.charAt(i);
                   if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   }
                   System.out.print(c);
           }
       }
        System.out.println("");
    }
} import java.util.*; util.* java import java.io.*; io.* java class Main{
    public static void main(String args[])throws IOException{
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       String s;
       char c;
       while((s = br.readLine())!=null){
           if(s.length()>=1200)break;
           for(int i=0; i<s.length(); i++){
                   c = s.charAt(i);
                   if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   }
                   System.out.print(c);
           }
       }
        System.out.println("");
    }
} Main public static void main(String args[])throws IOException{
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       String s;
       char c;
       while((s = br.readLine())!=null){
           if(s.length()>=1200)break;
           for(int i=0; i<s.length(); i++){
                   c = s.charAt(i);
                   if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   }
                   System.out.print(c);
           }
       }
        System.out.println("");
    } main {
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       String s;
       char c;
       while((s = br.readLine())!=null){
           if(s.length()>=1200)break;
           for(int i=0; i<s.length(); i++){
                   c = s.charAt(i);
                   if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   }
                   System.out.print(c);
           }
       }
        System.out.println("");
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s; s char c; c while((s = br.readLine())!=null){
           if(s.length()>=1200)break;
           for(int i=0; i<s.length(); i++){
                   c = s.charAt(i);
                   if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   }
                   System.out.print(c);
           }
       } (s = br.readLine())!=null (s = br.readLine()) s br.readLine() br.readLine br null {
           if(s.length()>=1200)break;
           for(int i=0; i<s.length(); i++){
                   c = s.charAt(i);
                   if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   }
                   System.out.print(c);
           }
       } if(s.length()>=1200)break; s.length()>=1200 s.length() s.length s 1200 break; for(int i=0; i<s.length(); i++){
                   c = s.charAt(i);
                   if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   }
                   System.out.print(c);
           } int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
                   c = s.charAt(i);
                   if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   }
                   System.out.print(c);
           } {
                   c = s.charAt(i);
                   if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   }
                   System.out.print(c);
           } c = s.charAt(i) c s.charAt(i) s.charAt s i if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   } c>=0x41 && c<=0x5a c>=0x41 c 0x41 c<=0x5a c 0x5a {
                       c += 0x20;
                   } c += 0x20 c 0x20 if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   } c>=0x61 && c<=0x7a c>=0x61 c 0x61 c<=0x7a c 0x7a {
                       c -= 0x20;
                   } c -= 0x20 c 0x20 System.out.print(c) System.out.print System.out System System.out c System.out.println("") System.out.println System.out System System.out "" String args[] args
import java.util.*;
import java.io.*;
 
class Main{
    public static void main(String args[])throws IOException{
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       String s;
       char c;
       while((s = br.readLine())!=null){
           if(s.length()>=1200)break;
           for(int i=0; i<s.length(); i++){
                   c = s.charAt(i);
                   if(c>=0x41 && c<=0x5a){
                       c += 0x20;
                   }else if(c>=0x61 && c<=0x7a){
                       c -= 0x20;
                   }
                   System.out.print(c);
           }
       }
        System.out.println("");
    }
}