#include <bits/stdc++.h>
using namespace std;
char c[105];
int ans;
int main() {
  cin >> c;
  for (int i = 1; i < strlen(c) - 1; i++) {
    if (c[i - 1] != '.' && c[i] != '.' && c[i + 1] != '.' && c[i] != c[i - 1] &&
        c[i] != c[i + 1] && c[i - 1] != c[i + 1]) {
      ans = 1;
      break;
    }
  }
  if (ans)
    cout << "Yes";
  else
    cout << "No";
}
