Task: Program Execution
Input (English): D, 7557, 2965, N, d, R, 2845, f, 8165, Y, N, 4109, t, 7323
Output (English): 4, 7557, 2965, 14, 4, 18, 2845, 6, 8165, 25, 14, 4109, 20, 7323