Task: Program Execution
Input (English): p, 43, M, 2439, 7291, 6719, m, 3739, e, w, P, 493, W, 6997, 667, 6665, o, 8595, 6779, K, 3475
Output (English): 1, 3, 7, 9, 10, 11, 13, 17, 20