Task: Program Execution
Input (English): 2513, 8451, 597, 2801, 2267, N, 5909, N, 4739, 5449, 9557, D, 421, 817, 9487, 7881
Output (English): 6, 8, 12