Task: Program Execution
Input (English): 6561, 2659, Z, 243, B, U, 1147, 7903, q, w, S, L, 5191, 1907
Output (English): 1, 2, 4, 7, 8, 13, 14