Task: Program Execution
Input (English): M, n, m
Output (English): -1