s=input()
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]+s[k:l+1]
                print(t)
                if(t=='keyence'):
                    print('YES')
                    exit()
print('NO')            
 