def main():
    S = input()
    is_keyence = False
    string = "keyence"

    if S.find(string) != -1:
        is_keyence = True

    else:
        for i in range(1, len(string)):
            l = S.find(string[:i])

            if l == -1:
                continue

            r = S.find(string[i:], l + 1)
            
            if l != -1 and r != -1 :
                is_keyence = True
    
    if is_keyence:
        print("YES")
    else:
        print("NO")

if __name__ == "__main__":
    main()