There are $$$n$$$ children who want to go to a Ferris wheel, and your task is to find a gondola for each child. Each gondola may have one or two children in it, and in addition, the total weight in a gondola may not exceed $$$x$$$. You know the weight of every child.
What is the minimum number of gondolas needed for the children?
The first input line contains two integers $$$n$$$ ($$$1 \leq n \leq 2\cdot 10^5$$$) and $$$x$$$ ($$$1 \leq x \leq 10^9$$$): the number of children and the maximum allowed weight.
The next line contains n integers $$$p_1,p_2,\ldots,p_n$$$ ($$$1 \leq p_i \leq x$$$): the weight of each child.
Print one integer: the minimum number of gondolas.
4 10 7 2 3 9
3