#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007, INF = 10000000000000000;
long long gcd(long long a, long long b) {
  if (b == 0) {
    return a;
  }
  return gcd(b, a % b);
}
int main() {
  string s, K = "keyence";
  cin >> s;
  long long n = s.size(), keyence1, keyence2;
  for (long long i = 0; i < 7; i++) {
    if (s[i] == K[i]) {
      keyence1 = i + 1;
    } else
      break;
  }
  for (long long i = 0; i < 7; i++) {
    if (s[n - i - 1] == K[6 - i]) {
      keyence2 = i + 1;
    } else
      break;
  }
  string ans = "NO";
  if (keyence1 + keyence2 >= 7) ans = "YES";
  cout << ans << endl;
}
