#include <bits/stdc++.h>
using namespace std;
template <class T, class S>
bool chmax(T &a, const S &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T, class S>
bool chmin(T &a, const S &b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
long long gcd(long long n, long long m) { return (m ? gcd(m, n % m) : n); }
long long lcm(long long n, long long m) { return n / gcd(n, m) * m; }
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);
  string s;
  cin >> s;
  string k = "keyence";
  long long n = s.size();
  long long cnt = 0;
  for (long long i = 0; i < (7); i++) {
    if (s[i] == k[i]) cnt++;
    if (s[n - 1 - i] == k[6 - i]) cnt++;
  }
  cout << (cnt >= 7 ? "Yes" : "No") << '\n';
}
