def submission(origin_file, topics, runtag, output_file):
    with open(output_file, 'a') as fout, open(origin_file, 'r') as fin:
        for line in fin:
            data = line.strip().split(' ')
            if (data[0] in topics):
                continue
            data[(- 1)] = runtag
            fout.write((' '.join(data) + '\n'))
def submission(origin_file, topics, runtag, output_file):
    with open(output_file, 'a') as fout, open(origin_file, 'r') as fin:
        for line in fin:
            data = line.strip().split(' ')
            if (data[0] in topics):
                continue
            data[(- 1)] = runtag
            fout.write((' '.join(data) + '\n'))