Task: Program Execution
Input (English): D 3367 R 441 5065 l 787 P a 1315 t 6491 a h Q 7067 V N 641 1483 J 9549 8541 5867 381 v U n a q 7283
Output (English): 2, 4, 5, 7, 10, 12, 16, 19, 20, 22, 23, 24, 25, 31