Please reason step by step, and put your final answer within \boxed{}.
A library has x historical novels arranged on a shelf. On the first day, a people borrow b books each from the shelf. On the second day, c more books are borrowed from the shelf. In addition, d% of the borrowed books from the first day are returned on the second day. How many books are remaining on the shelf after the second day?
user