#path = 'iwslt.bpe.de'
#path = 'wmt14.bpe.en'
'''
data = []
with open(path) as f:
    lines = f.readlines()
    for line in lines:
        wd_li = line.strip().split(' ')
        if len(wd_li) > 95:
            line = ' '.join(wd_li[:95]) + '\n'
        data.append(line)        
with open(path+'.truc', 'w') as f:
    f.writelines(data)
'''
import sys
for line in sys.stdin:
    wd_li = line.strip().split(' ')
    if len(wd_li) > 95:
        line = ' '.join(wd_li[:95])
    sys.stdout.write(line.strip()+'\n')
