For this Question: Given an array Arr of N elements. Find the minimum number of elements that you need to delete from this array such that all the elements in the array become distinct.First line of input contains a single integer N.
Second line of input contains N space separated integers, denoting the array Arr.

Constraints:
1 <= N <= 100000
1 <= Arr[i] <= 10^9Print a single integer which is the minimum number of elements that must be deleted.Sample Input 1
6
1 1 2 2 3 3

Sample Output 1
3

Explanation: we will delete 1 of each 1, 2 and 3., I have written this Solution Code: import numpy as np
from collections import defaultdict

d=defaultdict(int)
n=int(input())
a=np.array([input().strip().split()],int).flatten()
for i in a:
  d[i]+=1
print(n-len(d)), In this Programming Language: Python, Now tell me if this Code is compilable or not?