4804: P2639 [USACO09OCT] Bessie's Weight Problem G(普及-)
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description

Input

Output

Sample Input Copy
56 4
15
19
20
21
Sample Output Copy
56
HINT
