Problem2180--Polycarp and Coins (CF1551A)

2180: Polycarp and Coins (CF1551A)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Sample Input Copy

6
1000
30
1
32
1000000000
5

Sample Output Copy

334 333
10 10
1 0
10 11
333333334 333333333
1 2

Source/Category