from sys import stdin

def main():
    S = input()

    l = len(S)
    if S[:7] == 'keyence' or S[l-7:] == 'keyence':
        ans = 'YES'
    else:
        s = 'keyence'
        for i in range(1, 8):
            if S[:i] != s[:i]:
                break
        j = l - i
        if S[j:] == s[i-1:]:
            ans = 'YES'
        else:
            ans = 'NO'
    print(ans)

input = lambda: stdin.readline().rstrip()
main()
