Task: Program Execution
Input (English): M, 2047, 1087, 4057, 2841, 4907, 251
Output (English): 13, 2047, 1087, 4057, 2841, 4907, 251