#include <bits/stdc++.h>
const int inf = (1 << 30);
const int mod = 1000000007;
using ll = long long;
using namespace std;
int main() {
  string s;
  cin >> s;
  map<char, bool> mp;
  mp['a'] = false;
  mp['b'] = false;
  mp['c'] = false;
  for (char k : s) mp[k] = true;
  int cnt = 0;
  for (auto zw : mp) {
    if (zw.second) ++cnt;
  }
  if (cnt == 3)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
