Task: Program Execution
Input (English): 7023, 9805, T, N, D, 4193, 6341, a, 8807, N
Output (English): 7023, 9805, 20, 14, 4, 4193, 6341, 1, 8807, 14