#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  bool flaga = false;
  bool flagb = false;
  bool flagc = false;
  cin >> str;
  for (int i = 0; i < str.size(); i++) {
    if (str[i] == 'a') flaga = true;
    if (str[i] == 'b') flagb = true;
    if (str[i] == 'c') flagc = true;
    if (flaga && flagb && flagc) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
