if __name__ == '__main__':
    s = input()
    keyence = "keyence"
    for i in range(7):
        if s[:i] == keyence[:i] and s[-6+i:] == keyence[-6+i:]:
            print("YES")
            quit(0)

    print("NO")

