x, y, z, w = map(int, input().split()) assert 1 <= y*z <= x <= 10**6 assert 1 <= y and 1 <= z assert 0 <= w <= 10**6