import java.io.BufferedReader; import java.io.InputStreamReader; public class No163 { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader( System.in)); String S = br.readLine(); char[] SCharArray = S.toCharArray(); for (int i = 0; i < SCharArray.length; i++) { if ('a' <= SCharArray[i] && SCharArray[i] <= 'z') { System.out.print((char) (SCharArray[i] - 32)); } else { System.out.print((char) (SCharArray[i] + 32)); } } System.out.println(); } catch (Exception e) { System.err.println("Error:" + e.getMessage()); } } }