import sys
#input = sys.stdin.buffer.readline
from collections import deque

def main():
    S = deque(list(input()))
    use = ["k","e","y","e","n","c","e"]

    l = 0
    while S:
        now = S.popleft()
        if now == use[l]:
            l += 1
        if l == 7:
            print("YES")
            exit()
    
    print("NO")

if __name__ == "__main__":
    main()
