#include <bits/stdc++.h>
using namespace std;
void die(string x) {
  cout << x << flush;
  exit(0);
}
string s;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> s;
  if (s.length() < 3) die("No");
  for (int i = 1; i + 1 < s.length(); i++) {
    if (s[i] != s[i - 1] && s[i] != s[i + 1] && s[i - 1] != s[i + 1] &&
        s[i - 1] != '.' && s[i] != '.' && s[i + 1] != '.')
      die("Yes");
  }
  die("No");
  return 0;
}
