#2220. [ioi2009]Hiring

[ioi2009]Hiring

Description

Format

Input

Output

Samples

4 100
5 1000
10 100
8 10
20 1
2

Limitation