# coding: utf-8
#!/usr/bin/python

import codecs
import sys

with codecs.open(sys.argv[2],'w') as out_txt:
        with codecs.open(sys.argv[1],'r') as text:
            for line in text:
                line = line.replace('.','PER').replace(',','COM').replace('?','QUE')
                out_txt.write(line)