Task: Program Execution
Input (English): 3891 w p o V 5037 S 8893 161 I m B K j 6331 W 2895 3229 z B V 9917 I 5421 N
Output (English): 1, 6, 8, 9, 15, 17, 18, 22, 24