module A = Array
module L = List
module Q = Queue

let read_int() = Scanf.scanf "%d " (fun x -> x)
let println = Printf.printf "%d\n"

let main =
  let a = read_int() in
  let b = read_int() in
  let c = read_int() in
  [a; b; c] |> L.sort_uniq compare |> L.length |> println
