puts gets.chomp.chars.map{|c|c=~/[a-z]/ ? c.upcase : c.downcase}.join