#include <bits/stdc++.h>
using namespace std;
char arr[102];
bool resp = false;
int main() {
  scanf("%s", arr);
  for (int i = 1; i < strlen(arr) - 1; i++) {
    if (arr[i] != arr[i - 1] && arr[i] != arr[i + 1] &&
        arr[i - 1] != arr[i + 1]) {
      if (arr[i] != '.' && arr[i + 1] != '.' && arr[i - 1] != '.') resp = true;
    }
  }
  printf("%s\n", resp ? "Yes" : "No");
  return 0;
}
