fork download
  1. e = list(map(int, input().split()))
  2. print(int(min([e[0]/e[2], e[1]/e[3]])))
Success #stdin #stdout 0.02s 27712KB
stdin
1000000000000000000 1000000000000000000 999999866000004473 999999822000007597
stdout
1