import java.util.Scanner; public class No_163 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String password = sc.next(); char[] pieceOfPassword = password.toCharArray(); for(char c:pieceOfPassword){ char cLow = Character.toLowerCase(c); if(c == cLow){ System.out.print(Character.toUpperCase(c)); } else{ System.out.print(Character.toLowerCase(c)); } } sc.close(); } }