const main = input => {
  const [a, b, c] = input.trim().split(' ').map(x => parseInt(x))
  const set = new Set()
  set.add(a)
  set.add(b)
  set.add(c)

  console.log(set.size)
}

// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
