open System
 
let tmp = Array.map int (Console.ReadLine().Split(' '))

Console.WriteLine (if tmp.[0] = tmp.[1] && tmp.[1] = tmp.[2] then 1 else if tmp.[0] = tmp.[1] || tmp.[1] = tmp.[2] || tmp.[0] = tmp.[2] then 2 else 3)
