#include <bits/stdc++.h>
using namespace std;
long long int exp(long long int a, long long int b, long long int m);
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s1 = "keyence";
  string s;
  cin >> s;
  long long int ind = 0;
  for (long long int i = 0; i < s.length(); i++) {
    if (s[i] == s1[ind]) {
      ind++;
    }
  }
  if (ind == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
long long int exp(long long int a, long long int b, long long int m) {
  if (b == 0) {
    return 1;
  }
  long long int temp = exp(a, b / 2, m);
  temp = (temp * temp) % m;
  if (b & 1) {
    return (temp * (a % m)) % m;
  }
  return temp;
}
