#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long inf = 0x3f3f3f3f;
const long long mininf = -922337203685477;
const long long nax = 0;
queue<char> b;
string a, ans;
int c = 0, d = 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  b.push('k');
  b.push('e');
  b.push('y');
  b.push('e');
  b.push('n');
  b.push('c');
  b.push('e');
  cin >> a;
  c = a.length();
  for (int i = 0; i < c; i++) {
    if (a[i] == b.front()) {
      ans += a[i];
      b.pop();
    }
  }
  if (ans == "keyence") {
    cout << "YES" << '\n';
  } else
    cout << "NO" << '\n';
}
