Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

The problem statement has recently been changed. View the changes.

×
B. Canvas Frames

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputNicholas, a painter is going to paint several new canvases. Nicholas is sure that the canvases will turn out so great that each one will need framing and being hung on the wall. Frames are what Nicholas decided to begin with.

Nicholas has *n* sticks whose lengths equal *a*_{1}, *a*_{2}, ... *a*_{n}. Nicholas does not want to break the sticks or glue them together. To make a *h* × *w*-sized frame, he needs two sticks whose lengths equal *h* and two sticks whose lengths equal *w*. Specifically, to make a square frame (when *h* = *w*), he needs four sticks of the same length.

Now Nicholas wants to make from the sticks that he has as many frames as possible; to be able to paint as many canvases as possible to fill the frames. Help him in this uneasy task. Note that it is not necessary to use all the sticks Nicholas has.

Input

The first line contains an integer *n* (1 ≤ *n* ≤ 100) — the number of sticks. The second line contains *n* space-separated integers. The *i*-th integer equals the length of the *i*-th stick *a*_{i} (1 ≤ *a*_{i} ≤ 100).

Output

Print the single number — the maximum number of frames Nicholas can make for his future canvases.

Examples

Input

5

2 4 3 2 3

Output

1

Input

13

2 2 4 4 4 4 6 6 6 7 7 9 9

Output

3

Input

4

3 3 3 5

Output

0

Codeforces (c) Copyright 2010-2021 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Mar/06/2021 18:25:31 (f2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|