using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { WriteLine(ReadLine().Select(x => x < 0x61 ? x + 0x20 : x - 0x20)); } }