S = input()

s = 'keyence'
for i in range(1, len(s)):
    left = s[:i]
    right = s[i:]
    l = S.find(left)
    if l > -1 and S[l + i:].find(right) > -1:
        print('YES')
        break
else:
    print('NO')
