#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  string s;
  string t = "keyence";
  cin >> s;
  long long int n = s.length();
  if (n < 7) return cout << "NO", 0;
  long long int i = 0, j = n - 1;
  for (i = 0; i < 7; i++)
    if (s[i] != t[i]) break;
  if (i == 7) return cout << "YES", 0;
  reverse(t.begin(), t.end());
  for (j = 0; j < 7; j++)
    if (s[n - j - 1] != t[j]) break;
  if (j == n - 8) return cout << "YES", 0;
  if (i + j >= 7)
    return cout << "YES", 0;
  else
    return cout << "NO", 0;
}
