#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	char A, B, C;
	cin>>A>>B>>C;
	if((int) A + (int) B + (int) C == 161)
	{
		cout<<"YES"<<endl;
	}
	else
		cout<<"NO"<<endl;
	return 0;
}