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