Nzec in python

i am getting a nzec in python in the codechef editor but in idle it works fine
the code is -

n=int(input())
for _ in range(n):
num=int(input())
arr=list(map(int,input().split()))
arr.sort()
for i in range(3):
if arr[(i*(int(num/4)))]==arr[i*int(num/4)+1]:
print("-1")
break

else:
print(arr[int(num/4)],arr[2int(num/4)],arr[3int(num/4)])
please help

Delete it please people will copy ur code u can’t ask qns related to challenges during the contest