#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int j = 0, dem = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == k[j]) {
      j++;
      dem++;
    }
    if (j == k.length() - 1) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
