# 输入字符串
input_str=input()
# 长度等于3.再横向乘以3
for i in range(3):
    print(input_str*3)