P25321 [AtCoder] Score Distribution
普及
题目描述

Problem Description

You have created three problems for a certain contest. After discussion, the scoring for these problems has been decided as follows:

  • The score for the first problem will be either $ A $ points or $ A + 1 $ points.
  • The score for the second problem will be either $ B $ points or $ B + 1 $ points.
  • The score for the third problem will be either $ C $ points or $ C + 1 $ points.

Determine whether it is possible to set the total score for the three problems exactly to $ S $ points.

Input Format

The input is given from the standard input in the following format:

$ A $ $ B $ $ C $ $ S $

Output Format

If it is possible to set the total score for the three problems exactly to $ S $ points, output Yes. Otherwise, output No.

Sample Input and Output

Sample Input #1

3
5
10
20

Sample Output #1

Yes

Sample Input #2

10
8
15
30

Sample Output #2

No

Sample Input #3

1
3
5
50

Sample Output #3

No

Notes/Hints

Constraints

  • $1 \leq A, B, C \leq 20$
  • $1 \leq S \leq 60$
  • All input values are integers.

Sample Explanation 1

For example, by setting the scores for the first, second, and third problems to 3, 6, and 11 points respectively, you can achieve a total score of $ S = 20 $ points.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
3 5 10 20
样例输出
Yes