x = gets.to_i case x when x > 0 puts "1" when x = 0 puts "0" when x < 0 puts "-1" end # your code goes here