import sys
def input(): return sys.stdin.readline().rstrip()

def main():
    s = input()
    KEYENCE = 'keyence'
    if s[:7] == KEYENCE or s[-7:] == KEYENCE:
        print('YES')
        exit()

    index = 0
    err = 0
    isCount = True
    ans = 'NO'
    for i, v in enumerate(list(s)):
        if v == KEYENCE[index]:
            index += 1
            isCount = True
            if index == 7:
                if i == len(s) - 1:
                    ans = 'YES'
                break
        elif isCount:
            err += 1
            isCount = False
            if err > 1:
                break
    print(ans)
    
if __name__ == '__main__':
    main()
