Task: Program Execution
Input (English): 1047, 9989, A, 8359, Z, N, 2461, a, q, h, 545, r, R
Output (English): 3, 5, 6, 8, 9, 10, 12, 13