import sys

input_file = sys.argv[1]
output_file = sys.argv[2]

fin = open(input_file, "r")
fout = open(output_file,"w")

string = fin.read()
fin.close()

string = string.replace("|", ",")

fout.write(string)
fout.close()