#include <bits/stdc++.h>
using namespace std;
int GCD(int a, int b) { return b ? GCD(b, a % b) : a; }
int LCM(int a, int b) { return (a * b) / GCD(a, b); }
int abs(int x) { return x > 0 ? x : -x; }
bool flag = true;
string key = "keyence";
int main() {
  string s;
  cin >> s;
  int index = 0;
  for (int i = 0; i < (int)key.size(); i++) {
    if (s[i] == key[i]) {
      if (i == (int)key.size() - 1) {
        cout << "YES" << endl;
        return 0;
      }
    } else
      break;
  }
  for (int i = 0; i < (int)s.size(); i++) {
    if (s[i] == 'k') {
      for (int j = 0; j < (int)key.size(); j++) {
        if (s[i + j] == key[j]) {
          index++;
        }
      }
      if (index == (int)key.size() and index + i == (int)s.size()) {
        cout << "YES" << endl;
        return 0;
      }
    }
    if (s[i] == key[index]) {
      for (int j = 0; j < index + j; j++) {
        if (s[i + j] != key[index + j]) break;
        if (index + j + 1 == (int)key.size() and
            i + (int)key.size() - index == (int)s.size()) {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
}
