Task: Program Execution
Input (English): R, 2229, 8719, f, p
Output (English): 3