atcoder#ABC278A. [ABC278A] Shift
[ABC278A] Shift
Score : points
Problem Statement
You are given a sequence of length . You perform the following operation exactly times:
- remove the initial element of and append a to the tail of .
Print all the elements of after the operations.
Constraints
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the elements of after the operations in one line, separated by spaces.
3 2
2 7 8
8 0 0
Before the operations, . After performing the operation once, . After performing the operation twice, . Thus, is the answer.
3 4
9 9 9
0 0 0
9 5
1 2 3 4 5 6 7 8 9
6 7 8 9 0 0 0 0 0