e-olymp
Competitions

PP2. Week 8: April 26 - May 2

Java BufferedReader / BufferedWriter

Text is given. Read the text and convert each letter 'a' to 'b' and 'b' to 'a'. Uppercase letter must be changed to uppercase letter. Lowercase letter must be changed to lowercase letter.

Input

Text - sequence of letters.

Output

Print text where 'a' is changed 'b' and 'b' is changed 'a'.

Time limit 3 seconds
Memory limit 128 MiB
Input example #1
AbbA  mama
  Baba alBla
     bimA
Output example #1
BaaB  mbmb
  Abab blAlb
     aimB
Author Michael Medvediev