#include <bits/stdc++.h>
using namespace std;
char s[100050];
bool vis;
int main() {
  scanf("%s", s + 1);
  int len = strlen(s + 1);
  if (len <= 2) {
    printf("No\n");
    return 0;
  }
  for (int i = 1; i <= len - 2; 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] != '.') {
      vis = 1;
      break;
    }
  }
  if (vis == 1)
    printf("Yes\n");
  else
    printf("No\n");
}
