Task: Program Execution
Input (English): 317, z, 31, q, l
Output (English): 1, 3, 7