13175 - GEC1506- Print multiple times   

Description

Given a specific line of text including text and operators, you need to print out the text and the operator for a multiple times.

Input

There's a line of text with the following syntax:

e1,e2,e3

Note that:

    1. Each element is separated by a ',' token.

    2. e1, e2 ,e3 represented 3 elements from given text.

Output

A line of text with the following operations:

e1: Representing the number of times of e2 needed to be printed.

e2: Representing the word that needs to be printed.

e3: Representing the operator that separates each of the word e2, and it should also exist in the beginning and in the end.

For example, the output would be like this:

e3e2e3e2......e3e2e3              <--- e2 exists e1 times.

 

Note that:

    1. There will be no connection elements between e2 and e3 for your output.

    2. There will be a new line default by python's print() function. If you are using python's print(), just ignore this point.

Sample Input  Download

Sample Output  Download

Tags




Discuss