Hard Calculation

AtCoder
IDabc229_b
Time2000ms
Memory256MB
Difficulty
You are given positive integers $A$ and $B$. Let us calculate $A+B$ (in decimal). If it does not involve a carry, print `Easy`; if it does, print `Hard`. ## Constraints * $A$ and $B$ are integers. * $1 \le A,B \le 10^{18}$ ## Input Input is given from Standard Input in the following format: $A$ $B$ [samples]
Samples
Input #1
229 390
Output #1
Hard

When calculating $229+390$, we have a carry from the tens digit to the hundreds digit, so the answer is `Hard`.
Input #2
123456789 9876543210
Output #2
Easy

We do not have a carry here; the answer is `Easy`.  
Note that the input may not fit into a $32$\-bit integer.
API Response (JSON)
{
  "problem": {
    "name": "Hard Calculation",
    "description": {
      "content": "You are given positive integers $A$ and $B$.   Let us calculate $A+B$ (in decimal). If it does not involve a carry, print `Easy`; if it does, print `Hard`.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc229_b"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given positive integers $A$ and $B$.  \nLet us calculate $A+B$ (in decimal). If it does not involve a carry, print `Easy`; if it does, print `Hard`.\n\n## Constraints\n\n*   $A$ and $B$ are integer...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments