Task: Program Execution
Input (English): 5707, S, M, K, R, N, A, 1369, 4655, 6425, 4945, v, 3521, i, Y, A, v, 735
Output (English): 5707, 1369, 4655, 6425, 4945, 3521, 735