Task: Program Execution
Input (English): M, 4869, 1635, 1027, 4961, a, 9783
Output (English): 4869, 1635, 1027, 4961, 9783