Devu has n weird friends. Its his birthday today, so they thought that this is the best occasion for testing their friendship with him. They put up conditions before Devu that they will break the friendship unless he gives them a grand party on their chosen day. Formally, ith friend will break his friendship if he does not receive a grand party on dith day.

Devu despite being as rich as Gatsby, is quite frugal and can give at most one grand party daily. Also, he wants to invite only one person in a party. So he just wonders what is the maximum number of friendships he can save. Please help Devu in this tough task !!

-----Input-----
- The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows.
- First line will contain a single integer denoting n.

- Second line will contain n space separated integers where ith integer corresponds to the day dith as given in the problem.

-----Output-----
Print a single line corresponding to the answer of the problem.

-----Constraints-----
- 1 ≤ T ≤ 104
- 1 ≤ n  ≤ 50
- 1 ≤ di ≤ 100

-----Example-----
Input:
2
2
3 2
2
1 1
Output:
2
1

-----Explanation-----
Example case 1. Devu can give party to second friend on day 2 and first friend on day 3, so he can save both his friendships.
Example case 2. Both the friends want a party on day 1, and as the Devu can not afford more than one party a day, so he can save only one of the friendships, so answer is 1.

Starter code:

Solutions:
# cook your dish here
test = int(input())

for _ in range(0,test):
 n = int(input())
 lister = set(map(int,input().split()))
 print(len(lister))

# cook your dish here
for _ in range(int(input())):
 n=int(input())
 l=list(map(int,input().split()))
 s=set(l)
 l1=list(s)
 print(len(l1))

# cook your dish here
t= int(input())
for i in range(t):
 n= int(input())
 ls= list(map(int,input().split()))
 s = len(set(ls))
 print(s)

# cook your dish here
t= int(input())
for _ in range(t):
 n= int(input())
 ls= list(map(int,input().split()))
 s = len(set(ls))
 print(s)


for _ in range(int(input())):
 input()
 print(len(set(input().split())))

# cook your dish here
t=int(input())
for _ in range(t):
 n= int(input())
 s=set(map(int,input().split()))
 if(n==len(s)):
  print(n)
 else:
  print(len(s))

# cook your dish here
for _ in range(int(input())):
 n=int(input())
 d=list(map(int,input().split()))
 d_set=set(d)
 print(len(d_set))

for _ in range(int(input())):
 n = int(input())
 arr = list(map(int, input().split()))
 hsh = [0] * 101
 ans = 0

 for i in arr:
  if hsh[i] == 0:
   ans += 1
   hsh[i] += 1

 print(ans)

# cook your dish here
t = int(input())
l=[6,2,5,5,4,5,6,3,7,6]
for i in range(t):
 n=int(input())
 a=list(map(int,input().split()))
 a1=set(a)
 print(len(a1))
 


for t in range(int(input())):
 n=int(input())
 l=list(set(list(map(int, input().split()))))
 print(len(l))

# cook your dish here
for i in range(int(input())):
 n=int(input())
 s=set(map(int,input().split()))
 print(len(s))

t=int(input())
while t!=0:
 dict={}
 n=int(input())
 arr=list(map(int,input().split()))
 for i in range(n):
  if arr[i] in dict:
   dict[arr[i]]+=1
  else:
   dict[arr[i]]=1
 print(len(dict))
 t-=1

# cook your dish here
t=int(input())

while(t):
 n=int(input())
 lt=input().split()
 for i in range(n):
  lt[i]=int(lt[i])
 new=set(lt)
 size=len(new)
 print(size)
 t=t-1

# cook your dish here
t=int(input())
i=0
while i<t:
 n=int(input())
 a=[]
 a=input().split()
 j=0
 b=[]
 fl=0
 while j<n:
  x=int(a[j])
  if x not in b:
   c=a.count(a[j])
   if c>1:
    fl=fl+c-1
   b.append(x)
  j+=1
 fs=n-fl
 print(fs)
 i+=1

t =int(input())
for i in range(t):
 n = int(input())
 li = list(map(int, input().split()))[:n]
 a = []
 for i in li:
  if li.count(i) == 1:
   a.append(i)
  if i not in a:
   a.append(i)
 print(len(a))


for t in range(int(input())):
 n = int(input())
 numberlist = list(map(int,input().split()))
 print(len(list(set(numberlist))))


# cook your dish here
t=int(input())
for i in range(t):
 n=int(input())
 li=list(map(int,input().split(" ")))
 s=list(set(li))
 print(len(s)) 
  


a=int(input())
while a:
 a=a-1
 b=int(input())
 x=list(map(int,input().split()))
 p=[]
 for i in x:
  if i not in p:
   p.append(i)
 print(len(p)) 


for i in range(int(input())):
 n=int(input())
 l=list(map(int,input().split()))
 s=set(l)
 print(len(s))

t=int(input())
while t>0:
 n=int(input())
 li=list(map(int,input().split(" ")))
 se=list(set(li))
 print(len(se)) 
 t-=1 

# cook your dish here
for i in range(int(input())):
 n=int(input())
 li=list(map(int,input().split()))
 a=set(li)
 l=list(a)
 print(len(l))


T=int(input())
for i in range(0,T):
 N=int(input())
 a = list(map(int,input().strip().split()))[:N]
 lst=[]
 count=0
 for i in a :
  if i in lst:
   pass
  else :
   count=count+1
   lst.append(i)
 print(count)

t=int(input())
for i in range(t):
 n=int(input())
 li=list(map(int,input().split()))
 a=set(li)
 l=list(a)
 print(len(l))

t=int(input())
for i in range(t):
 n=int(input())
 li=list(map(int,input().split()))
 a=set(li)
 l=list(a)
 print(len(l))


for _ in range(int(input())):
 n=int(input())
 s=input().split(' ')
 a=set() 
 for i in range(n): a.add(eval(s[i])) 
 print(len(a))