Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 100 点
問題文
シカのAtCoDeerくんはペンキをこれまでに3つ買いました。おととい買ったペンキの色は a , 昨日買ったペンキの色は b , 今日買ったペンキの色は c です。各ペンキの色は1以上100以下の整数で表されます。 AtCoDeerくんはわすれんぼうなため、同じ色のペンキを買ってしまっていることがあります。AtCoDeerくんが買ったペンキの色の種類の個数を教えてあげてください。
制約
- 1≦a,b,c≦100
入力
入力は以下の形式で標準入力から与えられる。
a b c
出力
AtCoDeerくんが買ったペンキの色の種類の個数を出力せよ。
入力例 1
3 1 4
出力例 1
3
色 1,3,4 の 3 種類です。
入力例 2
3 3 33
出力例 2
2
色 3,33 の 2 種類です。
Score : 100 points
Problem Statement
AtCoDeer the deer recently bought three paint cans. The color of the one he bought two days ago is a, the color of the one he bought yesterday is b, and the color of the one he bought today is c. Here, the color of each paint can is represented by an integer between 1 and 100, inclusive.
Since he is forgetful, he might have bought more than one paint can in the same color. Count the number of different kinds of colors of these paint cans and tell him.
Constraints
- 1≦a,b,c≦100
Input
The input is given from Standard Input in the following format:
a b c
Output
Print the number of different kinds of colors of the paint cans.
Sample Input 1
3 1 4
Sample Output 1
3
Three different colors: 1, 3, and 4.
Sample Input 2
3 3 33
Sample Output 2
2
Two different colors: 3 and 33.