Task: Program Execution
Input (English): S 2947 m o 5689 3947 6067 J Z 807 851 N 7859 j p 7987 7809 3783 B M 1087 B T 165 6253 q k B J 1267 A 2987 3607 U
Output (English): 2, 5, 6, 7, 10, 11, 13, 16, 17, 18, 21, 24, 25, 30, 32, 33