This summer is very hot in KGP. As the hostel rooms do not have coolers or ACs, it's even more difficult for the students. So, the management has decided to install a cooler or an AC in some of the rooms.
There are N rooms in KGP. The management has alloted a budget of M units. There are N types of coolers and AC. But, there is only one quantity of each type. The cost of ith cooler is c[i] and the cost of ith AC is a[i]
The management wants to know what is the maximum number of rooms in which either AC or cooler can be installed.Input