Олимпиадный тренинг

Задача 18726. Carousel


At the initial moment, the i-th element of the array contains the number i (in total N elements). 
Every second the numbers are shifted to the next cell (from i-th to i+1-th), and from N-th - first. 
Print the state of the array in T seconds.


Input
The program receives as input a string containing two numbers - print N numbers - the state of the array in T seconds. (1<=N<=100) and T (0<=T<=30000).

Imprint
Print N numbers - the state of the array in T seconds.
 
 
Examples
# Input Output
1 5 3
3 4 5 1 2