Task: Program Execution
Input (English): 5521, N, S, 5561, 1657, 4237, 6847, p, 2763, 6127, 7599, b, 4145, q, 365, 9749, 6985, 7941, 8407, 6911, P, 8081
Output (English): 2, 3, 8, 12, 14, 21