Task: Program Execution
Input (English): N, Y, y, i, 5913, r, 7457, S, 6297, 6307, D, Q, 3933
Output (English): 14, 25, 25, 9, 5913, 18, 7457, 19, 6297, 6307, 4, 17, 3933