Task: Program Execution
Input (English): 283, 1253, 2717, Z, 9705, 5837, a, 2959, J, L, 8391
Output (English): 4, 7, 9, 10