s=list(input())
n=len(s)
flag=False
if ''.join(s)=='keyence':
    print('YES')
    flag=True
else:
    for i in range(n-1):
        for j in range(i+1,n):
            t=s.copy()
            del t[i:j+1]
            if ''.join(t)=='keyence':
                print('YES')
                flag=True
                break

if not flag:
    print('NO')
