SDE Path

Repeat a Word K Times

Easy

Repeat a Word K Times

Print a word repeated K times in a row.

Input format

A single line with a word S and an integer K (1 to 5), separated by a space.

Output format

Print S written K times in a row, with nothing between the copies.

Constraints

  • Values fit in a 64-bit signed integer
  • Trailing whitespace and a trailing newline are ignored by the judge

Read from stdin, write to stdout. Sample cases below show the exact format.

Sample cases

Example 1
Input
ab 3
Expected output
ababab
Example 2
Input
hi 2
Expected output
hihi