You are given an array A of N integers. Your task is to print the sum of numbers that occurs for an even number of times in the array.
Input format
Output format
Print a single integer denoting the sum of numbers that appeared for even times in the array.
Constraints
1≤N≤1051≤Ai≤109
Edited problem statement
You are given an array A of N integers. Your task is to print the sum of numbers that is occurring for an even number of times in the array.
Input format
Output format
Print a single integer denoting the sum of numbers that appeared for the even number of times in the array.
Constraints
1≤N≤1051≤Ai≤109
Here the numbers 2 and 1 appears twice. Hence, the answer will be 2+1=3.