You are in a book shop which sells n different books. You know the price and number of pages of each book.
You have decided that the total price of your purchases will be at most x. What is the maximum number of pages you can buy? You can buy each book at most once.
The first line contains two integers n(1≤n≤1000) and x(1≤x≤105): the number of books and the maximum total price.
The next line contains n integers h1,h2,...,hn(1≤hi≤1000): the price of each book.
The last line contains n integers s1,s2,...,sn(1≤si≤1000): the number of pages of each book.
Print one integer — the maximum number of pages.
You can buy books 1 and 3. Their price is 4+5=9 and the number of pages is 5+8=13.