Task: Program Execution
Input (English): 2401, S, Q, 2707, 933, U, 5195, 6081, u, 2821, X, A, x, 311
Output (English): 1, 4, 5, 7, 8, 10, 14