#!/usr/bin/env python3
import re
if __name__ == '__main__':
n = 3
row = re.split(r'\W+', input('a, b, c の入力 : \n'))
if len(row) == n:
row = row * 2
for i in range(n):
print(f'{row[0 + i]} {row[1 + i]} {row[2 + i]}')
IyEvdXNyL2Jpbi9lbnYgcHl0aG9uMwoKaW1wb3J0IHJlCgppZiBfX25hbWVfXyA9PSAnX19tYWluX18nOgogICAgbiA9IDMKICAgIHJvdyA9IHJlLnNwbGl0KHInXFcrJywgaW5wdXQoJ2EsIGIsIGMg44Gu5YWl5YqbIDogXG4nKSkKICAgIGlmIGxlbihyb3cpID09IG46CiAgICAgICByb3cgPSByb3cgKiAyCiAgICAgICBmb3IgaSBpbiByYW5nZShuKToKICAgICAgICAgICBwcmludChmJ3tyb3dbMCArIGldfSB7cm93WzEgKyBpXX0ge3Jvd1syICsgaV19JykK