#include<cmath>
#include<cstdio>
#include<stdlib.h>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<iomanip>
#include<string>
using namespace std;
int main()
{
	string s;
	cin>>s;
	sort(s.begin(),s.end());
	if(s=="abc")
		cout<<"Yes";
	else cout<<"NO";
	
	return 0;
}