CF127B Canvas Frames
Description
Nicholas, 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 Format
The first line contains an integer $ n $ ( $ 1
Output Format
Print the single number — the maximum number of frames Nicholas can make for his future canvases.