l = gets l.chars { |c| if "A".ord <= c.ord and c.ord <= "Z".ord print c.dawncase else print c.upcase end } puts