#K83582. Repeat String

    ID: 36229 Type: Default 1000ms 256MiB

Repeat String

Repeat String

Given an input string and an integer nn, your task is to output the string repeated nn times. If n0n \leq 0, the output should be an empty string. The input is provided via standard input (stdin) and the output should be printed to standard output (stdout).

inputFormat

The input consists of two lines. The first line contains the string to be repeated. The second line contains an integer nn which represents the number of times to repeat the string.

outputFormat

Output a single line which is the concatenation of the input string repeated nn times. If n0n \leq 0, output an empty string.## sample

abc
3
abcabcabc