#include <bits/stdc++.h>
using namespace std;
string s;
bool possible(int i) {
  if (s[i] != s[i + 1] && s[i + 1] != s[i + 2] && s[i] != s[i + 2] &&
      s[i] != '.' && s[i + 1] != '.' && s[i + 2] != '.')
    return true;
  return false;
}
int main() {
  cin >> s;
  bool ok = false;
  for (int i = 0; i + 2 < s.size() && !ok; i++)
    if (possible(i)) ok = true;
  if (ok)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
