strings = input().split()
result = ""
for string in strings:
    result += string * len(string)
print(result)

40fa273c5a82bab805d38a05723bea382d4c7462
<mask token>

<mask token>
for string in strings:
    result += string * len(string)
print(result)

strings = input().split()
result = ''
for string in strings:
    result += string * len(string)
print(result)

strings = input().split()
result = ""
for string in strings:
    result += string * len(string)
print(result)
