Task: Program Execution
Input (English): 4021, 4383, 2087, 2453, N, 3143, P, a, 1847, 2717
Output (English): 5, 7, 8