Task: Program Execution
Input (English): 1897, A, F, p
Output (English): 3