Task: Program Execution
Input (English): N 501 f 6495 H 6325 801 4749 4099 E T 4553 4997 769 M F 4309 239 33 i o m 2923 b 4841 6931 w S R
Output (English): 14, 501, 6, 6495, 8, 6325, 801, 4749, 4099, 5, 20, 4553, 4997, 769, 13, 6, 4309, 239, 33, 9, 15, 13, 2923, 2, 4841, 6931, 23, 19, 18