#include using namespace std; int main() { int n,a,ans=0; cin>>n; vectorv(n+1,0); for(int i=0;i>a; v[a]++; if(v[a]==2)ans++; } cout<