Task: Program Execution
Input (English): 8591 5639 9747 D Z 4807 y 9975 7333 3637 N J m 7597 7311 R Y 9433 r Y 8603 d o e b 9979 2917 c 1841 1617 w 8863 9797 5909 3001 j K 3263 8683 3353
Output (English): 1, 2, 3, 6, 8, 9, 10, 14, 15, 18, 21, 26, 27, 29, 30, 32, 33, 34, 35, 38, 39, 40