Task: Program Execution
Input (English): n, m, u, 267
Output (English): 2, 6, 7