Task: Program Execution
Input (English): 317, s, m, 429, j
Output (English): 1, 2, 3, 4, 7, 9