#include <bits/stdc++.h>
int main() {
  char s[110];
  int count = 0, i, j;
  gets(s);
  if (strlen(s) >= 3) {
    for (i = 0; i < strlen(s) - 2; i++) {
      if (s[i] != '.' && s[i + 1] != '.' && s[i + 2] != '.' &&
          s[i] != s[i + 1] && s[i] != s[i + 2] && s[i + 1] != s[i + 2])
        count++;
    }
    if (count != 0)
      printf("Yes");
    else
      printf("No");
  } else
    printf("No");
  return 0;
}
