#include <bits/stdc++.h>
using namespace std;
void asd() {
  string xd;
  cin >> xd;
  if (xd.size() > 2) {
    for (int i = 1; i <= xd.size() - 2; i++) {
      if (xd[i - 1] != xd[i] and xd[i] != xd[i + 1] and
          xd[i - 1] != xd[i + 1] and xd[i] != '.' and xd[i - 1] != '.' and
          xd[i + 1] != '.') {
        cout << "Yes";
        return;
      }
    }
  }
  cout << "No";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  asd();
}
