Task: Program Execution
Input (English): 4427, 7061, P, z, r, 1861, N, B
Output (English): 1, 2, 6