import re
s = input()
t = 'keyence'

for i in range(7):
    m1 = re.search(t[:i], s)
    m2 = re.search(t[i:], s)
    if (m1 is not None) and (m2 is not None):
        s1 = m1.start()
        s2 = m2.start()
        if (s1 < s2) and (' ' not in s[s1:s2]):
            print('YES')
            break
else:
    print('NO')