Task: Program Execution
Input (English): 1857 L P F R p 4063 7267 5665 h K 1231 6267 H c B v 7127 8795 B h 6995 6147 2477 v H a Q 2629 T 7001 1297 7775 I 8633 1993 2799 4263 2913 I
Output (English): 2, 3, 4, 5, 6, 10, 11, 14, 15, 16, 17, 20, 21, 25, 26, 27, 28, 30, 34, 40