Task: Program Execution
Input (English): f, F, 3077, M
Output (English): 3077