Task: Program Execution
Input (English): 5275, E, 3747, 4299, N, N, P, d, w, g, 6379, u
Output (English): 2, 5, 6, 7, 8, 9, 10, 12