AtCoDeer the deer recently bought three paint cans. The color of the paint cans he bought are represented by integers. He bought:
One paint can two days ago with color a
One paint can yesterday with color b
One paint can today with color c
Each color is represented by an integer between 1 and 100, inclusive. Due to his forgetfulness, it's possible that more than one paint can is of the same color.
Your task is to count the number of different colors of these paint cans and return the result.
Input Format
The input consists of three integers:
a (1 ≤ a ≤ 100): Color of the paint can bought two days ago
b (1 ≤ b ≤ 100): Color of the paint can bought yesterday
c (1 ≤ c ≤ 100): Color of the paint can bought today
Output Format
Output a single integer representing the number of distinct colors among the three paint cans.
Examples
Example 1
Input:
text
10 20 10
Output:
text
2
Explanation: The colors are 10 and 20, so there are 2 distinct colors.
Example 2
Input:
text
5 5 5
Output:
text
1
Explanation: All three colors are the same (5), so there is only 1 distinct color.
Example 3
Input:
text
1 2 3
Output:
text
3
Explanation: The colors are 1, 2, and 3, hence there are 3 distinct colors.
Solution
You can implement your solution in the /app/ directory.