s = input()
if 'k' in s and 'eyence' in s[s.find('k') + 1:]:
    print('YES')
    exit()
elif 'ke' in s and 'yence' in s[s.find('ke') + 1:]:
    print('YES')
    exit()
elif 'key' in s and 'ence' in s[s.find('key') + 1:]:
    print('YES')
    exit()
elif 'keye' in s and 'nce' in s[s.find('keye') + 1:]:
    print('YES')
    exit()
elif 'keyen' in s and 'ce' in s[s.find('keyen') + 1:]:
    print('YES')
    exit()
elif 'keyenc' in s and 'e' in s[s.find('keyenc') + 1:]:
    print('YES')
    exit()
else:
    print('NO')
