Two Coins

AtCoder
IDabc091_a
Time2000ms
Memory256MB
Difficulty
An elementary school student Takahashi has come to a variety store. He has two coins, $A$\-yen and $B$\-yen coins (yen is the currency of Japan), and wants to buy a toy that costs $C$ yen. Can he buy it? Note that he lives in Takahashi Kingdom, and may have coins that do not exist in Japan. ## Constraints * All input values are integers. * $1 \leq A, B \leq 500$ * $1 \leq C \leq 1000$ ## Input Input is given from Standard Input in the following format: $A$ $B$ $C$ [samples]
Samples
Input #1
50 100 120
Output #1
Yes

He has $50 + 100 = 150$ yen, so he can buy the $120$\-yen toy.
Input #2
500 100 1000
Output #2
No

He has $500 + 100 = 600$ yen, but he cannot buy the $1000$\-yen toy.
Input #3
19 123 143
Output #3
No

There are $19$\-yen and $123$\-yen coins in Takahashi Kingdom, which are rather hard to use.
Input #4
19 123 142
Output #4
Yes
API Response (JSON)
{
  "problem": {
    "name": "Two Coins",
    "description": {
      "content": "An elementary school student Takahashi has come to a variety store. He has two coins, $A$\\-yen and $B$\\-yen coins (yen is the currency of Japan), and wants to buy a toy that costs $C$ yen. Can he buy ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc091_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "An elementary school student Takahashi has come to a variety store.\nHe has two coins, $A$\\-yen and $B$\\-yen coins (yen is the currency of Japan), and wants to buy a toy that costs $C$ yen. Can he buy ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments