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