function Main (input) {
  input = input.split(" ").map(inp => parseInt(inp, 10));
  var ans = "No";
  var a = input[0], b = input[1], c = input[2];
  if (a == b) {
    console.log(1);
    if (a != c) {
      ans = "Yes";
    }
  }
  else if (a == c) {
    if (a != b) {
      ans = "Yes";
    }
  }
  else if (b == c) {
    console.log(3);
    if (a != c) {
      ans = "Yes";
    }
  }
  console.log(ans);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));