Task: Program Execution
Input (English): 1387, 2129, 8239, Y, W, 6371, 5471, 9655, x, 2515, Q, 2165, 3117, 4245, 5459, 4353, 5091, B, 2991, 5835, E, a
Output (English): 4, 5, 9, 11, 18, 21, 22