#include<iostream>
#include<algorithm>
#include<functional>
#include<string>
using namespace std;
string a[100];
int main(){
  string x;
  cin>>x;
  string b=a[0],c=a[1],d=a[2];
  int 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;
}
