#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef vector<vector<ll>> matrix;

void solve() {
  string want = "keyence";
  string s;
  cin >> s;
  int j = 0;
  for(int i = 0; i < s.size() && j < want.size(); i++) {
    if(s[i] == want[j]) j++;
  }
  if(j == want.size()) cout << "YES\n";
  else cout << "NO\n";
}

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL); cout.tie(NULL);
  init();
  solve();
}
