A. In Search of an Easy Problem
time limit per test

1 second

memory limit per test

256 megabytes

input

standard input

output

standard output

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 nn people about their opinions. Each person answered whether this problem is easy or hard.

If at least one of these nn 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 nn (1≤n≤1001≤n≤100) — the number of people who were asked to give their opinions.

The second line contains nn integers, each integer is either 00 or 11. If ii-th integer is 00, then ii-th person thinks that the problem is easy; if it is 11, then ii-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.

Examples
input

Copy
3
0 0 1
output

Copy
HARD
input

Copy
1
0
output

Copy
EASY

为了熟悉CF。忍了。。
#include<iostream>
#include<cstdlib>
using namespace std; int main(){
int n;
char* hard= "HARD";
char* easy= "EASY";
cin>>n;
for(int i=;i<n;i++){
int c;
cin>>c;
if(c==){
cout<<hard;
exit();
}
}
cout<<easy;
return ;
}

最新文章

  1. NodeJS Addon 多线程
  2. JS网站右下角悬浮视窗可关闭广告
  3. JAVA对文件类型的校验
  4. tr DEMO
  5. PowerDesigner跟表的字段加注释
  6. 开启.htaccess重写之前先来看看mod_rewrite(转)
  7. oracle REGEXP_SUBSTR实现字符串转列
  8. JS图标插件
  9. Python基础之列表
  10. Runtime of Objective-C
  11. 如何使用Flexbox和CSS Grid,实现高效布局
  12. CCF-201412-1-门禁系统
  13. KindEditor富文本编辑器使用
  14. Docker:从头开始基于CentOS-Minimal安装Docker
  15. java中的泛型与反射
  16. nodejs抓取页面内容,并分析有无某些内容的js文件
  17. Linux命令:xargs命令详解,xargs与管道的区别
  18. iconfont.cn批量加入
  19. 如何从jks文件中导出公私钥
  20. 【大数据】Zookeeper学习笔记

热门文章

  1. Primer C++第五版 读书笔记(一)
  2. BZOJ 2721: [Violet 5]樱花
  3. 使用百度siteapp开发网站的App-(IOS和Android版本)
  4. Redis 使用多个数据库及密码配置
  5. PHP 函数 ignore_user_abort()
  6. java EE技术体系——CLF平台API开发注意事项(4)——API生命周期治理简单说明
  7. 【Kubernetes】The connection to the server &lt;master&gt;:6443 was refused - did you specify the right host or port?
  8. 九度oj 题目1366:栈的压入、弹出序列
  9. BZOJ 4868 [Shoi2017]期末考试 ——三分 枚举
  10. Fiddler修改请求的参数,重新执行请求