国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

CF 46A. Ball Game

2023-06-10 12:14 作者:您是打尖兒還是住店呢  | 我要投稿

A kindergarten teacher Natalia Pavlovna has invented a new ball game. This game not only develops the children's physique, but also teaches them how to count.

The game goes as follows. Kids stand in circle. Let's agree to think of the children as numbered with numbers from?1?to?n?clockwise and the child number?1?is holding the ball. First the first child throws the ball to the next one clockwise, i.e. to the child number?2. Then the child number?2?throws the ball to the next but one child, i.e. to the child number?4, then the fourth child throws the ball to the child that stands two children away from him, i.e. to the child number?7, then the ball is thrown to the child who stands?3?children away from the child number?7, then the ball is thrown to the child who stands?4?children away from the last one, and so on. It should be mentioned that when a ball is thrown it may pass the beginning of the circle. For example, if?n?=?5, then after the third throw the child number?2?has the ball again. Overall,?n?-?1?throws are made, and the game ends.

The problem is that not all the children get the ball during the game. If a child doesn't get the ball, he gets very upset and cries until Natalia Pavlovna gives him a candy. That's why Natalia Pavlovna asks you to help her to identify the numbers of the children who will get the ball after each throw.

Input

The first line contains integer?n?(2?≤?n?≤?100) which indicates the number of kids in the circle.

Output

In the single line print?n?-?1?numbers which are the numbers of children who will get the ball after each throw. Separate the numbers by spaces.

傳球的,


CF 46A. Ball Game的評論 (共 條)

分享到微博請遵守國家法律
周宁县| 边坝县| 丁青县| 永修县| 五峰| 青冈县| 高清| 大荔县| 松桃| 文成县| 兴国县| 赫章县| 泰来县| 茶陵县| 东兰县| 石泉县| 互助| 剑阁县| 凌源市| 景德镇市| 哈尔滨市| 安宁市| 姚安县| 万山特区| 巴林右旗| 高尔夫| 扎兰屯市| 桂平市| 昂仁县| 衢州市| 上杭县| 周口市| 嫩江县| 永兴县| 鄂温| 宕昌县| 姚安县| 和龙市| 东至县| 宣武区| 沂南县|