S = input()
key = 'keyence'
if 'keyence' in S:
    print('Yes')
else:
    ans = 'No'
    for i in range(1,6):
        f = key[:i]
        if S[:i] == f:
            if key[i:][::-1] == S[::-1][:7-i]:
                ans = 'Yes'
                break
    print(ans)