Task: Program Execution
Input (English): 51 S b H t w 6541 2685 o 3835 6657 f Y S 2099 6407 g 7091 7491 9969 5921 5571 e u 9525 6577 391 3285 X 6803 1253 2545 227 7471 O P 1977 3477 S z
Output (English): 2, 3, 4, 5, 6, 9, 12, 13, 14, 17, 23, 24, 29, 35, 36, 39, 40