Task: Program Execution
Input (English): D 7123 D 9253 W 5633 t f l J P 5727 5845 5123 P a 8487 J 2599 a 7073 e 405 243 3633 k 985 U A 3533 K 2751 D 7009 8679 329 8973
Output (English): 1, 3, 5, 7, 8, 9, 10, 11, 15, 16, 18, 20, 22, 26, 28, 29, 31, 33