Loading...

Input

3 250 100 50

Expected Output

Sample: 150 Sample: 0 Sample: 0