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