In Search of an Easy Problem

TimeLimit:1000MS  MemoryLimit:256MB
64-bit integer IO format:%I64d
未提交 | 登录后收藏
Problem Description

When preparing a tournament, Codeforces coordinators try treir best to make the first problem as easy as possible. This time the coordinator had chosen some problem and asked n people about their opinions. Each person answered whether this problem is easy or hard.

If at least one of these  people has answered that the problem is hard, the coordinator decides to change the problem. For the given responses, check if the problem is easy enough.


Input

The first line contains a single integer n () — the number of people who were asked to give their opinions.

The second line contains n integers, each integer is either  or . If i-th integer is , then i-th person thinks that the problem is easy; if it is , then i-th person thinks that the problem is hard.


Output

Print one word: "EASY" if the problem is easy according to all responses, or "HARD" if there is at least one person who thinks the problem is hard.

You may print every letter in any register: "EASY", "easy", "EaSY" and "eAsY" all will be processed correctly.

SampleInput 1
3
0 0 1
SampleOutput 1
HARD
SampleInput 2
1
0
SampleOutput 2
EASY
Note

In the first example the third person says it's a hard problem, so it should be replaced.

In the second example the problem easy for the only person, so it doesn't have to be replaced.

Submit
题目统计信息详细
总AC数31
通过人数31
尝试人数31
总提交量39
AC率79.49%
AC该题后可以添加标签
贴完标签可以获得20ACB。
并且可以获得本题所有提交代码查看权限。
点击标题可以显示标签。
如果你还没认真思考过这题,请不要查看标签
如果您已经通过了该题,请务为该题贴上标签

T^T Online Judge

[BUG反馈] [FAQ] [闽ICP备17026590号-1]
当前版本:3.24 系统时间: