Task: Program Execution
Input (English): m 3477 D 4599 g D 2861 g b 1959 G E 4335 9537 K N 3591 7631 f 7975 t v s P 9303 9375 R 3893 591 1953 1477 4907 8359 2709 4649 K l 7171 4935 7263
Output (English): 2, 4, 7, 10, 13, 14, 17, 18, 20, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 38, 39, 40