Task: Program Execution
Input (English): 5115, 2511, 7041, K, 1097, 417, 8107, 4865, 4339, 3095, W, 1409, j, R, q, N, 7687
Output (English): 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 17