import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); char[] strArray = s.toCharArray(); for(char a : strArray){ if(Character.isLowerCase(a)){ System.out.print(Character.toUpperCase(a)); } else{ System.out.print(Character.toLowerCase(a)); } } } }