import sys

c = str(input())
for _ in range(3):
    print(c * 3)