#include <bits/stdc++.h>
using namespace std;
const long long INF = static_cast<const long long>(1e18 + 100);
const long long POLTOS = static_cast<const long long>(50);
const long long SOTKA = static_cast<const long long>(100);
const long long P = static_cast<const long long>(1e9 + 7);
const long double eps = static_cast<const long double>(1e-7);
const long long base = static_cast<const long long>(1e9);
const long long M = static_cast<const long long>(1e4);
const long long MAXN = static_cast<const long long>(1e6 + 100);
const long long MAXN1 = static_cast<const long long>(2 * 1e2);
const long long N = static_cast<const long long>(40000);
const long double pi = static_cast<const long double>(acos(-1));
int main() {
  ios ::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  if (s.size() == 1) return cout << "no", 0;
  for (long long i = 0; i < s.size() - 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])
      return cout << "yes", 0;
  }
  cout << "no";
  return 0;
}
