Task: Program Execution
Input (English): 5161, f, N
Output (English): 1