#include <cstdio>
#include <algorithm>
#include <cstring>

using namespace std;

typedef long long ll;
const char x[] = "abc";
char s[5];


int main()
{
    scanf("%s", s);
    sort(s, s + 3);
    printf("%s", strcmp(s, x) == 0 ? "YES" : "NO");
    return 0;
}