#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  while (cin >> a) {
    bool f = false;
    if (a.length() < 3) {
      cout << "No" << endl;
      continue;
    }
    for (int i = 0; i <= a.length() - 3; i++) {
      b = a.substr(i, 3);
      if (b[0] != '.' && b[1] != '.' && b[2] != '.') {
        if (b[0] != b[1] && b[1] != b[2] && b[2] != b[0]) {
          f = true;
          break;
        }
      }
      b.clear();
    }
    if (f)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
