function Main(input) {
  input = input.trim()
// input = input.split("\n").map(Number);
if(input=="abc"||input=="acb"||input=="cab"||input=="cba"||input=="bac"||input=="bca"){
  console.log("Yes")
}else{
  console.log("No")
}
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));