#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  if (s.find("keyence") != string::npos) {
    printf("YES\n");
  } else if (s.find("k") != string::npos and
             s.find("eyence") != string::npos and
             s.find("k") < s.find("eyence")) {
    printf("YES\n");
  } else if (s.find("ke") != string::npos and
             s.find("yence") != string::npos and
             s.find("ke") < s.find("yence")) {
    printf("YES\n");
  } else if (s.find("key") != string::npos and
             s.find("ence") != string::npos and
             s.find("key") < s.find("ence")) {
    printf("YES\n");
  } else if (s.find("keye") != string::npos and
             s.find("nce") != string::npos and s.find("keye") < s.find("nce")) {
    printf("YES\n");
  } else if (s.find("keyen") != string::npos and
             s.find("ce") != string::npos and s.find("keyen") < s.find("ce")) {
    printf("YES\n");
  } else if (s.find("keyenc") != string::npos and
             s.find("e") != string::npos and s.find("keyenc") < s.find("e")) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
