import sys

inpfile = open('myprog.greet','r')

for line in inpfile:
    (command, number) = line.split()
    if int(number) < 1:
        print('Interpreter error on line...')
        sys.exit()
    for i in range(int(number)):
        print(command)
inpfile.close()
