let () =
	let a,b,c = Scanf.scanf "%d %d %d\n" (fun a b c-> a,b,c) in
    Printf.printf "%d\n"
    (if a = b && b = c then 1
    else if (a = b && a <> c) || (a = c && a <> b) || (b = c && a <> b) then 2
    else 3)