import sys
for line in sys.stdin:
line = line.strip('\n\r').split('\t')
print("{0}\t{1}\1{2}\1{3}\1{4}\t{5}".format(line[0], line[2], line[3], line[4], line[5], line[11]))
cat train.txt |python xxx.py > output.txt
import sys
for line in sys.stdin:
line = line.strip('\n\r').split('\t')
print("{0}\t{1}\1{2}\1{3}\1{4}\t{5}".format(line[0], line[2], line[3], line[4], line[5], line[11]))
cat train.txt |python xxx.py > output.txt