Task: Program Execution
Input (English): 6039, 9059, m, 9585, 3861, 3291, G, 6303, W, 9309, 1145, n, 3809, P, n, 2671, 6091, 4007, 7729, 819, R
Output (English): 3, 7, 9, 12, 14, 15, 21