Love For The Twins

easy
1. You will be given a list of items 2. Customer only buys items that are available in pairs, you need to return the number of items purchased by the customer. 3. Input and output is handled for you 4. It is a functional problem ,please do not modify main()

Input Format

Input is handled for you.

Output Format

Output is handled for you.

Constraints

1 <= N <= 10^3
 1 <= arr[i] <= 10^3

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
8
1 3 5 3 1 4 5 3
Output
6
Previous
Longest Substring Without Repeating Characters
Next
Lucky Number

Related Questions