import math
import sys
import collections
import bisect
readline = sys.stdin.readline


def main():
    keyence = "keyence"
    s = readline().rstrip()
    lenS = len(s)
    for i in range(1, 7):
        if s.count(keyence[0:i]) > 0:
            idx = s.index(keyence[0:i]) + i + 1
            if s[idx-1:lenS].count(keyence[i:7]) > 0:
                print("YES")
                return
    print("NO")


if __name__ == '__main__':
    main()
