Task: Program Execution
Input (English): 1333 237 A N B v 8221 h 3747 9775 C 3995 J 5131 R n 3671 M 8123 N 2153 I g 7443 3591 5607 Y F 6135 6523 5543
Output (English): 1333, 237, 1, 14, 2, 22, 8221, 8, 3747, 9775, 3, 3995, 10, 5131, 18, 14, 3671, 13, 8123, 14, 2153, 9, 7, 7443, 3591, 5607, 25, 6, 6135, 6523, 5543