{"problem":{"name":"Can you buy them all?","description":{"content":"Takahashi's shop sells $N$ products. The usual price of the $i$\\-th product is $A_i$ yen (Japanese currency).   It has a bargain sale today, with a discount of $1$ yen off the usual prices for the $2$","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc209_b"},"statements":[{"statement_type":"Markdown","content":"Takahashi's shop sells $N$ products. The usual price of the $i$\\-th product is $A_i$ yen (Japanese currency).  \nIt has a bargain sale today, with a discount of $1$ yen off the usual prices for the $2$\\-nd, $4$\\-th, and the subsequent even-indexed products. The $1$\\-st, $3$\\-rd, and the subsequent odd-indexed products are sold for their usual prices.  \nYou have $X$ yen. Can you buy all the $N$ products with this money?\n\n## Constraints\n\n*   $1 \\leq N \\leq 100$\n*   $1 \\leq X \\leq 10000$\n*   $1 \\leq A_i \\leq 100$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$ $X$\n$A_1$ $A_2$ $\\ldots$ $A_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc209_b","tags":[],"sample_group":[["2 3\n1 3","Yes\n\nYou can buy the $1$\\-st product for $1$ yen and the $2$\\-nd product for $2$ yen, $1$ yen off the usual price. You have just enough money, $3$ yen, to buy both of them."],["4 10\n3 3 4 4","No\n\nYou can buy these four products for $3$ yen, $2$ yen, $4$ yen, and $3$ yen, respectively. You need $12$ yen to buy all of them, and since you have only $10$ yen, you cannot buy all of them."],["8 30\n3 1 4 1 5 9 2 6","Yes"]],"created_at":"2026-03-03 11:01:14"}}