Cheater#12353

Cheater (Editorial)

Notice that is reported by all of it's previous places , formally : , thus the maximum count of reports is on the last student which is and the number of reports is .

Complexity : .

for _ in range(int(input())):
    n=int(input())
    print(n,n-1)