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

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