def insert_book(books,index,value):
  n=len(books)
  if index<0 or index>n:
    print("invalid input")
    return books
  books.insert(index,value)
  return books