#include<iostream>
#include<algorithm>
#include<functional>
#include<string>
using namespace std;
int main(){
  string a;
  cin>>a;
  char b=a[0],c=a[1],d=a[2];
  char e=a[a.size()-4],f=a[a.size()-3],g=a[a.size()-2],h=a[a.size()-1];
  if(b=='k' and c=='e' d=='y' and e=='e' and f=='n' and g=='c' and h=='e') 
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
}
