102291: [AtCoder]ABC229 B - Hard Calculation

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $200$ points

Problem Statement

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$

Output

If the calculation does not involve a carry, print Easy; if it does, print Hard.


Sample Input 1

229 390

Sample Output 1

Hard

When calculating $229+390$, we have a carry from the tens digit to the hundreds digit, so the answer is Hard.


Sample Input 2

123456789 9876543210

Sample 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.

Input

题意翻译

给定两个正整数 $a,b$ ,如果计算 $a+b$ 时发生了进位输出 `Hard` ,否则输出 `Easy` 。注意, $a,b≤10^{18}$ 。

Output

得分:200分 部分 问题描述 给你两个正整数 A 和 B 。 计算 A+B (以十进制表示)。 如果不涉及进位,则输出 Easy ;如果涉及进位,则输出 Hard 。 部分 约束 * A 和 B 是整数。 * 1≤A,B≤1018 输入输出格式 输入 从标准输入中以以下格式获取输入: A B 输出 如果不涉及进位,则输出 Easy ;如果涉及进位,则输出 Hard 。 样例输入 1 229 390 样例输出 1 Hard 当计算 229+390 时,我们从十位数向百位数有一个进位,因此答案是 Hard 。 样例输入 2 123456789 9876543210 样例输出 2 Easy 这里我们没有进位;答案是 Easy 。 请注意,输入可能不适合 32 位整数。

加入题单

算法标签: