Testing Round 11
A
Up the hill
Codeforces
1000
原题
←B →
翻译中…

Hiking club "Up the hill" just returned from a walk. Now they are trying to remember which hills they've just walked through.

翻译中…

It is known that there were $*N*$ stops, all on different integer heights between $1$ and $*N*$ kilometers (inclusive) above the sea level. On the first day they've traveled from the first stop to the second stop, on the second day they've traveled from the second to the third and so on, and on the last day they've traveled from the stop $*N* - 1$ to the stop $*N*$ and successfully finished their expedition.

翻译中…

They are trying to find out which heights were their stops located at. They have an entry in a travel journal specifying how many days did they travel up the hill, and how many days did they walk down the hill.

翻译中…

Help them by suggesting some possible stop heights satisfying numbers from the travel journal.

翻译中…

Input

翻译中…

In the first line there is an integer non-negative number $*A*$ denoting the number of days of climbing up the hill. Second line contains an integer non-negative number $*B*$ — the number of days of walking down the hill ($*A* + *B* + 1 = *N*$, $1 ≤ *N* ≤ 100 000$).

翻译中…

Output

翻译中…

Output $*N*$ space-separated distinct integers from $1$ to $*N*$ inclusive, denoting possible heights of the stops in order of visiting.

翻译中…

样例

Input #1
0
1
Output #1
2 1
InputCopy OutputCopy
Input #2
2
1
Output #2
1 3 4 2
InputCopy OutputCopy
题目信息
题号
491A
所属比赛
时间限制
1 s
内存限制
256 MB
标签
构造
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。