#!/usr/bin/env python

import sys
                                                                                                                              
for line in sys.stdin:
    url,description=line.split('    ',1)
	
    print description
	
    for word in description.strip().split():
    	word=word.lower()		
	print '%s\t%s' %(word,url)
