function Main(input){
	var xs = input.trim().split('\n')[0].split('').sort().join('')
    if(xs == 'abc'){
    	console.log('YES');
    }else{
    	console.log('NO');
    }
}   
Main(require("fs").readFileSync("/dev/stdin","utf8"));