s=input()
if(s[0]=='k'):
    for i in range(len(s)):
        for j in range(i,len(s)):
            for k in range(j,len(s)):
                for l in range(k,len(s)):
                    t=s[i:j+1]+s[k:l+1]
                    if(t=='keyence'):
                        print('YES')
                        exit()
    print('NO')
if(s[0]!='k'):
    if(s[-7:]=='keyence'):
        print('YES')
    else:
        print('NO')        
