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