input: Write a function to modify the given Python program to use a dictionary instead of a list for the given input. The function should return the dictionary and the way it prints the values. The function should handle any input list and create a corresponding dictionary where the keys are the elements of the list and the values are their string representations.
  assert modify_program([1, 2, 3, 4])=={"dictionary": {1: 'one', 2: 'two', 3: 'three', 4: 'four'}, "output": ['one', 'two', 'three', 'four']}
  assert modify_program([5, 6, 7, 8])=={"dictionary": {5: 'five', 6: 'six', 7: 'seven', 8: 'eight'}, "output": ['five', 'six', 'seven', 'eight']}
  assert modify_program([])=={"dictionary": {}, "output": []}
output: def modify_program(input_list):
      num_to_word = {1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight'}
      dictionary = {num: num_to_word.get(num, str(num)) for num in input_list}
      output = [num_to_word.get(num, str(num)) for num in input_list]
      return {"dictionary": dictionary, "output": output}