MODE = "stdio"
require 'matrix'
line = Array.new

if(defined? MODE)
  line = STDIN.read.split("\n")
else
  tmp = "\
  fAIR, LATER, OCCASIONALLY CLOUDY.
  ".split("\n")
  tmp.each{|s|
    line << s.strip
  }
end
s=line[0]
puts s.swapcase