Gift?!

Problem Number: 
10 120
Type of Problem: 
Problem Category: 
Input: 
Random Input
0
0
Critical Input: 
Random Input: 
1000000 999999 1000000 10 1000000 6 101 101 33 33 19 19 1000000 1 1000000 2 1000000 3 1000000 4 1000000 5 1000000 7 1000000 8 1000000 9 1000000 1000000 1000000 900000 1000000 111111 123456 123456 707 49 707 505 21 20 125 124 111111 2222 16 15 12 2 49 49 10 1 9 5 303030 5064 17 17 808805 47566 0 0
Flag: 
0
Restrict Problem Hints: 
0
Restrict Problem Inputs: 
0
Problem Id: 
10120