puts gets.chars.map { |c| case c when /[A-Z]/ then c.downcase when /[a-z]/ then c.upcase else c end }.join