Task: Program Execution
Input (English): 1707, d, Z, 6659, J
Output (English): 2, 3, 5