Task: Program Execution
Input (English): 1595 G p 7859 3425 m G 4865 4497 2683 1975 121 5999 9915 8383 1987 7843 f s 4865 m d 4051 w f o 2401 5813 819 o I i 3867 1637 2069 h 9977 9935 s p
Output (English): 1, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 20, 23, 27, 28, 29, 33, 34, 35, 37, 38