Task: Program Execution
Input (English): f, n, d, D, Q, f, x, Y
Output (English):