Task: Program Execution
Input (English): n, T, 4635, 3921
Output (English): 1, 2