Durak game#1689

Durak game

1 second
122.174 megabytes
Very easy

A mischievous monkey, donkey, goat, and clubfooted bear decided to play the durak card game. As is known, in the first round, the player who has the trump card of the lowest rank makes the first move. Therefore, after the cards are dealt, all four simultaneously declare the rank of the lowest trump card they have, meaning each names a number from to or (numbers greater than correspond to picture cards: jack, queen, king, and ace; zero means no trumps).

You are given the numbers that were declared. Determine the minimum number of players who definitely lied in this group.

A deck of cards is used: cards in each of the suits. Each player is dealt cards, the next card is revealed, and its suit sets the trump for the game.

Input

Four integers declared by the players, separated by spaces. Each number is either or an integer from to .

Output

Print the minimum number of players who definitely lied.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading