#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  for (int i = 1; i < str.size() - 1; i++) {
    if (str[i + 1] != '.' && str[i - 1] != '.' && str[i] != '.') {
      if (str[i + 1] != str[i - 1] && str[i - 1] != str[i] &&
          str[i + 1] != str[i]) {
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
  return 0;
}
