Task: Program Execution
Input (English): 681, s, N, 5195, A, 7307, Q, U, 2499, M
Output (English): 2, 3, 5, 7, 8, 10