CF755D PolandBall and Polygon

Description

PolandBall has such a convex polygon with $ n $ veritces that no three of its diagonals intersect at the same point. PolandBall decided to improve it and draw some red segments. He chose a number $ k $ such that $ gcd(n,k)=1 $ . Vertices of the polygon are numbered from $ 1 $ to $ n $ in a clockwise way. PolandBall repeats the following process $ n $ times, starting from the vertex $ 1 $ : Assume you've ended last operation in vertex $ x $ (consider $ x=1 $ if it is the first operation). Draw a new segment from vertex $ x $ to $ k $ -th next vertex in clockwise direction. This is a vertex $ x+k $ or $ x+k-n $ depending on which of these is a valid index of polygon's vertex. Your task is to calculate number of polygon's sections after each drawing. A section is a clear area inside the polygon bounded with drawn diagonals or the polygon's sides.

Input Format

N/A

Output Format

N/A

Explanation/Hint

The greatest common divisor (gcd) of two integers $ a $ and $ b $ is the largest positive integer that divides both $ a $ and $ b $ without a remainder. For the first sample testcase, you should output "2 3 5 8 11". Pictures below correspond to situations after drawing lines. ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF755D/4990bd3c0c7dd5836fdcc579f970dcdca8dbd872.png)![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF755D/6451ef95db9646f275ba3ec79da2a8d5b0b028d0.png)![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF755D/da900464c60a214ba6c5242ba8fc65122871a490.png)![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF755D/a8b3c0780f20737fed12f744f83c0f1eab3d538f.png)![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF755D/c214010a205eb51e891b2376aacedcb09475410e.png)![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF755D/ac2e2680dc9611afb331663a01c918e0c001e832.png)