Task: Program Execution
Input (English): 3605 A 1957 Y H U x J E a 7427 O 1595 A D w D d 7151 h 4185 x 2805 2355 d 4599 w 327 1793
Output (English): 3605, 1, 1957, 25, 8, 21, 24, 10, 5, 1, 7427, 15, 1595, 1, 4, 23, 4, 4, 7151, 8, 4185, 24, 2805, 2355, 4, 4599, 23, 327, 1793