All Zero Sequence
题号:NC216208
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
64bit IO Format: %lld

题目描述

You are given a sequence consisting of integers A_1,A_2,...,A_N. You can perform some operations on the sequence.
In one operation, you should do the following steps in order :
  • Choose an integer such that and , then decrease A_i. Decrease A_i means changing A_i to A_i-1.
  • For all integer such that and , decrease A_j.
For example, . In one operations, if you choose . After the first step, becomes . After the second step, becomes .

Now you are given an integer , your task is to determine if it is possible to make the sequence consists of   zeros in no more than operations.

输入描述:

The first line of the input contains two integers  and , denoting the length of the sequence  and the number of operations.
The second line of the input contains integers .

输出描述:

If it is possible to make the sequence  consists of  zeros in no more than  operations, print "Yes", otherwise print "No" (without quote).
示例1

输入

复制
2 3
2 2

输出

复制
Yes
示例2

输入

复制
2 2
2 2

输出

复制
No