LearnPy Hub
← Lists problems
Medium

Rotate Left

Read a list and an integer k. Rotate the list left by k positions and print it. k may be larger than the length.

Input

A line of integers, then k ≥ 0.

Output

One line.

Sample 1

Input
1 2 3 4 5
2
Output
3 4 5 1 2

Sample 2

Input
1 2 3
3
Output
1 2 3
solution.py
Output appears here
Hints
Rotate Left · Python practice problem · LearnPy Hub