Task: Program Execution
Input (English): 2847 t a 1229 6605 4305 8565 W V 505 7399 k N c 3971 9099 7203 8687 1225 3009 3231 2947 i j N Q 2121 1875 s 6597 u E 6919 I J 8761 Z 351 1645 O
Output (English): 1, 4, 5, 6, 7, 10, 11, 15, 16, 17, 18, 19, 20, 21, 22, 27, 28, 30, 33, 36, 38, 39