Task: Program Execution
Input (English): N, X, M, z
Output (English): 0