Task: Program Execution
Input (English): d, n, 149, 253, 497, 117, g, 495, z
Output (English): 1, 2, 3, 4, 5, 7, 9