#include <bits/stdc++.h>
using namespace std;
const int INT_INF = 2147483646;
const long long LL_INF = 9223372036854775807;
bool SecondCompare(const pair<int, int> &a, const pair<int, int> &b) {
  return a.second < b.second;
}
bool SecondCompareDes(const pair<int, int> &a, const pair<int, int> &b) {
  return a.second > b.second;
}
string s;
bool f = false, f2 = false;
string ans = "keyence";
int pos;
string kou;
int main() {
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    if (f2 && pos == ans.length()) {
      cout << "NO\n";
      return 0;
    }
    if (pos != ans.length()) {
      if (ans[pos] == s[i]) {
        if (f) f2 = true;
        kou += s[i];
        ++pos;
      } else {
        if (f2) {
          cout << "NO\n";
          return 0;
        }
        f = true;
      }
    }
  }
  if (kou == ans) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
}
