Task: Program Execution
Input (English): 4817 A 7395 n 5439 7455 m 9735 a Z N s N 6833 8797 F 2775 Q 9111 B 9803 r d 3995 d 2809 3843 K A
Output (English): 4817, 1, 7395, 14, 5439, 7455, 13, 9735, 1, 26, 14, 19, 14, 6833, 8797, 6, 2775, 17, 9111, 2, 9803, 18, 4, 3995, 4, 2809, 3843, 11, 1