import Foundation
 
let input_line: String = readLine()!
let split: [String] = input_line.components(separatedBy: " ")
 
let a = Int(split[0])!
let b = Int(split[1])!
let c = Int(split[2])!

if (a==b && b==c){
    print("1")
}else if (a==b && b != c || a==c && c != b || b==c && a != c){
    print("2")
}else{
    print("3")
}
