Task: Program Execution
Input (English): Y, N, 6675, 7451, 5999, G
Output (English): 25, 14, 6675, 7451, 5999, 7