Task: Program Execution
Input (English): 6689 V 6433 n 6311 Z I C K R 3993 h 1501 H K 2831 1097 H p 3825 8781 2179 3101 D B R h 2131 3521 2707 w 7611 5835 K R V 8131 371 M
Output (English): 2, 4, 6, 7, 8, 9, 10, 12, 14, 15, 18, 19, 24, 25, 26, 27, 31, 34, 35, 36, 39