def main(stdin):
    """
    Read in line. Parse line into list of words.
    Print word as a single count.
    """
    for line in stdin:
        words = line.split()
        for word in words:
            print(("{word}\t{count}").format(word=word, count=1))
    return None