Task: Program Execution
Input (English): 7451 Y p Y 7717 A 5827 9889 B 1143 2401 s N C G Z C r 8281 C 5365 N 8081 987 1615 3935
Output (English): 7451, 25, 16, 25, 7717, 1, 5827, 9889, 2, 1143, 2401, 19, 14, 3, 7, 26, 3, 18, 8281, 3, 5365, 14, 8081, 987, 1615, 3935