Oranges
Limits: 2 sec., 256 MiB
This statement was translated automatically from Ukrainian. In case of any discrepancy, the Ukrainian version is authoritative.
Children measure themselves by various things. In our problem — by oranges. Marichka and Sofiyka are measuring themselves against Petryk.
It is necessary to determine whether Marichka and Sofiyka together have more oranges than Petryk.
Input
The first and only line contains three integers \(a\), \(b\), and \(c\) — the number of oranges Marichka, Sofiyka, and Petryk have, respectively.
Output
In the single line, print the answer to the problem —
YES if the girls together have more oranges than Petryk, or
NO otherwise.
Constraints
\(1 \le a, b, c \le 10^9\).
Samples
| Input (stdin) | Output (stdout) |
|---|---|
| 3 5 7 | YES |
| Input (stdin) | Output (stdout) |
|---|---|
| 12 10 25 | NO |
Source: Шкільна олімпіада 2017
Submit a solution
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|