'use strict';

function Main(INPUT) {
    const input = INPUT.split("");
    const ary = input.filter((x, i, self) => self.indexOf(x) === i);
    console.log(ary.length == 3 ? "Yes" : "No");
}

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