A number and some text are written in one line separated by a space. Write a program that outputs from the text those characters whose numbers are multiples of a given number (numbering starts from 1).
Sample input and output
| Test number |
Input |
Output |
| 1 |
2 words |
lv |
| 2 |
3 test test |
stt |