#include <bits/stdc++.h>
using namespace std;
const long double PI = acos(-1);
const long long DEP = 1e18;
int dx[4] = {-1, 0, 1, 0};
int dy[4] = {0, -1, 0, 1};
int GCD(int x, int y) { return y ? GCD(y, x % y) : x; }
int main() {
  string s;
  cin >> s;
  string ans = "NO";
  if (s == "keyence")
    ans == "YES";
  else {
    for (int i = 0; i < 7; i++) {
      if (s.substr(0, i) + s.substr(s.size() + i - 7, 7 - i) == "keyence") {
        ans = "YES";
        break;
      }
    }
  }
  cout << ans << endl;
}
