Task: Program Execution
Input (English): M, 915, 7981, 9789
Output (English): 1