Task: Program Execution
Input (English): 1775, f, N, M, z, o
Output (English): 1775