Task: Program Execution
Input (English): 5297 6223 6303 3039 3971 H 3703 O G t 8305 4453 7895 927 J Y H 9405 X o 423 V 6835 7971 q x W G j b 7177 2007 q H O Z 4523 q 1687 V
Output (English): 1, 2, 3, 4, 5, 7, 11, 12, 13, 14, 18, 21, 23, 24, 31, 32, 37, 39