Task: Program Execution
Input (English): 5153, N, a
Output (English): 2