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