#!/usr/bin/env python3
# Author: Carlijn Assen
# Date: 18/09/2019


import sys
from collections import defaultdict

def main():
    for line in sys.stdin:
        line = line.rstrip()
        line = line.split('\t')
        words = line[3].split(' ')
        id = line[0]
        words_id = {}
        wi_list = []
        for tok in words:
            wi_list.append((tok, id))
        print(wi_list)
  




if __name__ == '__main__':
    main()
