import std.stdio;
import std.string;
import std.range;
import std.conv;

void main()
{/*
	auto S = readln.chomp;
    switch(S) {
    	case "abc", "acb", "bac", "bca", "cab", "cba":
    		"Yes".writeln;
    		break;
    	default:
    		"No".writeln;
    		break;
    }*/
    auto S = readln.split.to!(int[]),　a = S[0], b = S[1], c = S[2];
    if{(abc).or.(acb).or.(bac).or.(bca).or.(cab).or.(cba)}{
    	writeln("YES");
    }else{
    	writeln("NO");
    }
}

}