e = list(map(int, input().split()))print(int(min([e[0]/e[2], e[1]/e[3]])))
1000000000000000000 1000000000000000000 999999866000004473 999999822000007597
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!