#!/bin/python3
import sys
for line in sys.stdin:
	words = line.strip().split()
	for word in words:
		print("{}\t{}".format(word,1))
