5497: 暑期营第五天 蚯蚓

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Input

Output

Sample Input Copy

3 7 1 1 3 1
3 3 2

Sample Output Copy

3 4 4 4 5 5 6
6 6 6 5 5 4 4 3 2 2 

HINT