A = gets.to_f B = gets.to_f if A == 1 if B == 0 puts 1 exit else puts -1 exit end end puts -B / (A - 1.0)