fork(1) download
  1. import math
  2. a = int(input())
  3. b = int(input())
  4. if a == 0 and b == 0:
  5. print ("INF")
  6. elif a == 0 and b != 0:
  7. print ("NO")
  8. elif b % a == 0:
  9. print (-b/a)
  10.  
Success #stdin #stdout 0.02s 9304KB
stdin
6
-2
stdout
Standard output is empty