Task: Program Execution
Input (English): m, f, 431, c
Output (English): 1, 3, 4