Durak game
A prankster monkey, a donkey, a goat and a clubfooted bear started to play cards in a fool. As you know, the first starts in the game who has the trump card of the smallest dignity. Therefore, after the cards are dealt, all four simultaneously name the value of the smallest trump that they have, namely, each says a number from 6 to 14 or 0 (numbers more than 10 correspond to pictures: jack, lady, king and ace, zero - no trumps).
You know what numbers were said. Determine the number of guaranteedly lied in this company.
The game use a deck of 36 cards - 9 cards of each of 4 suits. Each player is dealt 6 cards, the next card from the deck is opened, and its suit becomes a trump for this game.
Input
Four integers that players called. Each of the numbers is either 0, or a number from 6 to 14.
Output
Print the minimum number of players who lied.