#include <bits/stdc++.h>
using namespace std;
int M[100][100];
int color[100];
const int ddx[8] = {0, 1, 1, 1, 0, -1, -1, -1};
const int ddy[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const int dx[4] = {0, 1, 0, -1};
const int dy[4] = {-1, 0, 1, 0};
static const int NIL = -1;
int n;
void printArray(int array[], int n) {
  for (int i = (0); i < (n); ++i) {
    if (i) cout << " ";
    cout << array[i];
  }
  cout << endl;
}
int main(int argc, char const *argv[]) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int len = s.size();
  int remove = 0;
  int keyence = 0;
  bool flg = false;
  for (int i = (0); i < (len); ++i) {
    if (remove > 1) {
      cout << "NO" << endl;
      return 0;
    }
    if (keyence == 0) {
      if (s[i] == 'k') {
        keyence++;
        flg = false;
      } else {
        if (!flg) {
          remove++;
          flg = true;
        }
      }
    } else if (keyence == 1) {
      if (s[i] == 'e') {
        keyence++;
        flg = false;
      } else {
        if (!flg) {
          remove++;
          flg = true;
        }
      }
    } else if (keyence == 2) {
      if (s[i] == 'y') {
        keyence++;
        flg = false;
      } else {
        if (!flg) {
          remove++;
          flg = true;
        }
      }
    } else if (keyence == 3) {
      if (s[i] == 'e') {
        keyence++;
        flg = false;
      } else {
        if (!flg) {
          remove++;
          flg = true;
        }
      }
    } else if (keyence == 4) {
      if (s[i] == 'n') {
        keyence++;
        flg = false;
      } else {
        if (!flg) {
          remove++;
          flg = true;
        }
      }
    } else if (keyence == 5) {
      if (s[i] == 'c') {
        keyence++;
        flg = false;
      } else {
        if (!flg) {
          remove++;
          flg = true;
        }
      }
    } else if (keyence == 6) {
      if (s[i] == 'e') {
        keyence++;
        flg = false;
      } else {
        if (!flg) {
          remove++;
          flg = true;
        }
      }
    } else if (keyence == 7) {
      remove++;
      break;
    }
  }
  if (keyence == 7 && remove <= 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
