Task: Program Execution
Input (English): 6041, d, c, 1761, s, 2677, B, 5393, Z, 5405, C, 1087, N, N, D, 7539, Q, c, N
Output (English): 1, 4, 6, 8, 10, 12, 16