Task: Program Execution
Input (English): 8509 F 3041 T H 355 7777 8665 2867 2813 T r 8483 w 5523 1985 3745 7105 7861 s e j 8409 s 6229 3815 4393 P 7859 Q 391 B
Output (English): 1, 3, 6, 7, 8, 9, 10, 13, 15, 16, 17, 18, 19, 23, 25, 26, 27, 29, 31