# from pprint import pprint
# import math
# import collections

# n = int(input())
s = input()
# n, k = map(int, input().split(' '))
# a = list(map(int, input().split(' ')))

K = 'keyence'

if K in s:
    splitted = s.split(K)

    if len([spl for spl in splitted if len(spl) > 0]) > 1:
        print('NO')
    else:
        print('YES')
else:
    print('NO')
