#!/usr/bin/python

import sys
import random

inputfile = open(sys.argv[1], "r")
outputfile = open(sys.argv[2], "w")

line = ""
for line in inputfile.readlines():
	newline = ""
	for j in range(len(line)):
		mapsymbol = line[j]

		if mapsymbol == " ":
			newsymbol = str(random.randint(1,9))
		else:
			newsymbol = mapsymbol

		newline += newsymbol
		
	outputfile.write(newline)

inputfile.close()
outputfile.close()


