Task: Program Execution
Input (English): 5141 7103 r P 2985 K J a Q A 7757 8271 6063 L 1477 3565 I t i 8593 2677 9283 I q 5137 1233 k 7113 1051 a 3257 U l 6423
Output (English): 3, 4, 6, 7, 8, 9, 10, 14, 17, 18, 19, 23, 24, 27, 30, 32, 33