#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using db = long double;
using str = string;
using vi = vector<int>;
using pi = pair<int, int>;
const int dr[4] = {1, 0, -1, 0}, dc[4] = {0, 1, 0, -1};
const int MOD = 1e9 + 7;
const int INF = 1e9;
void setIO(string name = "") {
  cin.tie(0)->sync_with_stdio(0);
  if ((int)(name).size()) {
    freopen((name + ".in").c_str(), "r", stdin);
    freopen((name + ".out").c_str(), "w", stdout);
  }
}
int main() {
  setIO();
  str second;
  cin >> second;
  bool val = false;
  for (int i = (1); i < ((int)(second).size() - 1); ++i) {
    if (second[i] != '.' && second[i - 1] != '.' && second[i + 1] != '.' &&
        second[i] != second[i - 1] && second[i] != second[i + 1] &&
        second[i - 1] != second[i + 1]) {
      val = true;
    }
  }
  cout << (val ? "Yes" : "No");
}
