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 $n$ 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$ ($1 \le n \le 100$) — the number of people who were asked to give their opinions.

The second line contains $n$ integers, each integer is either $0$ or $1$. If $i$-th integer is $0$, then $i$-th person thinks that the problem is easy; if it is $1$, 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.


-----Examples-----
Input
3
0 0 1

Output
HARD

Input
1
0

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

Difficulty: EASY

Solutions:
n = int(input())
a = list(map(int, input().split()))
c = 0
for i in a:
	if i == 0:
		c = c + 1
if c == n:
	print('EASY')
else:
	print('HARD')


x = int(input())
ls = []
cou = 0
while True:
	inpt = input()
	ls = [int(i) for i in inpt.split(' ')]
	if len(ls) == x:
		break
for i in ls:
	if i == 1:
		cou += 1
if cou == 0:
	print('EASY')
else:
	print('HARD')


input()
for i in input():
	if i == '1':
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
answer = list(map(int, input().split()))
if 1 in answer:
	print('HARD')
else:
	print('EASY')


(n, s) = (int(input()), input())
if s.count('0') != n:
	print('HARD')
else:
	print('EASY')


people = int(input())
opinions = input()
if '1' in opinions.split():
	print('HARD')
else:
	print('EASY')


t = int(input())
arr = input()
arr = [int(x) for x in arr.split()]
if 1 in arr:
	print('HARD')
else:
	print('EASY')


input()
print('HARD' if sum(list(map(int, input().split()))) >= 1 else 'EASY')


input()
list_1 = list(filter(lambda x: x == '1', input().split()))
if list_1:
	print('HARD')
else:
	print('EASY')


n = input()
list_a = [i for i in map(int, input().split())]
if 1 in list_a:
	print('HARD')
else:
	print('EASY')


_ = input()
print('HARD') if sum([int(s) for s in input().split()]) else print('EASY')


a = int(input())
b = input().split()
bint = [int(item) for item in b]
if 1 in bint:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = input()
an = False
for i in range(len(s)):
	if i % 2 == 0:
		if s[i] == '0':
			b = False
		else:
			b = True
		an = an or b
if an == False:
	print('EASY')
else:
	print('HARD')


n = int(input())
t = 0
x = list(map(int, input().split()))
for i in range(n):
	if x[i] == 1:
		t = 1
if t == 0:
	print('EASY')
else:
	print('HARD')


input()
s = list(map(int, input().split()))
easy = True
for c in s:
	if c:
		easy = False
		break
if easy:
	print('EASY')
else:
	print('HARD')


s = int(input())
m = input()
l = m.split()
t = 0
if len(l) == s:
	for i in range(0, s):
		t += int(l[i])
	if t != 0:
		print('HARD')
	else:
		print('EASY')
else:
	print('Sorry, invalid input')


N = int(input())
A = list(map(int, input().split()))
if 1 in A:
	print('HARD')
else:
	print('EASY')


x = int(input())
y = input()
print('HARD' if y.find('1') != -1 else 'EASY')


_ = input()
res = [int(n) for n in input().split(' ')]
if sum(res) > 0:
	print('HARD')
else:
	print('EASY')


t = int(input())
x = list(map(int, input().split()))
if x.count(1) >= 1:
	print('HARD')
else:
	print('EASY')


x = int(input())
z = input()
if z.find('1') != -1:
	print('HARD')
else:
	print('EASY')


a1 = int(input())
a = list(map(int, input().split()))
if sum(a) > 0:
	print('HARD')
else:
	print('EASY')


input()
inp = input().split(' ')
match = False
for s in inp:
	if s == '1' and (not match):
		print('HARD')
		match = True
if not match:
	print('EASY')


n = int(input())
l = input().split()
if '1' in l:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(input().split())
if a.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input()
if a.find('1') > -1:
	print('HARD')
else:
	print('EASY')


n = int(input())
v = [int(t) for t in input().split()]
hard = int(0)
for i in range(0, n):
	if v[i] == 1:
		hard = 1
if hard == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
inp = list(map(int, input().split(' ')))
if inp.count(1) > 0:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = input()
k = 0
for i in range(2 * a - 1):
	if b[i] == '1' and k == 0:
		print('HARD')
		k += 1
if k == 0:
	print('EASY')


n = int(input())
opi = [x for x in input().split()]
if '1' in opi:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = input()
if l.find('1') > -1:
	print('HARD')
else:
	print('EASY')


def solve(answers):
	for i in answers:
		if i == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
answers = map(int, input().split(' '))
print(solve(answers))


n = int(input())
l = list(map(int, input().split(' ')))
val = 'EASY'
for i in range(n):
	if l[i] == 1:
		val = 'HARD'
		break
print(val)


n = int(input())
nums = list(map(int, input().split()))
if sum(nums) > 0:
	print('HARD')
else:
	print('EASY')


import sys, itertools, math
N = int(sys.stdin.readline())
A = [int(i) for i in sys.stdin.readline().strip().split(' ')]
if 1 in A:
	print('HARD')
else:
	print('EASY')


import sys
n = int(sys.stdin.readline())
a = list(map(int, sys.stdin.readline().split()))
for i in a:
	if i:
		print('HARD')
		exit(0)
print('EASY')


import sys
it = (int(x) for x in sys.stdin.read().split())
n = next(it)
for i in range(n):
	x = next(it)
	if x == 1:
		print('HARD')
		break
else:
	print('EASY')


a = int(input())
B = input().split()
c = 0
j = len(B)
for i in range(j):
	if B[i] == '1':
		c = 1
if c == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input().split(' ')
fa = sorted(a)
fb = fa[n - 1]
f = int(fb)
if f == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(input().split(' '))
l = [int(i) for i in l]
i = 1
if i in l:
	print('HARD')
else:
	print('EASY')


inp = input
li = list
iinp = lambda : int(inp())
ent = lambda : map(int, inp().split())
lient = lambda : li(ent())
n = ent()
dif = lient()
if sum(dif) == 0:
	print('EASY')
else:
	print('HARD')


input()
print('EHAASRYD'['1' in input()::2])


unneeded = input()
srch = input()
if '1' in srch:
	print('HARD')
else:
	print('EASY')


_ = int(input())
a = input().split()
print('EASY' if all((aa == '0' for aa in a)) else 'HARD')


n = int(input())
nList = [int(i) for i in input().split()]
if max(nList) == 1:
	print('HARD')
else:
	print('EASY')


num = input()
mylist = list(map(int, input().split()))
if sum(mylist) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
anss = input()
anss = anss.split(' ')
for i in range(n):
	if anss[i] == '1':
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
values = [int(i) for i in input().split()]
for i in range(n):
	c = values[i]
	if c == 0:
		status = 'EASY'
		pass
	else:
		status = 'HARD'
		break
print(status)


n = int(input())
x = input().split()
if x.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = input()
lst = input()
if '1' in lst:
	print('HARD')
else:
	print('EASY')


t = int(input())
str = [int(x) for x in input().split()]
if max(str) == 1:
	print('HARD')
else:
	print('EASY')


contestants = int(input())
difficulty = input().split(' ')
result = 0
for i in range(0, contestants):
	if difficulty[i] == '1':
		result = 1
if result == 0:
	print('EASY')
else:
	print('HARD')


pep = int(input())
pepres = 'HARD' if '1' in input() else 'EASY'
print(pepres)


o = int(input())
input_data = input()
list_we_use = input_data.split(' ')
final_list = []
for i in list_we_use:
	final_list.append(int(i))
if max(final_list) == 1:
	print('HARD')
else:
	print('EASY')


y = int(input())
i = input()
l = i.split(' ')
f = []
a = 0
for i in l:
	f.append(int(i))
for i in f:
	if i == 1:
		a += 1
if a > 0:
	print('HARD')
else:
	print('EASY')


inp = int(input())
a = map(int, input().split())
if sum(a) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
sm = 0
for i in a:
	sm += i
if sm > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
otv = input()
if '1' in otv:
	print('HARD')
else:
	print('EASY')


N = input()
A = list(map(int, input().split()))
if sum(A) == 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
A = map(int, input().split())
if max(A) >= 1:
	print('HARD')
else:
	print('EASY')


input1 = int(input())
input2 = list(input().split(' '))
if input1 <= 100 and len(input2) == input1:
	while True:
		if '1' in input2:
			print('HARD')
			break
		print('EASY')
		break


people = int(input())
answers = input()
if '1' in answers:
	print('HARD')
else:
	print('EASY')


def searchproblem():
	pessoas = int(input())
	respostas = [int(i) for i in input().split()]
	quantidade = 0
	for i in range(pessoas):
		if respostas[i] == 1:
			quantidade = +1
			i = +1
	if quantidade != 0:
		print('HARD')
	else:
		print('EASY')
searchproblem()


input()
arr = input().split(' ')
flag = 0
for i in arr:
	if i == '1':
		flag = 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
thinks = input().split()
isHard = False
for i in thinks:
	if i == '1':
		isHard = True
		break
if isHard:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
k = 0
for i in range(0, len(a)):
	if a[i] == 1:
		print('HARD')
		k = -1
		break
if a[i] == 0:
	print('EASY')


n = int(input())
k = list(map(int, input().split()))
counter = 0
for i in k:
	if i == 1:
		counter = 1
	else:
		pass
if counter == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().split(' ')))
ans = 'EASY'
for i in l:
	if i == 1:
		ans = 'HARD'
		break
print(ans)


n = int(input())
ls = list(map(int, input().rstrip().split()))
if 1 in ls:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = input()
b = b.split()
x = 0
for i in b:
	if i == '1':
		x = 1
		break
	else:
		x = 0
if x == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = list(map(int, input().split()))
ans = 'EASY'
for i in range(len(arr)):
	if arr[i] == 1:
		ans = 'HARD'
		break
print(ans)


input()
n = input().count('1')
if n > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
lst = [str(x) for x in input().split()]
if '1' in lst:
	print('HARD')
else:
	print('EASY')


def main(n, k):
	assert n > 0
	boo = True
	for i in k:
		boo = int(i) == 0 and boo
	return 'EASY' if boo else 'HARD'
n = int(input().strip(''))
k = list(map(int, input().strip(' ').split(' ')))
print(main(n, k))


def findStatus(answers):
	status = 'EASY'
	for answer in answers:
		if answer == 1:
			status = 'HARD'
	return status
t = int(input())
answers = input().split()
answers = list(map(int, answers))
status = findStatus(answers)
print(status)


def verifica(n):
	a = 'EASY'
	k = map(int, input().split())
	for i in k:
		if i > 0:
			a = 'HARD'
	return a
print(verifica(int(input())))


def main():
	input()
	votes = input().split(' ')
	for vote in votes:
		if vote == '1':
			return 'HARD'
	return 'EASY'
print(main())


n = int(input())
s = input()
if s.find('1') != -1:
	print('HARD')
else:
	print('EASY')


n = input()
x = input()
if '1' in x:
	print('HARD')
else:
	print('EASY')


num_inputs = int(input())
is_hard = False
num_list = input().split()
num_list = [int(n) for n in num_list]
if 1 in num_list:
	is_hard = True
if is_hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
answers = input().split()
hard = False
for answer in answers:
	if answer == '1':
		hard = True
		break
print('HARD' if hard else 'EASY')


import sys
i = sys.stdin.readlines()
o = 'EASY'
ii = i[1].strip().split(' ')
for s in ii:
	if s == '1':
		o = 'HARD'
print(o)


n = int(input())
arr = map(int, input().split())
flag = 0
for i in arr:
	if i == 1:
		flag = 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


k = input()
arr = input().split()
votedHard = False
for vote in arr:
	if int(vote) == 1:
		votedHard = True
if votedHard == False:
	print('EASY')
else:
	print('HARD')


m = int(input())
nums = list(map(int, input().split()))
if nums.count(1) >= 1:
	print('HARD')
else:
	print('EASY')


a = input()
a = input().split()
b = False
i = 0
while i < len(a):
	if a[i] == '1':
		print('HARD')
		b = True
		break
	i += 1
if not b:
	print('EASY')


n = int(input())
l = [int(x) for x in input().split()]
if l.count(1) != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input().split()
con = True
for i in a:
	ans = int(i)
	if con:
		con = con and (not ans)
if con:
	print('EASY')
else:
	print('HARD')


p = int(input())
rs = input().split(' ')
s = len(rs)

def easyOrHard():
	i = 0
	while i < s:
		if rs[i] == '1':
			print('HARD')
			return 0
		i += 1
	print('EASY')
easyOrHard()


n = int(input())
a = input().split()
ans = 'EASY'
for i in range(n):
	if a[i] == '1':
		ans = 'HARD'
print(ans)


x = int(input())
c = list(map(int, input().split(' ')))
print('HARD' if c.count(1) != 0 else 'EASY')


a = str(input(''))
a = int(a)
b = str(input(''))
x = b.split(' ')
flag = int(0)
for i in range(len(x)):
	num = int(x[i])
	if num == 0:
		y = 1
	else:
		flag = 1
if flag == 0:
	print('EASY')
else:
	print('HARD')


import sys
import math
import bisect
import re

def main():
	n = int(input())
	A = list(map(int, input().split()))
	if sum(A) == 0:
		print('EASY')
	else:
		print('HARD')
main()


n = int(input())
lst = input()
lst = lst.split()
FLAG = 0
for x in range(len(lst)):
	if lst[x] == '1':
		FLAG = 1
if FLAG == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
r = 'EASY'
for i in range(n):
	if a[i] == 1:
		r = 'HARD'
		break
print(r)


def search(x):
	if 1 in x:
		return 'HARD'
	else:
		return 'EASY'
n = input()
x = [int(x) for x in input().split()]
print(search(x))


k = input()
n = []
n = map(int, input().split())
if 1 in n:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input()
for i in '1':
	if i in a:
		print('HARD')
	else:
		print('EASY')


a = input()
b = input()
blist = b.split()
easy = True
for x in blist:
	if x == '1':
		easy = False
		break
if easy:
	print('EASY')
else:
	print('HARD')


n = int(input())
answers = [int(a) for a in input().split()]
if sum(answers) > 0:
	print('HARD')
else:
	print('EASY')


input()
print(['EASY', 'HARD'][any(map(int, input().split()))])


n = int(input())
arr = list(map(int, input().split()))
a = 'EASY'
for x in range(n):
	if arr[x] == 1:
		a = 'HARD'
print(a)


n = int(input())
s = 0
r = input()
r = r.split()
r = list(map(int, r))
for i in range(0, len(r)):
	s += r[i]
if 1 in r:
	print('HARD')
else:
	print('EASY')


t = int(input())
x = [int(p) for p in input().split()]
flag = 0
for i in range(len(x)):
	if x[i] == 1:
		flag = 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
b = True
for i in a:
	if i == 1:
		b = False
if b:
	print('EASY')
else:
	print('HARD')


n = int(input())
L = list(map(int, input().split()))
for i in range(n):
	if L[i] == 1:
		print('HARD')
		exit(0)
print('EASY')


n = int(input())
a = list(map(int, input().split()))
for e in a:
	if e == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
A = list(map(int, input().split()))
r = 1
if r in A:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(input())
if '1' in a:
	print('HARD')
else:
	print('EASY')


import sys
i = 0
for line in sys.stdin:
	if i == 0:
		pass
	if i == 1:
		if '1' in line:
			print('HARD')
		else:
			print('EASY')
	i += 1


a = int(input())
b = [int(x) for x in input().split(' ')]
easy = True
for i in range(0, a):
	if b[i] == 1:
		easy = False
		break
if easy:
	print('EASY')
else:
	print('HARD')


input()
print(['EASY', 'HARD']['1' in input()])


n = int(input())
a = list(map(int, input().split()))
f = 1
for i in range(n):
	if a[i] == 1:
		f = 0
		break
if f:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = input().split()
k = 0
for i in range(len(a)):
	if int(a[i]) == 1:
		k = 1
if k == 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
b = input().split()
r = len(b)
i = 0
c = 0
if r == a:
	for i in range(r):
		if b[i] == '1':
			c = 1
if c == 1:
	print('HARD')
else:
	print('EASY')


input()
a = input().split()
if '1' in a:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
a.sort()
if a[-1] == 0:
	print('EASY')
else:
	print('HARD')


n = input()
idea = list(map(int, input().split()))
m = 0
from functools import reduce
res = reduce(lambda x, y: x | y, idea)
print('HARD' if res else 'EASY')


from sys import stdin, stdout
n = stdin.readline()
l = {int(x) for x in stdin.readline().split()}
if 1 in l:
	stdout.write('HARD')
else:
	stdout.write('EASY')


n = int(input())
a = [int(x) for x in input().split()]

def main():
	for x in a:
		if x == 1:
			print('HARD')
			return
	print('EASY')
main()


n = int(input())
x = list(map(int, input().split()))
s = 1
if s in x:
	print('HARD')
else:
	print('EASY')


n = int(input())
sp = (int(i) for i in input().split())
if sum(sp) != 0:
	print('HARD')
else:
	print('EASY')


import sys
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
num = inp()
resp = inlt()
if resp.count(1):
	print('HARD')
else:
	print('EASY')


_ = int(input())
rates = input().split()
for i in rates:
	if i == '1':
		print('HARD')
		break
else:
	print('EASY')


numall = int(input())
l = map(int, input().split(' '))
for i in l:
	if i == 1:
		print('HARD')
		exit(0)
print('EASY')


n = int(input())
data = list(map(int, input().split()))
if data.__contains__(1):
	print('HARD')
else:
	print('EASY')


n = int(input())
g = list(map(int, input().split()))
print('EASY' if not 1 in g else 'HARD')


def is_hard(lvls):
	for lvl in lvls:
		if int(lvl) != 0:
			return print('HARD')
	return print('EASY')
numbeOflevels = input()
levels = input()
is_hard(levels.split())


n = int(input())
n = 0
inp = input().split()
for i in inp:
	if i == '1':
		n = 1
print('EASY' if not n else 'HARD')


N = int(input())
cin = input().split()
b = True
for i in range(N):
	if cin[i] == '1':
		b = False
if b:
	print('EASY')
else:
	print('HARD')


num = input()
ans = input().split()
for i in ans:
	if int(i) == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
s = map(int, input().split())
if sum(s) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
while not (1 <= n <= 100 and type(n) == int):
	n = int(input())
a = list(map(int, input().split()))
while not len(a) == n:
	a = list(map(int, input().split()))
if sum(a) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
vote = [int(x) for x in input().split()]
if sum(vote) >= 1:
	print('HARD')
else:
	print('EASY')


many = input()
value = input()
val = value.split()
if '1' in val:
	print('HARD')
else:
	print('EASY')


x = input()
y = list(map(int, input().split()))
if sum(y) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = list(map(int, input().split()))
arr.sort()
if arr[n - 1] == 1:
	print('HARD')
else:
	print('EASY')


x = input()
y = input()
if '1' in y:
	print('HARD')
else:
	print('EASY')


n = int(input())
mas = list(map(int, input().split()))
try:
	mas.index(1)
	print('HARD')
except:
	print('EASY')


input()
s = input()
print('HARD' if '1' in s else 'EASY')


x = input('')
x = int(x)
y = input('')
count = 0
for i in y:
	if i == '1':
		count = count + 1
if count > 0:
	print('HARD')
else:
	print('EASY')


for i in range(2):
	if i == 0:
		count = int(input())
	else:
		strg = input()
easy_or_hard = 'EASY'
array = strg.split(' ')
for i in range(count):
	if array[i] == '1':
		easy_or_hard = 'HARD'
		break
print(easy_or_hard)


input()
x = input()
if int(x.replace(' ', '')) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
array = str(input()).split(' ')
isHard = False
for i in range(n):
	if array[i] == '1':
		isHard = True
if isHard == True:
	print('HARD')
else:
	print('EASY')


n = int(input())
opinions = input().rstrip().split(' ')
if '1' in opinions:
	print('HARD')
else:
	print('EASY')


n = int(input())
n = [int(i) for i in input().split()]
for i in n:
	if i == 1:
		print('HARD')
		exit()
print('EASY')


def main():
	n = int(input())
	decision = list(map(int, input().split()))
	count_1 = decision.count(1)
	if count_1 > 0:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
a = map(int, input().split(maxsplit=n))
a = list(a)
for i in range(0, n):
	if a[i] == 1:
		print('HARD')
		break
	elif i == n - 1 and a[i] == 0:
		print('EASY')
		break


n = int(input())
o = list(map(int, input().split()))
flag = 0
for i in range(n):
	if o[i] == 1:
		flag = 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
f = 0
arr = list(map(int, input().split()))
for i in range(0, n):
	if arr[i] == 1:
		f = 1
		break
if f == 0:
	print('EASY')
elif f == 1:
	print('HARD')


t = int(input())
l = list(map(int, input().split(' ')))
s = 'EASY'
if 1 in l:
	s = 'HARD'
print(s)


n = int(input())
all = [int(i) for i in input().split()]
if 1 in all:
	print('HARD')
else:
	print('EASY')


strr = input()
strr2 = input()
ls = list()
boo = 0
ls = strr2.split()
for i in ls:
	i = int(i)
	if i == 1:
		boo = 1
if boo == 1:
	print('HARD')
else:
	print('EASY')


def check(marks):
	for elem in marks:
		if elem == '1':
			return 'HARD'
	return 'EASY'
n = int(input())
print(check(input().split()))


n = int(input())
list1 = input().split()
list2 = []
for i in list1:
	list2.append(int(i))
if list2 == [0] * n:
	print('EASY')
else:
	print('HARD')


def main():
	totalValues = input()
	opinions = map(int, input().split(' '))
	sumVal = sum(opinions)
	if sumVal > 0:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
k = map(int, input().split())
SumK = 0
for i in k:
	SumK += i
if SumK > 0:
	print('HARD')
else:
	print('EASY')


n = [int(i) for i in input().split()]
arr = [int(i) for i in input().split()]
if any(arr):
	print('HARD')
else:
	print('EASY')


_ = input()
arr = list(map(int, input().split()))
if arr.count(1) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
proms = list(map(int, input().split()))
if len(proms) == len([i for i in proms if i == 0]):
	print('EASY')
else:
	print('HARD')


n = int(input())
a = input()
b = a.split(' ')
b = [int(x) for x in b]
flag = False
for i in range(n):
	if b[i] == 1:
		print('HARD')
		flag = True
		break
if not flag:
	print('EASY')


nnnnnnn = int(input())
a = input() + ' '
(b, g) = ('', 'EASY')
A = []
for j in range(len(a)):
	if a[j] == ' ':
		A.append(int(b))
		if int(b) == 1:
			g = 'HARD'
		b = ''
	else:
		b += a[j]
print(g)


def main():
	n = int(input())
	difficulties = input()
	if '1' in difficulties:
		print('HARD')
	else:
		print('EASY')
main()


str1 = input()
list = input().split()
flag = 0
for i in range(0, int(str1)):
	if list[i] == '1':
		flag = 1
if flag:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = list(map(int, input().split()))
easy = True
for i in arr:
	if i:
		easy = False
if easy:
	print('EASY')
elif not easy:
	print('HARD')


n = int(input())
values = list(map(int, input().split(' ')))
ans = 'HARD' if 1 in values else 'EASY'
print(ans)


n = int(input())
opinions = [int(x) for x in input().split()]
for opinion in opinions:
	if opinion == 1:
		msg = 'HARD'
		break
	else:
		msg = 'EASY'
print(msg)


a = 0
a = int(input())
total = 'EASY'
check = input().split(' ')
for number in check:
	if int(number) == 1:
		total = 'HARD'
print(total)


def prosto_li(a):
	i = a.count('1', 0, len(a))
	if i == 0:
		return 'EASY'
	else:
		return 'HARD'
n = int(input())
a = input()
print(prosto_li(a))


nupe = int(input())
res = list(map(int, input().split()))
if all((i == 0 for i in res)):
	print('EASY')
else:
	print('HARD')


n = int(input())
m = list(map(int, input().split()))
if not any(m):
	print('EASY')
else:
	print('HARD')


def check(l):
	y = 0
	f = 0
	while y < len(l):
		if l[y] == '1':
			y += 101
			f = 1
		y += 1
	if f == 1:
		return 'HARD'
	else:
		return 'EASY'
n = int(input())
l = input().split()
print(check(l))


a = int(input())
k = 0
li = list(map(int, input().split()))
for i in range(a):
	if not li[i] == 0:
		k += 1
if k == 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
c = 0
list1 = [int(x) for x in input().split()]
for i in range(0, a):
	if list1[i] == 1:
		c = c + 1
		break
if c == 0:
	print('EASY')
else:
	print('HARD')


try:
	n = int(input())
	s = input()
	l = len(s)
	count = 0
	for i in range(l):
		if s[i] == '1':
			count += 1
	if count == 0:
		print('EASY')
	else:
		print('HARD')
except:
	pass


a = []
n = int(input())
s = input().split()
for i in range(n):
	a.append(int(s[i]))
x = sum(a)
if x == 0:
	print('EASY')
else:
	print('HARD')


people = int(input())
answer_list = list(map(str, input().split()))
count = 0
for item in answer_list:
	if item == '1':
		count += 1
	else:
		count += 0
if count != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
data = input().split()
test = 'EASY'
i = 0
while test == 'EASY' and i < n:
	if data[i] == '1':
		test = 'HARD'
	i += 1
print(test)


n = int(input())
a = [int(i) for i in input().split()]
if a.count(1) > 0:
	print('HARD')
else:
	print('EASY')


n_ = input()
n2 = map(int, input().split())
if 1 in n2:
	print('HARD')
else:
	print('EASY')


from sys import stdout
n = int(input())
scores = [int(x) for x in input().split()]
result = 'HARD' if 1 in scores else 'EASY'
stdout.write('{}\n'.format(result))


n = int(input())
a = []
a = input().split()
for i in range(n):
	a[i] = int(a[i])
s = False
for i in a:
	if i:
		s = True
if s:
	print('HARD')
else:
	print('EASY')


n = int(input())
sum = 0
l = list(map(int, input().split()))
for i in range(len(l)):
	sum += l[i]
if sum > 0:
	print('HARD')
else:
	print('EASY')


input()
print(['EASY', 'HARD'][input().count('1') > 0])


n = int(input())
x = input().split()
active = True
for value in x:
	if value == '0':
		pass
	else:
		active = False
		break
if active:
	print('EASY')
else:
	print('HARD')


n = int(input())
s = input()
if '1' in s:
	print('HARD')
else:
	print('EASY')


def function(n):
	mas = list(map(int, input().split()))
	l = 0
	for i in range(0, n):
		if mas[i] == 1:
			l = 1
	if l == 0:
		return 'EASY'
	if l == 1:
		return 'HARD'
n = int(input())
print(function(n))


import sys
i = 0
for line in sys.stdin:
	data = line.strip().split()
	if i == 1:
		if '1' in data:
			print('HARD')
			exit()
		else:
			print('EASY')
	i += 1


n = int(input())
data = input().split()
print('EASY' if '1' not in data else 'HARD')


n = int(input())
p = input()
p = p.split()
d = 0
for i in range(n):
	if p[i] == '1':
		d = 1
		break
if d == 1:
	print('HARD')
else:
	print('EASY')


def main():
	from sys import stdout
	n = int(input())
	lis = map(int, input().split())
	res = 'EASY'
	for el in lis:
		if el == 1:
			res = 'HARD'
	stdout.write(res)
main()


m = int(input())
k = input()
e = k.split(' ')
c = []
for i in e:
	c.append(int(i))
if max(c) == 1:
	print('HARD')
else:
	print('EASY')


def main():
	l = input()
	for c in input().split(' '):
		if c != '0':
			print('HARD')
			return
	print('EASY')
main()


n = int(input())
a = list(map(int, input().split()))
for i in range(n):
	if a[i] == 1:
		print('HARD')
		quit()
print('EASY')


def main():
	numeroOpiniones = int(input(''))
	opiniones = input('')
	lista = list(opiniones)
	length = len(lista)
	for x in range(length):
		letra = lista[x]
		if letra == '1':
			print('HARD')
			return
		elif x == length - 1:
			print('EASY')
main()


a = int(input())
c = 0
b = [int(n) for n in input().split(' ', a - 1)]
for i in b:
	if i == 1:
		c += 1
if c >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = [int(i) for i in input().split()]
c = 0
for i in l:
	if i == 1:
		c = 1
		print('HARD')
		break
if c == 0:
	print('EASY')


input()
print('EASY') if all([e == 0 for e in map(int, input().split())]) else print('HARD')


def main():
	l1 = int(input())
	s = input()
	if '1' in s:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
new_list = []
str = input()
new_list = str.split()
new_list = [int(i) for i in new_list]
if any(new_list) != 0:
	print('HARD')
else:
	print('EASY')


a = input()
b = input()
b = b.split(' ')
c = 0
for i in b:
	if i == '1':
		c = 1
		print('HARD')
		break
if c == 0:
	print('EASY')


n = int(input())
a = input().split()
if '1' in a:
	print('HARD')
else:
	print('EASY')


k = int(input(''))
input_list = input('').split()

def difficulty():
	for i in range(k):
		if input_list[i] != '0':
			return False
	return True
if difficulty():
	print('EASY')
else:
	print('HARD')


n = int(input())
per = list(map(int, input().split()))
for i in range(n):
	if per[i] == 1:
		nm = 'HARD'
		break
	else:
		nm = 'EASY'
print(nm)


a = int(input())
A = [int(i) for i in input().split()]
x = 0
for i in range(a):
	if A[i] == 1:
		print('HARD')
		x += 1
		break
if x == 0:
	print('EASY')


import sys
args = sys.stdin.readlines()
number_of_ppl = args[0]
peoples_answers = args[1]
peoples_answers = peoples_answers.replace('\n', '')
if '1' in peoples_answers.split(' '):
	print('HARD')
else:
	print('EASY')


N = int(input())
print('EHAASRYD'[sum(list(map(int, input().split()))) > 0::2])


n = int(input())
text = input().split()
li = [int(i) for i in text]
c = li.count(1)
if c == 0:
	print('EASY')
else:
	print('HARD')


def values(string):
	if 1 in string:
		return 'HARD'
	else:
		return 'EASY'
n = int(input())
string = list(map(int, input().split()))
print(values(string))


c = 0
n = int(input())
arr = [int(n) for n in input().split()]
for i in range(len(arr)):
	if arr[i] == 1:
		c += 1
if c == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
i = set(input().strip())
if n >= 1:
	if '1' in i:
		print('HARD')
	else:
		print('EASY')
else:
	print('WACK')


x = int(input())
j = list(map(int, input().split()))
c = 0
for i in range(x):
	if j[i] == 0:
		c += 1
if c == x:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = list(map(int, input().split()))
fl = True
for i in range(n):
	if a[i] == 1:
		fl = False
		break
if fl:
	print('EASY')
else:
	print('HARD')


l = int(input())
arr = list(map(int, input().split()))
count = 0
for i in range(0, l):
	if arr[i] == 0:
		count = count + 1
if count == l:
	print('EASY')
else:
	print('HARD')


n = int(input())
arr = [int(i) for i in input().split()]
if arr.count(1) >= 1:
	print('HARD')
else:
	print('EASY')


def solution(arr):
	for x in arr:
		if x == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
k = list(map(int, input().split()))
print(solution(k))


x = int(input())
c = 0
b = input()
if '1' in b:
	c = 1
if c == 1:
	print('HARD')
else:
	print('EASY')


import sys
easyinput = sys.stdin.read().split()
result = 'EASY'
for i in range(0, int(easyinput[0])):
	if easyinput[i + 1] == '1':
		result = 'HARD'
print(result)


n = int(input())
command = input().split()
result = ['HARD' for item in command if item == '1']
try:
	print(result[0])
except IndexError:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))[:n]
k = l.count(1)
if k >= 1:
	print('HARD')
else:
	print('EASY')


n = input()
n1 = input()
if '1' in n1:
	print('HARD')
else:
	print('EASY')


n = int(input())
k = list(map(int, input().split()))
if sum(k):
	print('HARD')
else:
	print('EASY')


a = int(input())
b = input().split()
f = 0
for i in b:
	if i == '1':
		print('HARD')
		f = 1
		break
if f == 0:
	print('EASY')


def main():
	_ = int(input())
	answers = [int(x) for x in input().split()]
	if 1 in answers:
		print('HARD')
	else:
		print('EASY')
main()


no = input()
nos = input()
nos = nos.split(' ')
result = 'EASY'
for i in nos:
	if i == '1':
		result = 'HARD'
print(result)


n = int(input())
x = list(map(int, input().split()))
x = sorted(x)
if x[-1]:
	print('HARD')
else:
	print('EASY')


input()
for i in input().split():
	if i == '1':
		print('HARD')
		exit()
print('EASY')


number = int(input())
x = input()
HaE = x.split()
y = HaE.count('1')
if y > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
ans = 'EASY'
for i in range(n):
	if a[i]:
		ans = 'HARD'
print(ans)


n = int(input())
answers = input().split()
if '1' in answers:
	print('HARD')
else:
	print('EASY')


t = input()
p = list(map(int, input().split()))
if 1 in p:
	print('HARD')
else:
	print('EASY')


n = int(input())
T = list((int(i) for i in input().split()))
Test = True
for i in range(0, n):
	if T[i] == 1:
		Test = False
if Test == True:
	print('EASY')
else:
	print('HARD')


n = int(input())
s = []
s[:n] = map(int, input().split())
a = 0
for i in s:
	if i == 1:
		print('HARD')
		a = 1
		break
if a == 0:
	print('EASY')


n = int(input())
ok = list(map(int, input().strip().split()))[:n]
if 1 in ok:
	print('HARD')
elif 1 not in ok:
	print('EASY')


n = int(input())
easy = input().split()
count = 0
for num in easy:
	if num == '0':
		count += 1
if count == n:
	print('EASY')
else:
	print('HARD')


x = input()
y = input().split(' ')
a = 'EASY'
for i in y:
	if int(i) == 1:
		a = 'HARD'
		break
print(a)


x = int(input())
y = input().split()
res = 0
for i in y:
	if i == '1':
		res += 1
	else:
		continue
if int(res) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
i = list(map(int, input().strip().split()))[:n]
if any(i) == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
easy = True
l = input()
if '1' in l:
	easy = False
if easy:
	print('EASY')
else:
	print('HARD')


n = int(input())
s = input()
mark = False
for e in s:
	if e == '1':
		mark = True
		break
if mark:
	print('HARD')
else:
	print('EASY')


from typing import List

def solve(a: List[int]) -> int:
	for x in a:
		if x == 1:
			return 'HARD'
	return 'EASY'
input()
print(solve(list(map(int, input().split()))))


b = 'EASY'
a = []
n = int(input())
a = list(map(int, input().split()))
for j in range(n):
	if a[j] == 1:
		b = 'HARD'
print(b)


n = int(input())
a = list(map(int, input().split()))
for i in a:
	if i == 1:
		print('HARD')
		exit()
print('EASY')


a = int(input())
s = [int(s) for s in input().split()]
x1 = 0
for i in s:
	if i == 1:
		x1 = 1
if x1 == 1:
	print('HARD')
elif x1 == 0:
	print('EASY')


a = int(input())
x = [int(num) for num in input().split()]
r = sum(x)
if r > 0:
	print('HARD')
else:
	print('EASY')


hard = int(0)
i = int(input())
n = int()
k = input()
for f in k:
	if f == '1':
		hard = 1
if hard == 1:
	print('HARD')
else:
	print('EASY')


length = int(input())
arr = [i for i in input().split()]
for j in range(length):
	if arr[j] == '1':
		print('HARD')
		break
else:
	print('EASY')


w = int(input())
p = input().split()
a = list(set(p))
if len(a) == 2:
	print('HARD')
elif len(a) == 1:
	if int(a[0]) == 0:
		print('EASY')
	elif int(a[0]) == 1:
		print('HARD')


from sys import stdin, stdout
stdin.readline()
s = sum(map(int, stdin.readline().rstrip().split()))
stdout.write('HARD' if s > 0 else 'EASY')


n = int(input())
s = input()
for i in range(0, n * 2 - 1, 2):
	if s[i] == '1':
		print('HARD')
		break
else:
	print('EASY')


m = int(input())
n = list(map(int, input().split()))
k = 0
for i in n:
	if i == 1:
		k = 1
		break
if k == 1:
	print('HARD')
else:
	print('EASY')


from functools import reduce

def read_int_list():
	return list(map(int, input().split(' ')))
_ = input()
input_list = read_int_list()
print('EASY' if reduce(lambda x, y: x + y, input_list) == 0 else 'HARD')


a = int(input())
b = list(map(int, input().split()))
x = 0
z = True
while z != False and x != a:
	if b[x] == 1:
		z = False
	else:
		x += 1
if z == False:
	print('HARD')
else:
	print('EASY')


x = int(input())
y = list(map(int, input().split(' ')))
for i in y:
	if i == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
a = []
p = 0
s = input()
a = s.split()
for i in range(n):
	if a[i] == '1':
		p = 1
if p == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
test = input()
if '1' in test:
	print('HARD')
else:
	print('EASY')


n = int(input())
numbers = [int(n) for n in input().split()]
if 1 in numbers:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
for x in a:
	if x == 1:
		print('HARD')
		exit(0)
print('EASY')


n = int(input())
a = [int(x) for x in input().split()]
for i in range(n):
	if a[i] == 1:
		print('HARD')
		break
else:
	print('EASY')


def r(t=int):
	return list(map(t, input().split()))

def ri(t=int):
	return t(input())

def cd(it):
	ret_val = dict()
	for v in it:
		ret_val[v] = ret_val.get(v, 0) + 1
	return ret_val
n = ri()
print('HARD' if any(r()) else 'EASY')


n = int(input())
b = False
j = [int(x) for x in input().split()]
for i in j:
	if i == 1:
		b = True
		break
if b:
	print('HARD')
else:
	print('EASY')


import sys
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
n = inp()
out = 'EASY'
for ele in invr():
	if ele == 1:
		out = 'HARD'
print(out)


n = int(input())
arr = [int(i) for i in input().split(' ', n)]
num = 0
for i in range(int(n)):
	if int(arr[i]) == 1:
		num += 1
if num >= 1:
	print('HARD')
if num == 0:
	print('EASY')


def solve():
	n_man = int(input())
	peoples = list(map(int, input().split()))
	if sum(peoples) > 0:
		print('HARD')
	else:
		print('EASY')
solve()


noOfPeople = input()
listOfPeople = input().split()
for p in listOfPeople:
	if p == '1':
		found = True
		print('HARD')
		break
try:
	found
except NameError:
	print('EASY')


h = int(input())
arr = [int(x) for x in input().split(' ')]
hn = False
for x in range(0, h):
	if arr[x] == 1:
		hn = True
		break
if hn:
	print('HARD')
else:
	print('EASY')


k = input()
n = input()
if n.find('1') == -1:
	print('EASY')
else:
	print('HARD')


n = int(input())
replies = list(map(int, input().split()[:n]))
temp = 0
for i in replies:
	if i % 2 == 1:
		temp = 1
		break
if temp == 1:
	print('HARD')
else:
	print('EASY')


a = int(input())
hard = False
n = 0
c = input()
while n < len(c):
	if c[n] == '1':
		hard = True
		break
	n = n + 2
if hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
res = input().split(' ')
if int(max(res)) == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = input().split()
count1 = 0
count2 = 0
for i in s:
	if i == '0':
		count1 += 1
	else:
		count2 += 1
if count2 > 0:
	print('HARD')
else:
	print('EASY')


input()
if any(map(lambda x: x == '1', input().split())):
	print('HARD')
else:
	print('EASY')


n = input()
flagList = [int(x) for x in input().split()]
hard = 0
for x in flagList:
	if x == 1:
		hard = 1
		break
if hard == 1:
	print('HARD')
else:
	print('EASY')


a = int(input())
y = 9
i = 0
b = str(input())
while i < 2 * a - 1:
	if int(b[i]) == 1:
		y = -1
	i = i + 2
if y == -1:
	print('HARD')
else:
	print('EASY')


a = int(input())
arr = list(map(int, input().split()))
rez = 'EASY'
for i in range(a):
	if arr[i] == 1:
		rez = 'HARD'
print(rez)


import sys

def func() -> str:
	lines = []
	while True:
		try:
			lines.append(input())
		except EOFError:
			break
	cntPeople = int(lines[0])
	inputedList = lines[1].split()
	isHard = False
	if len(inputedList) != cntPeople:
		return 'ERROR::OutOfIndex'
	for i in range(cntPeople):
		if int(inputedList[i]) != 0:
			isHard = True
			break
	if isHard:
		return 'HARD'
	else:
		return 'EASY'
print(func())


c = input()
c = int(c)
c1 = [int(n) for n in input().split()]
c2 = 1
for i in c1:
	if i == 1:
		c2 = 0
if c2 == 0:
	print('HARD')
else:
	print('EASY')


N = int(input())
compList = map(int, input().split())
if 1 in compList:
	print('HARD')
else:
	print('EASY')


n = int(input())
j = input()
if j.find('1') == -1:
	print('EASY')
else:
	print('HARD')


import math
import os
import random
import re
import sys
num = int(input())
opinions = list(input().split(' '))
n = 0

def easyproblem(a, b):
	if '1' in b:
		print('HARD')
	else:
		print('EASY')
easyproblem(num, opinions)


n = int(input())
opinion = input()
if len(opinion.split('1')) > 1:
	print('HARD')
else:
	print('EASY')


input()
if sum(map(int, input().split())) > 0:
	print('HARD')
else:
	print('EASY')


isDebug = False
n = int(input())
a = [int(x) for x in input().split()]
isHard = False
for x in a:
	if x == 1:
		isHard = True
		break
print(f"{('HARD' if isHard else 'EASY')}")


input()
x = list(map(int, input().strip().split()))
if 1 in x:
	print('HARD')
else:
	print('EASY')


n = int(input())
p = [i for i in input().split()]
s = 'EASY'
for i in p:
	if i == '1':
		s = 'HARD'
		break
print(s)


n = int(input())
arr = input().split()
sum = 0
for i in range(len(arr)):
	sum += int(arr[i])
if sum > 0:
	print('HARD')
else:
	print('EASY')


p = int(input())
a = list(map(int, input().split()))
exists = 1 in a
if exists == True:
	print('HARD')
else:
	print('EASY')


line_1 = int(input())
line_2 = input()
s = 0
for e in line_2:
	if e == '1':
		s = 1
if s == 1:
	print('HARD')
if s == 0:
	print('EASY')


n = input()
answers = input()
answers = answers.split(' ')
s = 0
for i in answers:
	s += int(i)
if s != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(s) for s in input().split(' ')]
i = 0
while i != n and a[i] != 1:
	i += 1
if i == n:
	print('EASY')
else:
	print('HARD')


peopnum = int(input())
jlist = input()
if jlist.count('1') == 0:
	print('EASY')
else:
	print('HARD')


input()
x = input().split(' ')
y = 0
for k in x:
	y = y + int(k)
if y == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
flag = False
for i in input():
	if i == '1':
		flag = True
print('HARD' if flag else 'EASY')


a = input()
b = input().strip(' ')
if '1' in b:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = set(map(lambda x: int(x), input().split()))
if 1 in s:
	print('HARD')
else:
	print('EASY')


top = int(input())
res = list(map(int, input().split()))
flag = True
for response in res:
	if response == 1:
		flag = False
		break
if flag == True:
	print('EASY')
else:
	print('HARD')


n = eval(input())
x = input().split()
count = 0
for i in range(0, n):
	if x[i] == '0':
		count += 1
	continue
if count == n:
	print('EASY')
else:
	print('HARD')


n = int(input())
r = input().split()
responses = [int(item) for item in r]
try:
	if responses.index(1) != -1:
		print('HARD')
except:
	print('EASY')


_ = input()
l = map(int, input().split())
if any(l):
	print('HARD')
else:
	print('EASY')


unlucky = input()
print('EASY' if not any(map(int, input().split())) else 'HARD')


n = int(input())
s = input().split()
string = ''.join(s)
if '1' in string:
	print('HARD')
else:
	print('EASY')


n = int(input())
numbers = list(map(int, input().split()))
isHard = False
for i in range(n):
	if numbers[i] == 1:
		isHard = True
		break
if isHard:
	print('HARD')
else:
	print('EASY')


input()
a = list(map(int, input().split()))
if 1 in a:
	print('HARD')
else:
	print('EASY')


n = int(input())
str = input()
mp = str.split(' ')
list = list(map(int, mp))
flag = 0
for i in list:
	if i == 1:
		flag = 1
		break
print('HARD') if flag == 1 else print('EASY')


i = int(input())
opinion = [int(i) for i in input().split()]
if 1 in opinion:
	print('HARD')
else:
	print('EASY')


a = int(input())
s = input().split(' ')
c = 0
for i in range(a):
	if s[i] == '1':
		c += 1
if c != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
x = list(map(int, input().split()))
print((max(x) >= 1) * 'HARD' or (max(x) < 1) * 'EASY')


n = int(input())
num = tuple(map(int, input().split()))
if 1 in num:
	print('HARD')
else:
	print('EASY')


n = int(input())
ans = input().split()
if int(max(ans)) == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
flg = False
arr = input().split()
for i in range(n):
	if int(arr[i]) == 1:
		flg = True
if flg:
	print('HARD')
else:
	print('EASY')


numberOfPeople = int(input())
valuations = list(map(int, input().split()[:numberOfPeople]))
print('HARD' if any(valuations) else 'EASY')


n = int(input())
x = list(map(str, input().strip().split()))
x = ''.join(x)
if '1' in x:
	print('HARD')
else:
	print('EASY')


import sys
inp = sys.stdin.readline
(a, b) = (inp(), list(map(int, inp().strip().split())))
a = sum(b)
if a:
	print('HARD')
else:
	print('EASY')


n = input()
h = False
ap = input().split(' ')
for i in ap:
	if int(i) == 1:
		h = True
		break
if h == True:
	print('HARD')
else:
	print('EASY')


def main():
	n = int(input())
	a = []
	variables = input().split()
	for i in range(n):
		a.append(int(variables[i]))
	if sum(a) != 0:
		print('HARD')
	else:
		print('EASY')
main()


def solve():
	input()
	opinions = input().split()
	for opinion in opinions:
		if opinion == '1':
			print('HARD')
			return
	print('EASY')
solve()


def main():
	num = int(input())
	answers = [int(i) for i in input().split()]
	if 1 in answers:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
asking = input().split()
count = 0
for response in asking:
	if response == '1':
		count += 1
if count == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
res = input()
res = res.split(' ')
if '1' in res:
	print('HARD')
else:
	print('EASY')


n = input()
line = input()
str1 = line.find('1') == -1 and 'EASY' or 'HARD'
print(str1)


n = int(input(''))
l = list(map(int, input().split()))
h = l.count(1)
if h > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
k = 0 * n
k = list(map(int, input().split()))
if max(k) == 1:
	print('HARD')
else:
	print('EASY')


zahl = int(input())
typ = input()
typlist = typ.split()
ez = 0
for i in range(0, zahl):
	if typlist[i] == '0':
		pass
	else:
		ez = 1
		break
if ez == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
s = input()
s = s.split()
d = 0
lis = list()
for i in s:
	i = int(i)
	lis.append(i)
d = sum(lis)
if d > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = list(map(int, input().split()))
f = True
for i in range(n):
	if s[i] == 1:
		f = False
		break
if f == False:
	print('HARD')
else:
	print('EASY')


n = int(input())
i = []
a = map(int, input().split())
b = sum(a)
if b >= 1:
	print('HARD')
elif b == 0:
	print('EASY')


n = input()
k = input().split(' ')
done = False
for a in k:
	if a == '1':
		done = True
		break
if done:
	print('HARD')
else:
	print('EASY')


n = int(input())
k = set(input().split())
c = None
for i in k:
	if i == '1':
		c = 1
if c is not None:
	print('HARD')
else:
	print('EASY')


import sys
for integer in list(sys.stdin)[1]:
	if integer == '1':
		print('HARD')
		break
else:
	print('EASY')


N = int(input(''))
x = list(map(int, input('').split()))
Level = True
for i in x:
	if i == 0:
		Level = Level and True
	else:
		Level = False
		break
if Level is True:
	print('EASY')
else:
	print('HARD')


n = int(input())
if sum([int(x) for x in input().split()]) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = [int(x) for x in input().split()]
b = 0
for j in range(n):
	if a[j] == 1:
		b = 1
if b == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
m = list(map(int, input().split()))
fl = True
for i in m:
	if i == 1:
		fl = False
if fl:
	print('EASY')
else:
	print('HARD')


n = int(input())
l = list(map(int, input().split()))
k = 0
for i in l:
	if i == 1:
		print('HARD')
		break
	elif i == 0:
		k += 1
if k == len(l):
	print('EASY')


n = input()
if sum(list(map(int, input().split()))):
	print('HARD')
	exit(0)
print('EASY')


n = int(input())
a = list(map(int, input().split()))
nc = True
for i in range(0, len(a)):
	if a[i] == 1:
		nc = False
		print('HARD')
		break
if nc == True:
	print('EASY')


persons = int(input())
x = input().split()
flag = False
for i in range(persons):
	if int(x[i]) == 1:
		print('HARD')
		flag = True
		break
if flag == False:
	print('EASY')


import math
from collections import *
import sys
from functools import reduce

def get_ints():
	return map(int, input().strip().split())

def get_list():
	return list(get_ints())

def getlistofstring():
	return list(input().strip().split())

def printxsp(*args):
	return print(*args, end='')

def printsp(*args):
	return print(*args, end=' ')
UGLYMOD = int(1000000000.0) + 7
SEXYMOD = 998244353
MAXN = int(100000.0)
n = input()
A = reduce(lambda x, y: x | y, get_list())
print('HARD' if A else 'EASY')


a = int(input())
b = [int(i) for i in input().split(' ')]
try:
	b.index(1)
	print('HARD')
except:
	print('EASY')


i1 = int(input())
i2 = list(map(int, input().split()))
if 1 in i2:
	print('HARD')
else:
	print('EASY')


people_count = input()
votes = input()
print('HARD' if '1' in votes else 'EASY')


a = int(input())
b = list(map(int, input().split(' ')))
for i in b:
	if i == 1:
		break
if i == 1:
	print('HARD')
else:
	print('EASY')


def iseasy(n):
	if 1 in n:
		return 'HARD'
	else:
		return 'EASY'
_ = input()
n = list(map(int, input().strip().split(' ')))
print(iseasy(n))


def mCheckInputs(inputList):
	if len(inputList[1]) == int(inputList[0]) and 1 <= int(inputList[0]) <= pow(10, 2) and inputList[0].isdigit():
		pass
	else:
		exit(1)

def mHandleInputs(inputList):
	try:
		n = input()
		peopleList = list(map(int, input().split()))
		if len(peopleList) == 0:
			exit(1)
		inputList.append(n)
		inputList.append(peopleList)
		mCheckInputs(inputList)
	except ValueError as e:
		exit(1)

def mDoWork(inputList, outputList):
	n = inputList[0]
	peopleList = inputList[1]
	result = 'HARD' if peopleList.count(1) else 'EASY'
	outputList.append(result)

def mFormatResult(outputList):
	print(outputList[0])

def main():
	inputList = []
	mHandleInputs(inputList)
	outputList = []
	mDoWork(inputList, outputList)
	mFormatResult(outputList)
main()


n = int(input())
A = list(map(int, input().split()))
flag = 0
for i in range(len(A)):
	if A[i] == 1:
		print('HARD')
		flag += 1
		break
if flag == 0:
	print('EASY')


input()
print('EASY' if all((x == '0' for x in input().split())) else 'HARD')


a = int(input())
b = input()
c = b.split(' ')
d = []
abc = 0
for i in c:
	d.append(int(i))
for i in d:
	if i == 1:
		abc += 1
if abc > 0:
	print('HARD')
else:
	print('EASY')


def main(x):
	op = map(int, input().split())
	if 1 in op:
		print('HARD')
	else:
		print('EASY')
	x = 'Just for show'
n = input()
main(n)


n = int(input())
n1 = [int(i) for i in input().split()]
n1.sort(reverse=True)
for i in n1:
	if i == 1:
		print('HARD')
		break
	else:
		print('EASY')
		break


n = int(input())
a = input()
flag = 'EASY'
l = a.split()
for items in l:
	if items == '1':
		flag = 'HARD'
print(flag)


n = int(input())
opinion = list(map(int, input().split()))
one_count = opinion.count(1)
print('HARD' if one_count >= 1 else 'EASY')


n = int(input())
nums = list(map(int, input().split()))
is_easy = True
for i in nums:
	if i == 1:
		is_easy = False
		break
if is_easy:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = list(map(int, input().split()))
if sum(a) > 0:
	print('HARD')
elif sum(a) == 0:
	print('EASY')


def f(p, ans):
	for _ in range(p):
		if ans[_] is '1':
			print('HARD')
			return
	print('EASY')
p = int(input())
ans = input().split()
f(p, ans)


length = input()
responses = input().split(' ')
if responses.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
hard = 0
inn = input()
for i in range(n):
	op = int(inn.split()[i])
	if op != 0:
		hard = 1
		break
if hard == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
diff = list(map(int, input().split()))
assert n == len(diff)
print('HARD' if 1 in diff else 'EASY')


n = int(input())
l = list(map(int, input().split()))[:n]
k = []
for i in l:
	if i == 1:
		k.append('HARD')
		break
	else:
		k.append('EASY')
print(k[-1])


n = eval(input())
x = input().split()
i = 0
ce = 0
ch = 0
while i < n:
	if int(x[i]) == 0:
		ce += 1
	if int(x[i]) == 1:
		ch += 1
	i += 1
if ch >= 1:
	print('HARD')
else:
	print('EASY')


g = int(input())
n = list(input())
for i in range(g):
	if n.count('1') != 0:
		print('HARD')
	else:
		print('EASY')
	break


import sys

def in_search_of_an_easy_problem(answers):
	for answer in answers:
		if answer == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
answers = map(int, input().split(' '))
print(in_search_of_an_easy_problem(answers))


num = int(input())
l = input().split(' ')
if l.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = str(input())
l = s.split(' ')
flag = 0
for item in l:
	if item == '1':
		flag = 1
		break
else:
	flag = 0
if flag == 1:
	print('HARD')
else:
	print('EASY')


i1 = int(input())
i2 = list(map(int, input().split()))
if i2.count(1) == 0:
	print('EASY')
else:
	print('HARD')


input()
print(['HARD', 'EASY'][sum(map(int, input().split())) == 0])


T = input()
inp = input().split()
hard = False
for i in range(int(T)):
	if int(inp[i]):
		hard = True
		break
if hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
f = 0
b = input()
if '1' in b:
	f = 1
if f == 1:
	print('HARD')
else:
	print('EASY')


def main():
	n = input()
	lst = input()
	n = int(n)
	answer = easy_or_hard(lst)
	print(answer)

def easy_or_hard(lst):
	for item in lst:
		if item == '0':
			pass
		elif item == '1':
			return 'HARD'
	return 'EASY'
main()


n = int(input())
choice = list(map(int, input().split()))
if choice.count(0) == n:
	print('EASY')
else:
	print('HARD')


def main():
	a = int(input())
	for x in list(map(int, input().split())):
		if x:
			print('HARD')
			return
	print('EASY')
main()


from sys import stdin, stdout
n = int(stdin.readline())
a = [x for x in stdin.readline().split()]
if '1' in a:
	print('HARD')
else:
	print('EASY')


excess = input()
n = input()
n = n.split()
easy = True
for i in n:
	if int(i):
		easy = False
		break
	else:
		easy = True
if easy:
	print('EASY')
else:
	print('HARD')


n = int(input())
num = list(map(int, input().split()))
for i in num:
	if i == 1:
		str = 'HARD'
		break
	else:
		str = 'EASY'
print(str)


from sys import stdin
inp = iter([int(x) for x in stdin.read().split()])
N = next(inp)
is_hard = 0
for i in range(N):
	if next(inp):
		is_hard = 1
if is_hard:
	print('HARD')
else:
	print('EASY')


import sys
lines = sys.stdin.readlines()
if '1' in lines[-1].split():
	print('HARD')
else:
	print('EASY')


blah = int(input(''))
bloo = input('').strip()
if '1' in bloo:
	print('HARD')
else:
	print('EASY')


r = int(input())
h = input()
list1 = h.split(' ')
f = []
d = 0
for i in list1:
	f.append(int(i))
for i in f:
	if i == 1:
		d += 1
if d > 0:
	print('HARD')
else:
	print('EASY')


input()
h = 0
for i in map(int, input().split()):
	if i == 1:
		h += 1
print('EASY') if h == 0 else print('HARD')


n = int(input())
i = []
i = input().split()
for x in range(0, n):
	if int(i[x]) == 1:
		print('HARD')
		exit()
print('EASY')


number = input()
data = list(map(int, input().split(' ')))
if max(data) == 0:
	print('EASY')
else:
	print('HARD')


def sol():
	n = int(input())
	arr = input().split()
	for i in arr:
		if i == '1':
			return 'HARD'
		else:
			pass
	return 'EASY'
print(sol())


N = int(input())
v = input().split(' ')
for x in v:
	if x == '1':
		print('HARD')
		exit(0)
print('EASY')
exit(0)


def main():
	n = int(input())
	a = set(map(int, input().split()))
	if len(list(a)) > 1 or (len(list(a)) == 1 and 1 in a):
		print('HARD')
	else:
		print('EASY')
main()


N = int(input())
o = input().split(' ')
if '1' in o:
	print('HARD')
else:
	print('EASY')


testTakers = int(input())
answerList = input()
for x in answerList:
	if x == '1':
		print('HARD')
		exit()
print('EASY')


n = int(input())
opinions = input()
m = max(opinions)
if m == '1':
	print('HARD')
else:
	print('EASY')


from sys import stdin
first = stdin.readline()
first = int(first)
second = map(int, stdin.readline().split())
liste = list(second)
if 1 in liste:
	print('HARD')
else:
	print('EASY')


n = int(input())
hard = False
for i in str(input()).split():
	if i == '1':
		hard = True
if hard:
	print('HARD')
else:
	print('EASY')


T = int(input())
found = []
n = list(map(int, input().split()))
if 1 in n:
	print('HARD')
else:
	print('EASY')


n = input()
line = input()
str = line.find('1') == -1 and 'EASY' or 'HARD'
print(str)


n = int(input())
result = 'EASY'
nums = [int(s) for s in input().split()]
for num in nums:
	if num == 0:
		continue
	elif num == 1:
		result = 'HARD'
		break
print(result)


people = int(input())
if people < 1 or people > 100:
	exit()
view = input()
x = view.find('1')
if x == -1:
	print('EASY')
else:
	print('HARD')


first_line = range(2)
first_line = list(first_line)
for i in range(2):
	first_line[i] = input()
first_line[1] = first_line[1].replace(' ', '')
contador = 0
for i in range(int(first_line[0])):
	if int(first_line[1][i]) == 0:
		continue
	else:
		contador += 1
if contador != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
i = input()
sum = sum(map(int, i.split()))
if sum >= 1:
	print('HARD')
else:
	print('EASY')


input()
l = [int(x) for x in input().split()]
if 1 in l:
	print('HARD')
else:
	print('EASY')


x = int(input(''))
y = input('').split()
for c in range(x):
	if y[c] == '1':
		print('HARD')
		exit()
print('EASY')


input()
a = sum([int(i) for i in input().split()])
if a:
	print('HARD')
else:
	print('EASY')


people = int(input())
results = [int(x) for x in input().split()]
difficult = []
for x in range(people):
	difficult.append(results[x])
easy = True
for i in difficult:
	if i == 1:
		easy = False
if easy:
	print('EASY')
else:
	print('HARD')


t = int(input())
if sum(list(map(int, input().rstrip().split()))):
	print('HARD')
else:
	print('EASY')


n = int(input())
N = [int(num) for num in input().split(' ', n - 1)]
x = sum(N)
if x > 0:
	print('HARD')
else:
	print('EASY')


def main():
	n = input()
	try:
		nums = input().index('1')
		print('HARD')
	except Exception:
		print('EASY')
main()


n = int(input())
opinions = list(map(int, input().split()))
flag = opinions.count(1)
if flag > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
n_answers = input().split(' ')
found_one = False
for i in range(n):
	if n_answers[i] == '1':
		found_one = True
		break
if found_one:
	print('HARD')
else:
	print('EASY')


from sys import stdin, stdout
inp = [str(line).rstrip() for line in stdin.readlines()]
k = [int(x) for x in inp[1].split()]
if 1 in k:
	stdout.write('HARD' + '\n')
else:
	stdout.write('EASY' + '\n')


a = int(input())
b = input()
b = b.split()
b = b[0:a]
if '1' in b:
	print('HARD')
else:
	print('EASY')


n = int(input())
lst = [int(i) for i in input().split()]
c0 = 0
c1 = 0
for i in lst:
	if i == 1:
		c1 += 1
		print('HARD')
		break
	if i == 0:
		c0 = c0 + 1
if c1 == 0:
	print('EASY')


n = int(input())
arr = list(map(int, input().split()))
if any(arr):
	print('HARD')
else:
	print('EASY')


people = input()
choices = [x for x in input().split()]
if '1' in choices:
	print('HARD')
else:
	print('EASY')


broj = input()
odgovori = input().split()
prov = False
for odg in odgovori:
	if odg == '1':
		prov = True
if prov:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = []
text = input()
for l in text:
	for c in l:
		a.append(c)
if '1' in a:
	print('HARD')
else:
	print('EASY')


n = int(input())
answers = input().split(' ')
aux = 0
for i in answers:
	if i == '1':
		aux = 1
if aux == 1:
	print('HARD')
else:
	print('EASY')


lines = ''
for i in range(2):
	lines += input() + '\n'
nums = [int(x) for x in lines.strip().split()][1:]
sum = 0
for i in nums:
	sum += i
if sum == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = [int(x) for x in input().split()]
summing = 0
for i in a:
	summing += i
if summing > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = input().split()
count = 0
for i in range(n):
	if l[i] == '1':
		print('HARD')
		count = 1
		break
if count == 0:
	print('EASY')


people = int(input())
abd = input()
for el in abd:
	if el == '1':
		print('HARD')
		exit()
print('EASY')


def problem(li):
	for i in li:
		if i == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
li = list(map(int, input().split()))
print(problem(li))


import sys
n = int(sys.stdin.readline().strip())
m = sys.stdin.readline().strip().split(' ')
k = 'EASY'
for i in range(n):
	if m[i] == '1':
		k = 'HARD'
		break
print(k)


a = int(input())
arr = list(map(int, input().split()))
if any((i == 1 for i in arr)):
	print('HARD')
else:
	print('EASY')


n = int(input())
m = list(map(int, input().split(' ')))
ans = m.count(1)
if ans == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = list(map(int, input().split()))
ans = ''
for i in range(n):
	if a.count(1) == 0:
		ans = 'EASY'
	else:
		ans = 'HARD'
print(ans)


k = input()
op = list(map(int, input().split()))
s = 0
for i in op:
	s += i
print(['HARD', 'EASY'][s <= 0])


N = int(input())
L = list(map(str, input().split()))
if '1' in L:
	print('HARD')
else:
	print('EASY')


import sys
n = int(input())
opinions = input()
for i in opinions:
	if i == '1':
		print('HARD')
		sys.exit()
print('EASY')


from functools import reduce
from sys import stdin, stdout
n = int(stdin.readline())
ops = list(map(int, stdin.readline().split(' ')))
stdout.write(('EASY' if reduce(lambda a, b: a | b, ops) == 0 else 'HARD') + '\n')


n = input()
if int(n) < 1 or int(n) > 100:
	exit(0)
user = input()
j = 0
A = []
for i in user:
	if i != ' ':
		A.append(i)
for i in range(len(A)):
	j += int(A[i])
if j > 0:
	print('HARD')
elif j == 0:
	print('EASY')


import sys
import heapq
import copy
from collections import deque
from collections import OrderedDict
from collections import Counter

def main():
	n = input()
	val = int(n)
	resp = 'EASY'
	line = input()
	ar1 = line.split(' ')
	for val in ar1:
		if val == '1':
			resp = 'HARD'
			break
	print(resp)
main()


k = int(input())
p = list(map(int, input().rstrip().split()))
c = 0
for i in p:
	if i == 1:
		c += 1
if c >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
x = input()
x = x.split(' ')
k = 0
for i in x:
	if i == '1':
		k += 1
if k >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input()
r = [str(i) for i in a.split()]
if '1' in r:
	print('HARD')
else:
	print('EASY')


len = int(input())
answers = input().split(' ')
for answer in answers:
	if int(answer) != 0:
		continue
	len -= 1
print('EASY' if len == 0 else 'HARD')


n = int(input())
e = 0
A = list(map(int, input().split()))
for i in range(n):
	if A[i] == 1:
		e = 1
if e == 1:
	print('HARD')
else:
	print('EASY')


n = input()
try:
	if input().index('1') != -1:
		print('HARD')
except ValueError:
	print('EASY')


x = int(input())
m = [i for i in input().split()]
if '1' in m:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
print('EASY' if set(a) == {0} else 'HARD')


def function():
	num = int(input())
	line = input().split(' ')
	flag = True
	for i in line:
		if i == '1':
			flag = False
			break
	if flag:
		print('EASY')
	else:
		print('HARD')
function()


n = int(input())
inp = [int(i) for i in input().split()]
c = inp.count(1)
if c != 0:
	print('HARD')
else:
	print('EASY')


from sys import exit as sys_return
i_amount = int(input())
lt_peoples_choices = map(int, input().split())
for i in lt_peoples_choices:
	if i == 1:
		print('HARD')
		sys_return(0)
print('EASY')


n = int(input())
m = list()
m = input().split()
s = 0
for i in m:
	s = s + int(i)
if s == 0:
	print('EASY')
else:
	print('HARD')


def main():
	n = int(input())
	numbers = input().split()
	numbers = list(map(int, numbers))
	for x in numbers:
		if x == 1:
			print('HARD')
			return
	print('EASY')
main()


n = int(input())
l = [int(x) for x in input().split()]
s = 0
for i in range(n):
	s += l[i]
if s:
	print('HARD')
else:
	print('EASY')


time = int(input())
arr = input()
arr = arr.split(' ')
flag = -1
for t in range(time):
	if arr[t] == '1':
		print('HARD')
		flag = 1
		break
if flag == -1:
	print('EASY')


n = int(input())
answers = input().split(' ')
for a in answers:
	if int(a) == 1:
		print('HARD')
		exit()
print('EASY')


input()
list_inputs = input().split()
if '1' in list_inputs:
	print('HARD')
else:
	print('EASY')


people = int(input())
opinions = [int(i) for i in input().split()]
count = 0
for i in opinions:
	if i == 1:
		count += 1
if count > 0:
	print('HARD')
else:
	print('EASY')


n = input()
opiniones = input()
opiniones = opiniones.split()
respuesta = 'EASY'
for elemento in opiniones:
	if elemento == '1':
		respuesta = 'HARD'
		break
print(respuesta)


input()
print('HARD' if any(map(int, input().split())) else 'EASY')


n = int(input())
l = input().split(' ')
l = map(int, l)
if any(l):
	print('HARD')
else:
	print('EASY')


m = int(input())
input_data = input()
list1 = input_data.split(' ')
final_list = []
for i in list1:
	final_list.append(int(i))
if max(final_list) == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
k = input().split(' ')
dificil = False
for actual in k:
	if actual == '1':
		dificil = True
if dificil:
	print('HARD')
else:
	print('EASY')


input()
print('HARD' if input().find('1') != -1 else 'EASY')


people = input()
survey = input()
if survey.count('1') != 0:
	print('HARD')
else:
	print('EASY')


num = int(input())
if num >= 1 and num <= 100:
	lst = input()
	lst = [int(ele) for ele in lst.split(' ')]
	if len(lst) == num:
		if 1 in lst:
			print('HARD')
		else:
			print('EASY')


people = int(input())
responses = set(input().split())
if '1' in responses:
	print('HARD')
else:
	print('EASY')


n = int(input())
lst = input().split()
if '1' in lst:
	print('HARD')
else:
	print('EASY')


n = int(input())
chall = input()
flag = 0
for i in chall:
	if i == '1':
		flag = 1
		break
if flag:
	print('HARD')
else:
	print('EASY')


n = int(input())
people = input().split()
flag = 0
for i in people:
	if i == '1':
		flag = 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
p = 0
l = map(int, input().split())
for i in l:
	if i == 1:
		p = 1
	else:
		continue
if p == 1:
	print('HARD')
else:
	print('EASY')


int(input())
flag = all((w == '0' for w in input().split()))
if flag:
	print('EASY')
else:
	print('HARD')


n = int(input())
string = input()
if '1' in string:
	print('HARD')
else:
	print('EASY')


import math, sys
from itertools import permutations

def mp():
	return list(map(int, input().split()))
debug = 0
if debug:
	file = open('input.txt', 'r')
	input = file.readline
else:
	input = sys.stdin.readline

def main():
	n = int(input())
	a = mp()
	if 1 in a:
		print('HARD')
	else:
		print('EASY')
main()


nop = input()
fb = input().split()
fblst = [int(x) for x in fb]
for x in fblst:
	Hard = False
	if x == 0:
		continue
	else:
		print('HARD')
		Hard = True
		break
if not Hard:
	print('EASY')


n = int(input())
x = list(map(int, input().split()))
p = x.count(1)
if p == 0:
	print('EASY')
else:
	print('HARD')


reviewers_cnt = input()
for answer in input().split():
	if int(answer):
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
a = input()
t = 0
a = a.split()
for i in a:
	i = int(i)
	if i == 1:
		print('HARD')
		break
	else:
		t = t + 1
if t == n:
	print('EASY')


n = int(input())
m = input()
if '1' in m:
	print('HARD')
else:
	print('EASY')


k = int(input())
n = input().split()
for i in range(k):
	n[i] = int(n[i])
ans = max(n)
if ans == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
v = [int(i) for i in input().split()]
iseasy = True
for i in v:
	if i == 1:
		iseasy = False
		break
if iseasy:
	print('EASY')
else:
	print('HARD')


n = int(input())
reply = input().split()
if '1' in reply:
	print('HARD')
else:
	print('EASY')


def getInts():
	return [int(s) for s in input().split()]

def getInt():
	return int(input())

def getStrs():
	return [s for s in input().split()]

def getStr():
	return input()

def listStr():
	return list(input())

def solve():
	N = getInt()
	return 'EASY' if sum(getInts()) == 0 else 'HARD'
ans = solve()
print(ans)


def check_answers(answers):
	for answer in answers.strip().split(' '):
		if int(answer) == 1:
			yield 'HARD'
	yield 'EASY'
(n, answers) = (int(input()), input())
print(next(check_answers(answers)))


def easy_problem(n, arr):
	for i in range(n):
		if arr[i] == '1':
			return 'HARD'
	return 'EASY'
n = int(input())
arr = input()
arr = arr.split()
print(easy_problem(n, arr))


n = map(int, input().split())
r = 0
for i in map(int, input().split()):
	if i == 1:
		r = 1
		break
	else:
		r = 0
if r == 1:
	print('HARD')
else:
	print('EASY')


easy = True
input()
s = input().split()
for i in range(len(s)):
	if s[i] == '1':
		easy = False
if easy:
	print('EASY')
else:
	print('HARD')


n = int(input())
arr = list(map(int, input().split()))
i = 0
j = n - 1
while i <= j:
	if arr[i] == 1 or arr[j] == 1:
		break
	i += 1
	j -= 1
if i <= j:
	print('HARD')
else:
	print('EASY')


n = input()
s = input()
t = s.find('1') == -1 and 'EASY' or 'HARD'
print(t)


from sys import stdin
A = [int(i) for i in [line for line in stdin][1].split()]
print('HARD' if any(A) else 'EASY', end='')


n = int(input())
a = []
a = [int(x) for x in input().split()]
if max(a) == 1:
	print('HARD')
else:
	print('EASY')


t = int(input())
l = [int(x) for x in input().split()]
s = set(l)
if 1 in s:
	print('HARD')
else:
	print('EASY')


def fun(arr):
	for i in arr:
		if i == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
arr = list(map(int, input().split()[:n]))
print(fun(arr))


n = int(input())
difficulty = input()
hard = 0
for person in difficulty:
	if person == '1':
		hard = hard + 1
		break
if hard == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
ms = input().split()
if '1' in ms:
	print('HARD')
else:
	print('EASY')


import sys

def solve():
	input()
	if '1' in input():
		return 'HARD'
	else:
		return 'EASY'
ans = solve()
print(ans)


n = input()
a = input()
if '1' in a:
	print('HARD')
else:
	print('EASY')


input()
print(['HARD', 'EASY'][max([int(x) for x in input().split()]) == 0])


try:
	for _ in range(int(input())):
		data = list(map(int, input().split()))
		c = data.count(1)
		if c:
			print('HARD')
		else:
			print('EASY')
		data.clear()
except:
	pass


n = int(input())
s = input().split()
check = 0
for each in s:
	if each == '1':
		check = 1
		break
if check == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
lis = map(int, input().split(' '))
lis = list(filter(lambda x: x, lis))
if len(lis) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
r = str(input())
if '1' in r:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = list(map(int, input().split()))
d = 0
for i in range(a):
	if b[i] == 1:
		d += 1
if d > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = input().split()
if l.count('1'):
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = [int(x) for x in input().split()]
count = 0
for ele in arr:
	if ele == 0:
		count += 1
	else:
		print('HARD')
		break
if count == len(arr):
	print('EASY')


number = int(input())
list1 = input().split(' ')
for i in list1:
	if '1' in list1:
		print('HARD')
		break
	else:
		print('EASY')
		break


n = int(input())
s = input()
s.split()
k = 0
for k in range(len(s)):
	if s[k] == '1':
		print('HARD')
		quit(0)
print('EASY')


n = input()
arr = input().split(' ')
count = 0
for a in arr:
	if a == '1':
		count = 1
		break
if count == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
diff = list(map(int, input().split()))
hard = False
for i in diff:
	if i == 1:
		hard = True
		break
if hard:
	print('HARD')
else:
	print('EASY')


from math import *
input()
print('HARD' if sum([int(i) for i in input().split()]) > 0 else 'EASY')


n = int(input())
str = input()
lis = str.split()
for i in lis:
	if i == '1':
		print('HARD')
		break
if i == '0':
	print('EASY')


user = int(input())
user1 = input().split()
if '1' in user1:
	print('HARD')
else:
	print('EASY')


input()
response = input()
print('HARD' if '1' in response else 'EASY')


n = int(input())
l = list(input().split())
li = []
for i in l:
	li.append(int(i))
if sum(li) != 0:
	print('HARD')
else:
	print('EASY')


def main():
	n = int(input())
	change = False
	for i in input().split():
		x = int(i)
		if x == 1:
			change = True
	if change:
		print('HARD')
	else:
		print('EASY')
main()


a = int(input())
b = map(int, input().split())
if any(b) == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
data = ''.join(input().split())
hash1 = hash(data)
hash2 = hash('0' * n)
if hash1 == hash2:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = list(map(int, input().split()))
res = sum(a)
if res == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
difficulty = input()
count = 0
for i in difficulty:
	if i == '1':
		count = count + 1
if count == 0:
	print('EASY')
else:
	print('HARD')


l1 = input()
l2 = input()
if '1' in l2:
	print('HARD')
else:
	print('EASY')


b = 0
a = int(input())
A = list(map(int, input().split()))
for i in A:
	if i == 1:
		print('HARD')
		b = 1
		break
if b == 0:
	print('EASY')


def solve(k):
	ans = 'EASY'
	for _ in k:
		if _ != 0:
			ans = 'HARD'
	return ans
n = int(input())
k = [int(i) for i in input().strip().split()]
print(solve(k))


import sys
n = int(input())
for i in input().split():
	if i == '1':
		print('HARD')
		return
print('EASY')


_ = input()
stats = list(map(int, input().split()))
if 1 in stats:
	print('HARD')
else:
	print('EASY')


kol = input()
people = input().split()
t = True
for x in people:
	if x == '1':
		t = False
		break
if t == True:
	print('EASY')
else:
	print('HARD')


def easy() -> bool:
	_ = input()
	for i in input().split():
		if int(i) == 1:
			return True
	return False
if easy():
	print('HARD')
else:
	print('EASY')


checks = int(input())
result = 'EASY'
test = input().split(' ')
if '1' in test:
	result = 'HARD'
print(result)


from sys import stdin
n = int(stdin.readline())
nums = map(int, stdin.readline().split())
if 1 in nums:
	print('HARD')
else:
	print('EASY')


n = [input() for _ in range(2)]
print('HARD' if '1' in n[1] else 'EASY')


n = int(input())
seq = input()
if seq.find('1') != -1:
	print('HARD')
else:
	print('EASY')


def encuesta(personas, resultados):
	resultados = resultados.split(' ')
	if '1' in resultados:
		return 'HARD'
	else:
		return 'EASY'
personas = int(input())
resultados = input()
print(encuesta(personas, resultados))


n = int(input())
l = [int(x) for x in input().split()]
for i in l:
	if i == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
new_list = list(map(int, input().split()))
condition = True
for i in new_list:
	if i == 1:
		condition = False
if condition:
	print('EASY')
else:
	print('HARD')


n = int(input())
k = map(int, input().split())
b = 0
for x in k:
	b += x
if b > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
list = map(int, input().split())
ans = 'EASY'
for respond in list:
	if respond == 1:
		ans = 'HARD'
		break
print(ans)


n = int(input())
l = list(map(int, input().split(' ')))
flag = 0
for i in range(0, n):
	if l[i] == 0:
		continue
	elif l[i] == 1:
		flag = 1
		break
if flag == 0:
	print('EASY')
else:
	print('HARD')


import sys
y = input()
x = input()
In = []
In_edit = []
state = 0
In = x.split()
s = len(In)
for i in range(s):
	In_edit.append(int(In[i]))
for i in range(s):
	if In_edit[i] == 1:
		print('HARD')
		sys.exit()
print('EASY')


num_responses = int(input())
responses = [int(a) for a in input().strip().split()]
hard = False
for response in responses:
	if response == 1:
		hard = True
		break
if hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
fl = 0
for i in a:
	if i == 1:
		print('HARD')
		fl += 1
		break
if fl == 0:
	print('EASY')


n = int(input())
cantidad = 0
numeros = list(map(int, input().split()))
for i in numeros:
	if i >= 1:
		cantidad += 1
if cantidad >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
b = input().split()
r = 'EASY'
for i in b:
	if i == '1':
		r = 'HARD'
print(r)


s = input()
s = input()
s = s.split(' ')
print('HARD') if s.count('1') > 0 else print('EASY')


import re
a = int(input())
k = 0
k = input().split()
if k.count('1') != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().strip().split()))
for i in l:
	if i == 1:
		print('HARD')
		exit()
print('EASY')


num = int(input())
line = [int(x) for x in input().split()]
check = 0
for i in range(num):
	if line[i] == 1:
		check += 1
if check == 0:
	print('EASY')
else:
	print('HARD')


kolvo = int(input())
vars = list(map(int, input().split(' ')))
s = 0
for i in vars:
	if i == 1:
		s = 1
if s == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(i) for i in input().split()]
if max(a) > 0:
	print('HARD')
else:
	print('EASY')


number_of_persons = int(input())
opinion_list = list(map(int, input().split()))
if 1 in opinion_list:
	print('HARD', end='')
else:
	print('EASY', end='')


_ = input()
if any((opinion == '1' for opinion in input().split())):
	print('HARD')
else:
	print('EASY')


n = int(input())
mylist = input().split()
ifExistOne = 0
for item in mylist:
	number = int(item)
	if number == 1:
		ifExistOne = 1
if ifExistOne == 1:
	print('HARD')
else:
	print('EASY')


n = input()
l = list(map(str, input().split()))
if '1' in l:
	print('HARD')
else:
	print('EASY')


n = int(input())
inputs = str(input()).split()
b = False
for i in range(n):
	if inputs[i] == '1':
		b = True
if b == False:
	print('EASY')
else:
	print('HARD')


n = input()
st = input()
if st.__contains__('1'):
	print('HARD')
else:
	print('EASY')


n = int(input())
string = input()
if string.find('1') == -1:
	print('EASY')
else:
	print('HARD')


n = input()
k = input().split(' ')
for i in range(len(k)):
	k[i] = int(k[i])
for i in range(len(k)):
	if k[i] == 1:
		print('HARD')
		break
	elif i == len(k) - 1 and k[i] == 0:
		print('EASY')


p = int(input())
a = list(map(int, input().split()))
n = 0
for i in range(0, p):
	n += a[i]
print(n > 0 and 'HARD' or 'EASY')


number = int(input())
people = list(map(int, input().split()))
nb = 0
for i in range(0, len(people)):
	if people[i] != 0:
		nb += 1
if nb >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
opinions = [int(i) for i in input().split()]
flag = True
for i in opinions:
	if i == 1:
		print('HARD')
		flag = False
		break
if flag:
	print('EASY')


import math
n = int(input())
a = sum(list(map(int, input().split())))
if a > 0:
	print('HARD')
else:
	print('EASY')


from functools import reduce
input()
ans = reduce(lambda x, y: x + y, map(int, input().split()))
if ans == 0:
	print('EASY')
else:
	print('HARD')


def ii():
	return int(input())

def fi():
	return float(input())

def si():
	return input()

def mi():
	return map(int, input().split())

def li():
	return list(mi())
n = ii()
a = li()
if a.count(1):
	print('HARD')
else:
	print('EASY')


n = int(input())
x = [i for i in input().split()]
if not '1' in x:
	print('EASY')
else:
	print('HARD')


n = int(input())
li = list(map(int, input().split()))
res = 'EASY'
for i in li:
	if i == 1:
		res = 'HARD'
print(res)


n = int(input())
lst = list(map(int, input().strip().split()))[:n]
c = 0
for i in lst:
	if i == 1:
		c = 1
		break
if c == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(x) for x in input().split()]
ish = True
for i in a:
	if i == 1:
		ish = False
if ish:
	print('EASY')
else:
	print('HARD')


i = input()
d = map(int, input().split())
from functools import reduce
print(['HARD', 'EASY'][reduce(lambda x, y: x | y, d) == 0])


n = input()
m = input()
if '1' not in m:
	print('EASY')
else:
	print('HARD')


a = int(input())
k = list(map(int, input().split()))
if len(k) == a:
	if k.count(1) >= 1:
		print('HARD')
	else:
		print('EASY')


n = int(input())
s = 'HARD' if any(map(bool, map(int, input().split(' ')))) else 'EASY'
print(s)


result = False
x = int(input())
t = input()
t = t.split(' ')
i = 0
while i < len(t):
	if t[i] == '1':
		result = True
	i = i + 1
if result == True:
	print('HARD')
else:
	print('EASY')


def doit(a):
	for i in a:
		if i == 1:
			print('HARD')
			return
	print('EASY')
n = int(input())
a = map(int, input().split(' '))
doit(a)


n = int(input())
arr = list(map(int, input().split()))
flag = False
for i in arr:
	if i != 0:
		flag = True
if flag:
	print('HARD')
else:
	print('EASY')


n_people = int(input())
answers = 0
opinions = []
cont = 0
opinions = input().split()
opinions = list(map(int, opinions))
for j in range(n_people):
	if opinions[j] == 1:
		print('HARD')
		cont += 1
		break
if cont != 1:
	print('EASY')


a = int(input())
ans = 1
b = list(map(int, input().split()))
for j in range(a):
	if b[j] == 1:
		ans = 0
		break
if ans:
	print('EASY')
else:
	print('HARD')


def main():
	numppl = input()
	ratings = input()
	if '1' in ratings:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
opinions = [int(x) for x in input().split()]

def easy_or_hard(opinions, n):
	for _ in range(n):
		if any(opinions):
			return 'HARD'
		return 'EASY'
print(easy_or_hard(opinions, n))


input()
nums = map(int, input().split())
print('HARD' if 1 in nums else 'EASY')


import sys
it = iter(sys.stdin.read().splitlines())
n = int(next(it))
numbers = [int(x) for x in next(it).split()]
for number in numbers:
	if number == 1:
		print('HARD')
		exit()
print('EASY')


o = int(input())
z = input()
x = z.split(' ')
c = []
hard = 0
for i in x:
	c.append(int(i))
for i in c:
	if i == 1:
		hard += 1
if hard > 0:
	print('HARD')
else:
	print('EASY')


n = input()
opinions = input()
print('HARD' if '1' in opinions else 'EASY')


i = int(input())
l = list(map(int, input().split()))
if 1 in l:
	print('HARD')
else:
	print('EASY')


no = input()
lst = list(map(int, input().split()))
if 1 in lst:
	print('HARD')
else:
	print('EASY')


n = int(input())
otvety = list(map(int, input().split()))
easy = True
for otvet in otvety:
	easy = easy and (not otvet)
if easy:
	print('EASY')
else:
	print('HARD')


b = int(input())
a = list(map(int, input().split()))
if all((i == 0 for i in a)):
	print('EASY')
else:
	print('HARD')


n = int(input())
var = [int(x) for x in input().split()]
count = 0
for el in var:
	if el == 1:
		count += 1
if count == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
s = list()
x = input().split()
item = str('1')
if item in x:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = list(map(str, input().split()))
a = ''.join((c for c in s if c in '1'))
if len(a) >= 1:
	print('HARD')
else:
	print('EASY')


def compute(n):
	responses = input().split(' ')
	if '1' in responses:
		return True
	else:
		return False

def main():
	n = int(input())
	result = compute(n)
	print('HARD' if result else 'EASY')
main()


def print_EASY():
	n = int(input())
	numbers = [int(x) for x in input().split(' ')]
	if len(numbers) == n:
		if sum(numbers) == 0:
			return 'EASY'
		else:
			return 'HARD'
	else:
		raise ValueError('Number of arguments not equal to n')
print(print_EASY())


n = int(input())
k = input().split()
s = 0
for i in range(n):
	if int(k[i]) == 0:
		s = s + int(k[i])
	else:
		s = s + int(k[i])
if s == 0:
	print('EASY')
else:
	print('HARD')


x = input()
args = input()
args = sorted(args.split(), reverse=True)
if int(args[0]) == 1:
	print('HARD')
else:
	print('EASY')


def easy(l):
	l.sort()
	if l[-1] == 0:
		return 'EASY'
	else:
		return 'HARD'
n = int(input())
l = list(map(int, input().split()))
print(easy(l))


def difficulty(ratings):
	for nums in ratings:
		if int(nums) == 1:
			return 'HARD'
	return 'EASY'
people = int(input())
ratings = input().split()
print(difficulty(ratings))


n = int(input())
li = list(map(int, input().split()))
count = 0
for i in range(0, n):
	if li[i] == 1:
		count = count + 1
		break
if count == 1:
	print('HARD')
else:
	print('EASY')


class TaskA(object):

	def __init__(self):
		self.get_data()
		self.solve()
		self.print_answer()
	pass

	def get_data(self):
		self.n = int(input())
		self.a = input()
		pass

	def solve(self):
		self.ans = self.a.find('1')
		pass

	def print_answer(self):
		print('EASY') if self.ans < 0 else print('HARD')
		pass
TaskA()


n = int(input())
w = list(map(int, input().split()))
y = 0
for i in range(n):
	y = y + w[i]
if y >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
x = [x for x in input().split()]
a = ''.join(x)
print('EASY' if a == '0' * n else 'HARD')


n = int(input())
a = list(map(int, input().split()))
freq0 = a.count(0)
freq1 = a.count(1)
if freq1 == 1 or freq1 > 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
text = input()
numbers = [int(num) for num in text.split()]
x = 0
for i in range(n):
	x += numbers[i]
if x == 0:
	print('EASY')
else:
	print('HARD')


n_people = int(input())
responses = input().split(' ')
responses = sum([int(element) for element in responses])
if responses == 0:
	print('EASY')
else:
	print('HARD')


n = input('')
k = input('')
list1 = k.split()
list1
if '1' in list1:
	print('HARD')
else:
	print('EASY')


import math
n = int(input().strip())
num = list(map(int, input().strip().split()))
if sum(num) > 0:
	print('HARD')
else:
	print('EASY')


def bob(b):
	for i in range(len(b)):
		if b[i] == 1:
			return 'HARD'
		else:
			continue
	return 'EASY'
n = int(input())
b = list(map(int, input().split()))
print(bob(b))


e = int(input())
a = str(input())
b = a.count('1')
if b >= 1:
	print('HARD')
else:
	print('EASY')


x = int(input())
n = input()
g = n.find('1')
if g == -1:
	print('EASY')
else:
	print('HARD')


f = input()
g = list(map(int, input().split()))[0:int(f)]
(s, c) = (0, 0)
if 1 in g:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))
result = any([x == 1 for x in l])
print('HARD' if result else 'EASY')


def read_tokens():
	return input().strip().split(' ')

def read_ints():
	return [int(s) for s in read_tokens()]
(n,) = read_ints()
arr = read_ints()

def solve(arr) -> str:
	for el in arr:
		if el == 1:
			return 'HARD'
	return 'EASY'
ans = solve(arr)
print(ans)


times = int(input())
response = input().split()
rlist = [int(x) for x in response]
if times == len(rlist):
	if rlist.count(1) >= 1:
		print('HARD')
	elif rlist.count(1) == 0:
		print('EASY')


d = input()
i = input()
print('HARD') if '1' in i else print('EASY')


p = int(input())
x = input()
y = x.split(' ')
a = []
vvv = 0
for i in y:
	a.append(int(i))
for i in a:
	if i == 1:
		vvv += 1
if vvv > 0:
	print('HARD')
else:
	print('EASY')


def easy(n):
	for x in n:
		if x == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
print(easy(list(map(int, input().split()))))


n = input()
Opinion = input().split(' ')
if Opinion.count('1') >= 1:
	print('HARD')
else:
	print('EASY')


def answer():
	input()
	ops = [int(i) for i in input().split(' ')]
	for o in ops:
		if o == 1:
			print('HARD')
			return
	print('EASY')
answer()


n = int(input())
s1 = input()
s = s1.split()
for i in range(n):
	if s[i] == '1':
		print('HARD')
		break
else:
	print('EASY')


integer = int(input())
answer = str(input())
result = True
answersSplit = answer.split(' ')
for i in answersSplit:
	if i == '1':
		result = False
if result == True:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = map(int, input().split())
l = [i for i in a]
c = 0
for i in range(n):
	if l[i] == 1:
		c = c + 1
	else:
		continue
if c > 0:
	print('HARD')
else:
	print('EASY')


n = input()
scores = list(map(int, input().split()))
if max(scores) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
k = str(input())
l = list(k.split(' '))

def func(l, n):
	for i in range(n):
		if l[i] == '1':
			return False
		else:
			pass
	return True
if func(l, n):
	print('EASY')
else:
	print('HARD')


n = int(input())
l1 = list(map(int, input().split()))
for i in range(n):
	if l1[i] == 1:
		print('HARD')
		exit()
print('EASY')


def check(s):
	if s == 'Icosahedron':
		return 20
	elif s == 'Tetrahedron':
		return 4
	elif s == 'Octahedron':
		return 8
	elif s == 'Cube':
		return 6
	elif s == 'Dodecahedron':
		return 12
t = int(input())
p = []
p = list(map(int, input().split()))
j = 0
for i in p:
	if i == 1:
		j = 1
		break
if j == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
q = input().split(' ')
if max(q) == '0':
	print('EASY')
else:
	print('HARD')


input()
print(['EASY', 'HARD'][sum([int(x) for x in input().split()]) > 0])


n = int(input())
a = input()
ans = 'HARD' if a.find('1') >= 0 else 'EASY'
print(ans)


n = int(input())
a = [int(x) for x in input().split()]
fl = False
for x in a:
	if x == 1:
		fl = True
		break
if fl:
	print('HARD')
else:
	print('EASY')


import math
import os
import random
import re
import sys
m = int(input())
a = [int(x) for x in input().split()]
b = ''.join((str(c) for c in a))
if str('1') in b:
	print('HARD')
else:
	print('EASY')


x = int(input())
y = input().split(' ')
if '1' in y:
	print('HARD')
else:
	print('EASY')


n = int(input())
lst = list(map(int, input().split()))
a = 0
for x in lst:
	if x == 1:
		print('HARD')
		break
	else:
		a += 1
		continue
if a == n:
	print('EASY')


n = input()
o = map(int, input().split(' '))
if sum(o) is not 0:
	print('HARD')
else:
	print('EASY')


a = int(input())
a = input()
if '1' in a:
	print('HARD')
else:
	print('EASY')


n = int(input())
opinions = input().split()
easy = True
for i in range(n):
	if opinions[i] == '1':
		easy = False
if easy:
	print('EASY')
else:
	print('HARD')


def easy_or_hard(reviews):
	if all([True if i == 0 else False for i in reviews]):
		return 'EASY'
	return 'HARD'
nPeople = int(input())
reviews = [int(i) for i in input().split()]
print(easy_or_hard(reviews))


def main():
	n = int(input())
	a = list(map(int, input().split()))
	if 1 in a:
		print('HARD')
	else:
		print('EASY')
main()


a = int(input())
b = [i for i in map(int, input().split())]
c = [1]
d = list(set(b) & set(c))
f = len(d)
if f == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
k = input().split(' ')
for actual in k:
	if actual == '1':
		print('HARD')
		exit()
print('EASY')


def answer(nums):
	return 'HARD' if 1 in nums else 'EASY'
n = input()
nums = list(map(int, input().split()))
print(answer(nums))


import sys
data = sys.stdin.readlines()
useful = data[1].split()
checker = True
i = 0
while checker == True and i < len(useful):
	if int(useful[i]) == 1:
		checker = False
		break
	else:
		i += 1
if checker == True:
	print('EASY')
else:
	print('HARD')


n = int(input())
params = input().split()
res = 'EASY'
for i in range(0, n):
	if params[i] == '1':
		res = 'HARD'
		break
print(res)


num = int(input())
responses = [int(r) for r in input().split(' ')]
diff = 'EASY'
count = 0
while (diff == 'EASY') & (count < num):
	if responses[count] == 1:
		diff = 'HARD'
		print('HARD')
	count += 1
if diff == 'EASY':
	print('EASY')


n = int(input())
s = list((int(num) for num in input().strip().split()))[:n]
if 1 in s:
	print('HARD')
else:
	print('EASY')


n = input()
s = input()
count = s.count('1')
print('HARD' if count >= 1 else 'EASY')


n = input()
ans = input().split()
hard = '1' in ans
print('HARD' if hard else 'EASY')


n = input()
k = [int(q) for q in input().split()]
print('HARD') if 1 in k else print('EASY')


a = input()
x = input()
for b in x:
	if b == '1':
		print('HARD')
		break
	elif b == '0':
		continue
if b == '0':
	print('EASY')


num = int(input())
nums = input().split()
k = 0
for i in range(num):
	if nums[i] == '1':
		k = 1
if k == 0:
	print('EASY')
else:
	print('HARD')


n = eval(input())
responses = map(int, input().split())
if 1 in responses:
	print('HARD')
else:
	print('EASY')


n = int(input())
lista = input().split()
result = 0
for i in lista:
	result += int(i)
if result > 0:
	print('HARD')
else:
	print('EASY')


num = int(input())
b = 0
if 1 <= num <= 100:
	opros = map(str, input())
	opros = list(opros)
	for bukva in opros:
		if bukva == '0':
			continue
		if bukva == '1':
			b += 1
			print('HARD')
			break
	if b < 1:
		print('EASY')


(_, r) = (input(), list(map(int, input().split())))
print('EASY') if sum(r) == 0 else print('HARD')


def main():
	n = int(input())
	opinions_str = str(input())
	opinion = opinions_str.split(' ')
	for i in opinion:
		if i == '1':
			print('HARD')
			return
	print('EASY')
main()


x = int(input())
a = [int(i) for i in input().strip().split()]
if 1 in a:
	print('HARD')
else:
	print('EASY')


try:
	n = int(input())
	l = list(map(int, input().split()))
	cnt = 0
	for i in l:
		if i == 1:
			print('HARD')
			break
		else:
			cnt += 1
	if cnt == n:
		print('EASY')
except:
	pass


import sys
people = input()
grades_input = input()
grades = grades_input.split(' ')
for grade in grades:
	if grade == '1':
		print('HARD')
		sys.exit()
print('EASY')
sys.exit()


n = int(input())
lst = list(map(int, input().split()))
for num in lst:
	if num == 1:
		print('HARD')
		exit()
print('EASY')


cases = int(input(''))
nums = input('').split(' ')
if '1' in nums:
	print('HARD')
else:
	print('EASY')


import re
k = int(input())
n = input()
nlist = re.findall('\\d+', n)
ans = False
for i in nlist:
	if i == '1':
		ans = True
		break
if ans:
	print('HARD')
else:
	print('EASY')


a = int(input())
m = input().split(' ')
g = list(m)
su = 0
for n in range(len(g)):
	su += int(g[n])
if su >= 1:
	print('HARD')
else:
	print('EASY')


input()
survey = input()
if '1' in survey:
	print('HARD')
else:
	print('EASY')


n = int(input())
p = list(map(int, input().split()))
p.sort()
for i in range(n):
	if p[-1] == 1:
		print('HARD')
		break
	else:
		print('EASY')
		break


n = int(input())
a = set(input().split())
if len(a) == 1:
	if '0' in a:
		print('EASY')
	else:
		print('HARD')
else:
	print('HARD')


import sys
import math
import bisect
from sys import stdin, stdout
from math import gcd, floor, sqrt, log
from collections import defaultdict as dd
from bisect import bisect_left as bl, bisect_right as br
sys.setrecursionlimit(100000000)
ii = lambda : int(input())
si = lambda : input()
jn = lambda x, l: x.join(map(str, l))
sl = lambda : list(map(str, input().strip()))
mi = lambda : map(int, input().split())
mif = lambda : map(float, input().split())
lii = lambda : list(map(int, input().split()))
ceil = lambda x: int(x) if x == int(x) else int(x) + 1
ceildiv = lambda x, d: x // d if x % d == 0 else x // d + 1
flush = lambda : stdout.flush()
stdstr = lambda : stdin.readline()
stdint = lambda : int(stdin.readline())
stdpr = lambda x: stdout.write(str(x))
mod = 1000000007
n = ii()
arr = lii()
if arr.count(1) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(x) for x in input().split()]
print(['HARD', 'EASY'][sum(a) == 0])


n = int(input())
m = input().split(' ')
out = 'EASY'
for i in range(n):
	if m[i] == '1':
		out = 'HARD'
print(out)


n = int(input())
numList = list((int(num) for num in input().strip().split()))[:n]
a = 1
if a in numList:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = map(int, input().split())
if max(l) > 0:
	print('HARD')
else:
	print('EASY')


a = int(input())
s = set(input())
if '1' in s:
	print('HARD')
else:
	print('EASY')


n = input()
c = True
for i in input().split():
	if i == '1':
		print('HARD')
		c = False
		break
if c:
	print('EASY')


def f(l):
	for v in l:
		if v == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
l = list(map(int, input().split()))
print(f(l))


num_people = input()
opinion = input()
count_hard = 0
lst_opinion = opinion.split()
if len(lst_opinion) == int(num_people):
	for char in lst_opinion:
		if char == '1':
			count_hard += 1
if count_hard == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
c = 0
c1 = 0
str = input().split(' ')
li = []
for i in range(0, n):
	li.append(int(str[i]))
for i in range(0, n):
	if li[i] == 1:
		c = c + 1
	else:
		c1 = c1 + 1
	i = i + 1
if n == c1:
	print('EASY')
else:
	print('HARD')


_ = input()
input_list = map(int, input().split())
if 1 in input_list:
	print('HARD')
else:
	print('EASY')


n = int(input())
tab = [int(i) for i in input().split()]
is_hard = False
for r in tab:
	if r:
		is_hard = True
		break
print('HARD' if is_hard else 'EASY')


n = int(input())
inp = input().split()
o = []
for i in range(n):
	o.append(int(inp[i]))
if sum(o) == 0:
	print('EASY')
else:
	print('HARD')


size = int(input())
for i in input().split():
	if i == '1':
		print('HARD')
		exit(0)
print('EASY')


s = int(input())
d = list(map(int, input().split()))
d = set(d)
if 1 in d:
	print('HARD')
elif 0 in d:
	print('EASY')


(n,) = map(int, input().split())
A = input().split()
for a in A:
	if a == '1':
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
arr = input().split()
arr = [int(el) for el in arr]
answ = 'EASY'
for i in range(0, n):
	if arr[i] == 1:
		answ = 'HARD'
print(answ)


try:
	n = int(input())
	l = list(map(int, input().split()))
	k = 1
	if k in l:
		print('HARD')
	else:
		print('EASY')
except:
	pass


n = int(input())
a = []
for j in input().split():
	a.append(int(j))
for i in range(n):
	if a[i] == 1:
		print('HARD')
		break
	elif 1 not in a:
		print('EASY')
		break


ans = 'EASY'
q = int(input())
w = input().split()
for i in range(q):
	if w[i] == '1':
		ans = 'HARD'
print(ans)


n = int(input())
k = list(map(int, input().split()))
for i in range(n):
	if k[i] == 1:
		print('HARD')
		break
	elif i == n - 1:
		print('EASY')


num = int(input())
diff = input()
Ldiff = diff.split(' ')
flag = 0
for i in Ldiff:
	if i == '1':
		flag = 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


num_people = input()
if '1' in set(input().split()):
	print('HARD')
else:
	print('EASY')


n = int(input())
people = input().split()
result = 'EASY'
while n >= 0:
	if people[n - 1] == '1':
		result = 'HARD'
	n -= 1
print(result)


n = int(input())
a = input()
userList = a.split()
for num in userList:
	if num == '1':
		x = 1
		break
	else:
		x = 0
if x == 0:
	print('EASY')
else:
	print('HARD')


def main():
	n = int(input())
	inputs = list(map(int, input().split(' ')))
	ans = 'EASY'
	for i in inputs:
		if i:
			ans = 'HARD'
			break
	print(ans)
main()


n = int(input())
ans = list(map(int, input().split()))
for i in ans:
	if i == 1:
		print('HARD')
		quit()
print('EASY')


import sys

def main():
	issues = [0] * 11
	for i in range(1, 11):
		issues[i] = issues[i - 1] + i * 5
	input()
	answers = set(list(map(int, input().split())))
	if 1 in answers:
		print('HARD')
		return
	print('EASY')
sys.exit(main())


n = input()
i = input()
i = i.split(' ')
if '1' in i:
	print('HARD')
else:
	print('EASY')


input()
a = input()
if '1' not in a:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = str(input())
a = a.split(' ')
m = 0
for i in range(0, n):
	m += int(a[i])
if m == 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
s = input()
if s.count('1') != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
z = list(map(str, input().split(' ')))
if '1' in z:
	print('HARD')
else:
	print('EASY')


n = int(input())
i = input().split()
s = [int(item) for item in i]
sum = 0
for v in s:
	sum += v
if sum != 0:
	print('HARD')
else:
	print('EASY')


a = input()
b = input().split()
c = map(int, b)
text = ''
if b.count('1') >= 1:
	text = 'HARD'
else:
	text = 'EASY'
print(text)


n = int(input())
opros = input()
s = list(opros)
probel = s.count(' ')
for i in range(probel):
	s.remove(' ')
kol = len(s)
verdict = ''
for j in range(kol):
	if s[j] == '1':
		verdict = 'HARD'
		break
	else:
		verdict = 'EASY'
print(verdict)


amount = int(input())
people = list(map(int, input().split()))
people.sort(reverse=True)
is_hard = str(people[0] > 0).replace('True', 'HARD').replace('False', '').strip()
is_easy = str(people[0] <= 0).replace('True', 'EASY').replace('False', '').strip()
print(is_hard, is_easy, sep='')


import sys
x = int(input())
a = list(map(int, input().split()))
for i in range(x):
	if a[i] == 1:
		print('HARD')
		sys.exit()
print('EASY')


while True:
	n = int(input())
	if n >= 1 and n <= 100:
		break
while True:
	ch = input('')
	if len(ch) == 2 * n - 1:
		break
if '1' in ch:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = set(input())
if '1' in a:
	print('HARD')
else:
	print('EASY')


n = int(input())
su = 0
s = input()
a = s.split()
for i in range(n):
	su = su + int(a[i])
if su == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = list(map(int, input().split()))
print('EASY' if not sum(a) else 'HARD')


n = input()
List = input()
if List.find('1') != -1:
	print('HARD')
else:
	print('EASY')


num = int(input())
st = input().split()
flag = 0
for i in st:
	if i == '1':
		flag = 1
if flag:
	print('HARD')
else:
	print('EASY')


n = input()
arr = [x for x in input().split(' ')]
if '1' in arr:
	print('HARD')
else:
	print('EASY')


z = []
a = int(input())
k = str(input())
z = k.split(' ')
z.sort()
if z[a - 1] == '0':
	print('EASY')
else:
	print('HARD')


n = input()
people = input().split()
if people.count('1') == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
o = input()
if '1' in o:
	print('HARD')
else:
	print('EASY')


n = int(input())
answers = input().split(' ')
answers = list(map(int, answers))
res = 'HARD' if 1 in answers else 'EASY'
print(res)


n = int(input())
s = input().split()
easy = True
for i in s:
	if i == '1':
		easy = False
		break
print('EASY' if easy else 'HARD')


n = int(input())
nums = input().split(' ')
nums = [int(i) for i in nums]
flag = False
for i in nums:
	if i == 1:
		flag = True
		break
if flag == False:
	print('EASY')
else:
	print('HARD')


n = int(input())
list = input().strip().split(' ')
list = [int(x) for x in list]
hard = 0
for i in list:
	if i == 1:
		hard = 1
if hard == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
t = input().split(' ')
i = 0
while i < n and int(t[i]) != 1:
	i += 1
if i < n:
	print('HARD')
else:
	print('EASY')


n = int(input())
opinion = []
condition = True
opinion = list(map(int, input().split()))
for i in range(0, len(opinion)):
	if opinion[i] == 1:
		condition = False
		break
if condition == False:
	print('HARD')
else:
	print('EASY')


n = input()
str = input()
print('HARD' if '1' in str else 'EASY')


input()
print('EHAASRYD'[sum((int(i) for i in input().split())) > 0::2])


num = int(input())
a = list(map(int, input().strip().split()))[:num]
count = 0
for i in range(num):
	if a[i] == 1:
		count += 1
if count >= 1:
	print('HARD')
else:
	print('EASY')


n = input()
ans = list(input().split(' '))
count = 0
for i in ans:
	if i == '1':
		count += 1
	else:
		count += 0
if count > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
mas = [int(s) for s in input().split()]
if sum(mas) == 0:
	print('EASY')
else:
	print('HARD')


W1 = input()
W2 = input()
A2 = W2.find('1')
if A2 == -1:
	print('EASY')
else:
	print('HARD')


k = int(input())
n = input()
if n.count('1') == 0:
	print('EASY')
else:
	print('HARD')


input()
print('HARD' if any((r == '1' for r in input().split())) else 'EASY')


def easyproblem():
	x = int(input())
	array = []
	hard = []
	easy = []
	array = list(map(int, input().split()))
	for i in range(x):
		if array[i] == 1:
			hard.append(array[i])
		else:
			easy.append(array[i])
	if len(hard) >= 1:
		print('HARD')
	else:
		print('EASY')
easyproblem()


from sys import stdin, stdout
n = int(stdin.readline())
l = list(map(int, stdin.readline().strip().split()))
if 1 not in l:
	stdout.write('EASY')
else:
	stdout.write('HARD')


a = int(input())
b = input().split()
s = 'EASY'
for i in b:
	if i == '1':
		s = 'HARD'
print(s)


n = int(input())
z = input().split(' ')
if '1' in z:
	print('HARD')
else:
	print('EASY')


n = int(input())
x = list(map(int, input().split()))
i = 0
f = True
while i < n and f:
	if x[i] == 1:
		f = False
	i += 1
if f:
	print('EASY')
else:
	print('HARD')


n = int(input())
line_1 = input()
answer = 'EASY'
for i in line_1:
	if i == '1':
		answer = 'HARD'
print(answer)


w = int(input())
input_data = input()
list_we_use = input_data.split(' ')
q = []
for i in list_we_use:
	q.append(int(i))
if max(q) == 1:
	print('HARD')
else:
	print('EASY')


p = int(input())
data = []
for x in input().split():
	data.append(int(x))
if 1 in data:
	print('HARD')
else:
	print('EASY')


n = int(input())
i = list(input())
if '1' in i:
	print('HARD')
else:
	print('EASY')


ulang = int(input())
angka = [int(y) for y in input().split()]
huruf = 0
for i in range(ulang):
	if angka[i] == 0:
		huruf += 0
	else:
		huruf += 1
if huruf >= 1:
	print('HARD')
else:
	print('EASY')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, queue, copy
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return [int(x) for x in sys.stdin.readline().split()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().split()]

def I():
	return int(sys.stdin.readline())

def LS():
	return sys.stdin.readline().split()

def S():
	return input()

def main():
	n = I()
	l = LI()
	if l.count(1) > 0:
		return 'HARD'
	return 'EASY'
print(main())


n = int(input())
a = set(map(int, input().split()))
if 1 not in a:
	print('EASY')
else:
	print('HARD')


n = int(input())
k = 0
list = [int(x) for x in input().split(' ')]
if len(list) == n:
	for i in list:
		if i == 1:
			print('HARD')
			k = 1
			break
	if k == 0:
		print('EASY')


a = [int(x) for x in input().split()]
b = [int(x) for x in input().split()]
if b.count(1) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
d = list(input().split())
if d.count('1') >= 1:
	print('HARD')
else:
	print('EASY')


x = input().split()
l = input().split()
easy = True
for item in l:
	if item == '1':
		easy = False
if easy == True:
	print('EASY')
else:
	print('HARD')


n = input()
a = input()
print(('1' in a) * 'HARD' + ('1' not in a) * 'EASY')


def is_problem_easy(number, opinions):
	for i in range(0, number * 2, 2):
		if opinions[i] == '1':
			return 'HARD'
	return 'EASY'
number = int(input())
opinions = input()
print(is_problem_easy(number, opinions))


n = int(input())
c = input()
ans = 'EASY'
for i in range(0, len(c), 2):
	if c[i] == '1':
		ans = 'HARD'
		break
print(ans)


from array import *
n = int(input())
a = input()
a = list(map(int, a.split(' ')))
b = True
for i in range(n):
	if a[i] == 1:
		b = False
		break
if b == True:
	print('EASY')
else:
	print('HARD')


t = input()
v = list(input().split(' '))
result = 'EASY'
for i in v:
	if i == '1':
		result = 'HARD'
print(result)


n = int(input())
s = input()
cnt = 0
for i in s:
	if i == '1':
		cnt += 1
print('HARD') if cnt > 0 else print('EASY')


n = int(input())
list = map(int, input().split())
easy = 0
hard = 0
for i in list:
	if i == 0:
		easy = easy + 1
	elif i == 1:
		hard = hard + 1
	else:
		print('ENTER A VAILD VALUE 0 or 1')
if hard > 0:
	print('HARD')
else:
	print('EASY')


n = input()
p = input()
print('HARD' if '1' in p else 'EASY')


n = eval(input())
s = input().split()
flag = False
for i in range(n):
	if s[i] == '1':
		flag = True
		break
if flag == True:
	print('HARD')
else:
	print('EASY')


p = int(input())
i = list(filter(lambda e: int(e) == 1, input().split(' ')))
if len(i) == 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
b = str(input())
if '1' in b:
	print('HARD')
else:
	print('EASY')


input()
k = list(map(int, input().split()))
for i in k:
	if i == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
a = [int(x) for x in input().split()]
x = a.count(1)
y = a.count(0)
if y < n:
	print('HARD')
else:
	print('EASY')


n = int(input())
strr = input()
if '1' in strr:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = [int(x) for x in input().split() if x.isdigit()]
ret = 'EASY'
for digit in l:
	if digit == 1:
		ret = 'HARD'
		break
print(ret)


n = input()
n = int(n)
temp = input().split()
y = [int(i) for i in temp]
if 1 in y:
	print('HARD')
else:
	print('EASY')


def main():
	lim = int(input())
	lst = set(input().split())
	if '1' in lst:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
l = input().split()

def solve():
	global n, l
	for el in l:
		if el == '1':
			return 'HARD'
	return 'EASY'
print(solve())


i = int(input())
j = list(map(int, input().split()))
p = j.count(1)
if p >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
ans = 1
for i in input().split():
	if i == '1':
		ans = 0
		break
if ans:
	print('EASY')
else:
	print('HARD')


n = int(input())
line = str(input())
if line.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
k = input()
k1 = k.split()
r = 0
for i in range(n):
	k2 = int(k1[i])
	if k2 == 1:
		r += 1
if r == 0:
	print('EASY')
elif r > 0:
	print('HARD')


str1 = input()
str2 = input().split(' ')
pok = 0
for s in str2:
	if int(s) == 1:
		pok = 1
if pok == 1:
	print('HARD')
else:
	print('EASY')


def prob(l, lst):
	lst = lst[:l]
	b = 'EASY'
	for i in range(l):
		c = l
		if lst[i] == 1:
			b = 'HARD'
	return b
l = int(input())
lst = list(map(int, input().split()))
print(prob(l, lst))


n = int(input())
prob_status = input()
for p in prob_status:
	if p == '1':
		print('HARD')
		break
else:
	print('EASY')


import sys
import math
input()
print('HARD' if sum(map(int, input().split())) else 'EASY')


q = int(input())
e = map(int, input().split())
print('HARD' if 1 in e else 'EASY')


n = int(input())
a = [int(x) for x in input().split()]
flag = 0
for i in a:
	if i == 1:
		flag = 1
		break
if flag == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
answers = list(map(int, input().split()))
easy = True
for ans in answers:
	if ans == 1:
		easy = False
if easy:
	print('EASY')
else:
	print('HARD')


n = int(input())
x = [int(x) for x in input('').split()]
n = 'EASY'
for i in range(len(x)):
	if x[i] == 1:
		n = 'HARD'
print(n)


import sys
N = int(input())
a = set(map(int, input().split()))
for i in a:
	if i == 1:
		print('HARD')
		sys.exit(0)
print('EASY')


def easy(n):
	if sum(n) > 0:
		return 'HARD'
	return 'EASY'
a = int(input())
n = list(map(int, input().split()))
print(easy(n))


n = int(input())
ls = list(map(int, input().split()))
x = sum(ls)
if x >= 1:
	print('HARD')
else:
	print('EASY')


input()
all = input()
if '1' in all:
	print('HARD')
else:
	print('EASY')


def ifEasy(arr):
	for i in arr:
		if i:
			return 'HARD'
	return 'EASY'
n = int(input())
arr = list(map(int, input().split()))
print(ifEasy(arr))


n = int(input())
a = map(int, input().split())
if all((i == 0 for i in a)):
	print('EASY')
else:
	print('HARD')


judges = int(input())
responses = input().split()
my_bool = True
for i in responses:
	if int(i) == 1:
		print('HARD')
		my_bool = False
		break
	else:
		continue
if my_bool:
	print('EASY')


n = input()
ans = input().split()
res = 'EASY'
if '1' in ans:
	res = 'HARD'
print(res)


n = int(input())
difficulty = input().split(' ')
string = 'EASY'
for i in range(n):
	if difficulty[i] == '1':
		string = 'HARD'
print(string)


def main():
	l = int(input())
	answers = [int(x) for x in input().split()]
	return 'HARD' if 1 in answers else 'EASY'
print(main())


n = int(input())
responses = [int(s) for s in input().split()]
print('HARD' if responses.count(1) >= 1 else 'EASY')


no_of_users = int(input())
users_response = list(map(int, input().split(' ')))
for res in users_response:
	if res:
		flag = 1
		break
	else:
		flag = 0
if flag:
	print('HARD')
else:
	print('EASY')


n = int(input())
opinions = list(input().split())
if any([a == '1' for a in opinions]):
	print('HARD')
else:
	print('EASY')


n = int(input())
inp = list(input().split())
hard = False
for i in range(n):
	if int(inp[i]) == 1:
		print('HARD')
		hard = True
		break
if hard == False:
	print('EASY')


n = int(input())
a = input()
if a.count('0') == n:
	print('EASY')
else:
	print('HARD')


n = int(input())

def intmaker(arr):
	for i in range(len(arr)):
		arr[i] = int(arr[i])
	return arr
x = intmaker(input().split())
count = 0
for i in range(len(x)):
	if x[i] == 1:
		count += 1
if count >= 1:
	print('HARD')
else:
	print('EASY')


def is_hard(l, p):
	sorted_list = sorted(l)
	if sorted_list[p - 1] == 0:
		return 'EASY'
	return 'HARD'
people = int(input())
response_list = [int(x) for x in input().split(' ')]
print(is_hard(response_list, people))


def is_hard(answers):
	for a in answers:
		if a == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
answers = list(map(int, input().split()))
print(is_hard(answers))


n = int(input())
s = list(map(int, input().split()))
c = s.count(0)
d = s.count(1)
if d >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(x) for x in input().split()]
f = False
for i in range(n):
	if a[i] > 0:
		f = True
		break
if f:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
flag = 0
i = 0
while i < n:
	if a[i] == 1:
		flag = 1
		break
	else:
		flag = 0
		i = i + 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
lst = list(map(int, input().split()))
(k, f) = (0, 0)
if len(lst) == n and n >= 1 and (n <= 100):
	if 1 in lst:
		print('HARD')
	else:
		print('EASY')


n = int(input())
A = list(map(int, input().split()))
for i in A:
	if i:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
l = map(int, input().split())
l = list(l)
print((max(l) > 0) * 'HARD', (max(l) == 0) * 'EASY')


n = int(input())
data = [0] * n
for i in range(0, 1):
	a = input().split(' ')
	for j in range(n):
		data[j] += int(a[j])
for i in range(0, len(data)):
	if data[i] == 1:
		stts = True
		break
	else:
		stts = False
if stts == True:
	print('HARD')
else:
	print('EASY')


main_input = input()
inputlist = input().split()
set_inputlist = set(inputlist)
if '1' in set_inputlist:
	print('HARD')
elif '0' in set_inputlist:
	print('EASY')


t = int(input())
count = 0
list1 = list(map(int, input().split()))
for j in list1:
	if j == 1:
		count = count + 1
if count >= 1:
	print('HARD')
else:
	print('EASY')


number = int(input())
aero = list(map(int, input().split()))
if sum(aero):
	print('HARD')
else:
	print('EASY')


count = int(input())
bools = [int(x) for x in input().split()]
bools = [True for x in bools if x == 0]
if len(bools) == count:
	print('EASY')
else:
	print('HARD')


import sys
a = int(input())
l = sys.stdin.readline()
if '1' in l:
	print('HARD')
else:
	print('EASY')


n = int(input())
verd = [i for i in input().split()]
lst = [i for i in str(verd)]
if lst.count('1') >= 1:
	print('HARD')
else:
	print('EASY')


n_ppl = int(input())
list_op = list(map(int, input().split()))
for i in range(n_ppl):
	if list_op[i] == 1:
		print('HARD')
		exit()
print('EASY')


from sys import stdin

def main():
	summ = 0
	stdin.readline()
	numeros = [int(x) for x in stdin.readline().strip().split()]
	for i in range(len(numeros)):
		summ = summ + numeros[i]
	if summ > 0:
		print('HARD')
	else:
		print('EASY')
main()


def difficulty_level(A: [int]) -> str:
	return 'HARD' if sum(A) > 0 else 'EASY'
n = int(input())
A = list(map(int, input().split()))
print(difficulty_level(A))


x = int(input())
k = 0
a = list(map(int, input().split()))
for i in range(x):
	if a[i] == 1:
		k = 1
		break
if k == 1:
	print('HARD')
else:
	print('EASY')


import sys
n = int(sys.stdin.readline().split()[0])
a = [int(i) for i in sys.stdin.readline().split()]
if sum(a) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
sum1 = 0
t = list(map(int, input().split()))
for i in t:
	sum1 += i
if sum1 == 0:
	print('EASY')
else:
	print('HARD')


nums = input().split(' ')
nums = int(nums[0])
ks = input().split(' ')
ks = [int(ks[i]) for i in range(nums)]
kss_1 = ks.count(1)
if kss_1 >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
it = input().split(' ')
it_int = [int(h) for h in it]
if 1 in it_int:
	print('HARD')
else:
	print('EASY')


n = int(input())
if '1' not in input():
	print('EASY')
else:
	print('HARD')


n = int(input())
array = input().split()
hard = False
if '1' in array:
	hard = True
if hard == True:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = input()
s = b.split()
global ss
ss = 'EASY'
for i in range(a):
	if int(s[i]) == 1:
		ss = 'HARD'
		break
print(ss)


n_p = int(input())
n_s = input()
n_s = n_s.split(' ')
a = 0
for x in n_s:
	if x == '1':
		print('HARD')
		a = 1
		break
if a == 0:
	print('EASY')


input()
l = ''.join(input().split())
if oct(int(l)) == '0o0':
	print('EASY')
else:
	print('HARD')


def get_output(array):
	array.sort()
	if array[-1] == 1:
		print('HARD')
	else:
		print('EASY')
length = int(input())
array = [int(i) for i in input().split()]
get_output(array)


import sys
n = int(input())
arr = input().split()
for i in range(0, n):
	if arr[i] == '1':
		print('HARD')
		sys.exit(0)
print('EASY')


n = int(input())
t = input()
if t.find('1') + 1:
	print('HARD')
else:
	print('EASY')


def main():
	a = input()
	b = input()
	if '1' in b:
		print('HARD')
	else:
		print('EASY')
main()


a = input()
b = input().split()
need = False
for k in b:
	if int(k) == 1:
		need = True
if need:
	print('HARD')
else:
	print('EASY')


from sys import stdin

def is_hard(str_array):
	for x in str_array:
		if x == '1':
			return True
	return False
stdin.readline()
str_array = stdin.readline().split()
if is_hard(str_array):
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input().split()
cnt = 0
for i in range(0, n):
	x = int(a[i])
	if x == 0:
		cnt += 1
if cnt == n:
	print('EASY')
else:
	print('HARD')


from sys import stdin, stdout
n = int(stdin.readline())
opinions = stdin.readline().split()
if '1' in opinions:
	stdout.write('HARD\n')
else:
	stdout.write('EASY\n')


n = int(input())
result = 0
standard = list(map(int, input().split()))
for i in standard:
	result = result or i
if result == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
ans = 'EASY'
inputList = map(int, input().split())
for i in inputList:
	if i == 1:
		ans = 'HARD'
		break
print(ans)


n = input()
s = input()
s = s.split(' ')
s = [int(x) for x in s]
result = 'EASY'
for x in s:
	if x == 1:
		result = 'HARD'
print(result)


n = int(input())
vect = input()
lst = [int(i) for i in vect.split()]
if 1 in lst:
	print('HARD')
else:
	print('EASY')


n = int(input())
lst = [int(x) for x in input().split()]
tmp = 0
for i in range(n):
	if lst[i] == 1:
		print('HARD')
		tmp = 1
		break
if tmp != 1:
	print('EASY')


n = int(input())
lst = [int(s) for s in input().split()]
if lst.count(1) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
ll = [int(i) for i in input().split(' ')]
flag = 0
for i in ll:
	flag = i or flag
if flag:
	print('HARD')
else:
	print('EASY')


c = input()
n = int(c)
l = list(map(int, input().split()))
m = []
o = []
for i in l:
	if i != 0:
		o.append(i)
	else:
		m.append(i)
if len(o) > 0:
	print('HARD')
else:
	print('EASY')


try:
	l = int(input())
	ar = list(map(int, input().split()))
	for i in ar:
		if i != 0:
			print('HARD')
			break
	else:
		print('EASY')
except:
	pass


n = int(input())
s = list(map(int, input().split(' ')))
b = True
for i in s:
	if not i:
		pass
	else:
		b = False
		break
if b:
	print('EASY')
else:
	print('HARD')


import sys
input = sys.stdin.readline
n = int(input())
k = list(map(int, input().split()))
if 1 in k:
	print('HARD')
else:
	print('EASY')


import sys
n = int(sys.stdin.readline())
lst = str(sys.stdin.readline()).split()
for i in range(n):
	if lst[i] == '1':
		print('HARD')
		break
else:
	print('EASY')


import sys
data = sys.stdin.readlines()
n = int(data[0])
if len([int(x) for x in data[1].split() if int(x) != 0]) == 0:
	sys.stdout.write('EASY')
else:
	sys.stdout.write('HARD')


n = int(input())
string = input()
stri = string.split()
for i in range(n):
	stri[i] = int(stri[i])
	i += 1
if 1 in stri:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = [int(x) for x in input().split()]
if any(l):
	print('HARD')
else:
	print('EASY')


a = int(input())
count = 0
arr = list(map(int, input().split()))
if arr.count(0) == a:
	print('EASY')
else:
	print('HARD')


def main():
	n = int(input().strip())
	opinion = list(map(int, input().strip().split()))
	print(f"{('HARD' if any(opinion) else 'EASY')}")
main()


import sys
counter = 0
for line in sys.stdin:
	if counter == 1:
		answers = [int(j) for j in line.split()]
		break
	counter += 1
print('HARD' if any(answers) else 'EASY')


def func(n):
	x = list(map(int, input().split()))
	for i in x:
		if i == 1:
			print('HARD')
			return
	print('EASY')
n = int(input())
func(n)


reviewers = int(input())
list_ = list(map(int, input().split()))
if 1 in list_:
	print('HARD')
else:
	print('EASY')


no_of_lines = 2
lines = ''
for i in range(no_of_lines):
	lines += input() + '\n'
j = lines.split()
flag = True
for i in range(1, len(j)):
	if j[i] == '1':
		flag = False
if flag == True:
	print('EASY')
else:
	print('HARD')


n = int(input())
p = input()
p = p.split()
t = 0
for i in p:
	if int(i) == 1:
		t = t + 1
if t == 0:
	print('EASY')
else:
	print('HARD')


def s(a):
	for i in a:
		if i == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
a = list(map(int, input().split()))[:n]
print(s(a))


n = input()
arr = [int(num) for num in input().split(' ')]
if sum(arr) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
q = list(map(int, input().split()))
if (1 in q) is True:
	print('HARD')
else:
	print('EASY')


x = int(input())
votaciones = list(map(int, input().split()))
if sum(votaciones):
	print('HARD')
else:
	print('EASY')


n = int(input())
t = tuple(input().split())
if '1' in t:
	print('HARD')
else:
	print('EASY')


input()
print(('EASY', 'HARD')[bool(sum(map(int, input().split())))])


n = int(input())
opinions = [x for x in input().split()]
for opinion in opinions:
	if opinion == '1':
		print('HARD')
		exit()
print('EASY')


def solve(votes):
	if any(votes):
		return 'HARD'
	else:
		return 'EASY'

def main():
	_ = int(input())
	votes = list(map(int, input().split()))
	print(solve(votes))
main()


import sys
n = int(input())
a = input()
list1 = a.split(' ')
for i in list1:
	if i == '1':
		print('HARD')
		sys.exit(0)
print('EASY')


x = int(input())
l = list(map(int, input().split()))
y = l.count(1)
if y != 0:
	print('HARD')
else:
	print('EASY')


_ = input()
input = [int(x) for x in input().split()]
hard = False
for i in range(len(input)):
	if input[i]:
		hard = True
		break
if hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = []
arr = list(map(int, input().split()))
if n == 1:
	if arr[0] == 0:
		print('EASY')
	else:
		print('HARD')
elif sum(arr) == 0:
	print('EASY')
else:
	print('HARD')


input()
ar = input().split()
if '1' in ar:
	print('HARD')
else:
	print('EASY')


_ = input()
l = [*input()]
if '1' in l:
	print('HARD')
else:
	print('EASY')


import sys
n = int(input())
res = list(map(int, input().split()))
for r in res:
	if r == 1:
		print('HARD')
		sys.exit(0)
print('EASY')


input()
s = input()
ss = ','.join(s.split())
if '1' in ss:
	print('HARD')
else:
	print('EASY')


def main(n, lst):
	if sum(lst) != 0:
		return 'HARD'
	else:
		return 'EASY'
n = int(input())
lst = list(map(int, input().split()))
print(main(n, lst))


n = int(input())
a = [int(i) for i in input().split()]
est = True
for i in a:
	if i == 1:
		est = False
		break
if est:
	print('EASY')
else:
	print('HARD')


def main():
	input()
	print(('EASY', 'HARD')['1' in input()])
main()


n = int(input())
inp = input()
sum = 0
i = 0
while i <= len(inp):
	a = inp[i]
	sum = sum + int(a)
	i = i + 2
if sum < 1:
	print('EASY')
else:
	print('HARD')


def call():
	n = int(input())
	l = list(map(int, input().split()))
	f = 0
	for i in l:
		if i == 1:
			print('HARD')
			f = 1
			break
	if f == 0:
		print('EASY')
call()


from sys import stdin, exit
n = int(input())
all = [int(x) for x in input().split(' ')]
for i in all:
	if i != 0:
		print('HARD')
		exit(0)
print('EASY')


n = int(input())
l = list(map(int, input().split()))
c = 0
for i in range(0, n):
	if l[i] == 1:
		c = 1
		break
	else:
		c = 0
if c == 1:
	print('HARD')
else:
	print('EASY')


count = input()
data = input()
data = data.split(' ')

def data_analysis(data):
	for i in data:
		if i == '1':
			return 'HARD'
	return 'EASY'
print(data_analysis(data))


x = int(input())
flag = 0
y = list(map(int, input().split()))
for i in range(x):
	if y[i] == 1:
		print('HARD')
		flag = 1
		break
if flag == 0:
	print('EASY')


n = int(input())
easy = 0
y = input()
for x in range(2 * n - 1):
	if y[x] == '0':
		easy = easy + 1
if easy == n:
	print('EASY')
else:
	print('HARD')


step = int(input())
arr_num = [int(j) for j in input().split()]
if 1 in arr_num:
	print('HARD')
else:
	print('EASY')


n = int(input())
k = 0
m = list(map(int, input().split()))
for j in range(0, n):
	if m[j] == 1:
		k = 1
if k == 1:
	print('HARD')
else:
	print('EASY')


import sys
n = int(input())
arr = list(map(int, input().split()))
if sum(arr) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
x = [int(x) for x in input().split()]
i = 0
j = ''
while i < n:
	if x[i] == 0:
		i += 1
		j = 1
	else:
		j = 2
		i += 1
		break
if j == 1:
	print('EASY')
else:
	print('HARD')


(n, g) = (int(input()), 0)
i = input().split()
for k in range(n):
	if int(i[k]) != 0:
		g = 1
		print('HARD')
		break
if g == 0:
	print('EASY')


t = int(input())
s = list(map(int, input().split()))
c = 0
for i in range(len(s)):
	if s[i] == 1:
		c = 1
if c == 1:
	print('HARD')
else:
	print('EASY')


import os
import sys
from io import BytesIO, IOBase
import math
import collections

def main():
	n = int(input())
	a = list(map(int, input().split()))
	print('HARD' if any((i for i in a)) else 'EASY')
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
main()


n = int(input())
a = list(map(int, input().split()))
x = a.count(0)
if x == len(a):
	print('EASY')
else:
	print('HARD')


q = int(input())
ans = input()
arr = ans.split(' ')
for i in range(q):
	if int(arr[i]) == 1:
		print('HARD')
		quit()
print('EASY')


n = int(input())
sequence = [int(i) for i in input().split(' ')]
print('HARD') if sum(sequence) >= 1 else print('EASY')


def f():
	result = 'EASY'
	n = input()
	c = input().split(' ')
	for i in c:
		if i == '1':
			result = 'HARD'
	return result
print(f())


r = lambda : map(int, input().split())
r()
n = r()
print('HARD' if len(list(filter(lambda x: x, n))) else 'EASY')


ppl = int(input())
line = list(map(int, input().split()))
found = 0
for i in range(ppl):
	if line[i]:
		print('HARD')
		found = 1
		break
if not found:
	print('EASY')


n = int(input())
a = input()
b = a.split()
l = []
for i in b:
	l.append(int(i))
f = 0
for i in l:
	if i == 1:
		f = 1
		break
if f == 0:
	print('EASY')
else:
	print('HARD')


test = int(input())
lst = list(map(int, input().split()))
strg = str(lst)
if '1' in strg:
	print('HARD')
else:
	print('EASY')


n = int(input())
res = input().split(' ')
resnum = 0
for i in res:
	if i == '1':
		resnum += 1
if resnum > 0:
	print('HARD')
else:
	print('EASY')


kol = int(input())
golosa = input()
for a in golosa:
	if a == '1':
		print('HARD')
		break
if a != '1':
	print('EASY')


n = int(input())
st = ''.join(map(str, input().split()))
c = 0
for i in st:
	if i == '1':
		c += 1
if c != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input()
c = 0
z = 0
for i in range(len(a)):
	z = a[i]
	if z == '1':
		c += 1
if c > 0:
	print('HARD')
else:
	print('EASY')


def f(l):
	for i in l:
		if i == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
l = map(int, input().split())
print(f(l))


n = 3
n = int(input())
ans = '0 0 1'.split(' ')
ans = input().strip().split(' ')
if any(map(lambda x: x == '1', ans)):
	print('HARD')
else:
	print('EASY')


b = int(input())
a = list(map(int, input().split()))
t = 'EASY'
for i in range(b):
	if a[i] == 1:
		t = 'HARD'
print(t)


n = int(input())
check = sum(map(int, input().split()))
print('HARD' if check else 'EASY')


def main():
	input()
	arr = list(map(int, input().split()))
	if arr.count(1):
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
a = [int(x) for x in input().strip().split()]
m = set(a)
if 1 in m:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))
m = max(l)
if m == 1:
	print('HARD')
else:
	print('EASY')


number = int(input())
listhebey = list(map(int, input().split()))
if 1 in listhebey:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = input().split()
s2 = list(s)
for i in range(len(s2)):
	s2[i] = int(s2[i])
if sum(s2) > 0:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = input()
if b.count('1') > 0:
	print('HARD')
else:
	print('EASY')


num = int(input())
arr = [0] * num
arr = input().split()
x = True
for y in range(num):
	if arr[y] == '1':
		x = False
if x == False:
	print('HARD')
else:
	print('EASY')


n = int(input())
answers = map(int, input().split(' '))
if max(answers) == 1:
	print('HARD')
else:
	print('EASY')


size = int(input())
arr = list(map(int, input().split()))
flag = True
for i in arr:
	if i == 1:
		print('HARD')
		flag = False
		break
if flag:
	print('EASY')


a = int(input())
l = list(map(int, input().split()))
r = 'EASY'
for i in range(len(l)):
	if l[i] == 1:
		r = 'HARD'
print(r)


lok = input()
vvod = input().split()
if '1' in vvod:
	print('HARD')
else:
	print('EASY')


def main():
	n = int(input())
	for i in input().split():
		if i == '1':
			print('HARD')
			return ()
	print('EASY')
main()


n = input()
line = input()
b = line.find('1')
if b == -1:
	print('EASY')
else:
	print('HARD')


p = input()
a = list(input().split())

def check():
	if len(a) != int(p):
		return 'ANSWERS DONT MATCH PEOPLE'
	if '1' in a:
		return 'HARD'
	else:
		return 'EASY'
print(check())


T = int(input())
l = list(map(int, input().split()))
one = l.count(1)
if one >= 1:
	print('HARD')
else:
	print('EASY')


s = input()
ss = input()
nums = ss.split()
nums_ints = map(int, nums)
saw_one = False
for x in nums_ints:
	if x == 1:
		print('HARD')
		saw_one = True
		break
if not saw_one:
	print('EASY')


q = int(input())
input_data = input()
list1 = input_data.split(' ')
final_list = []
for n in list1:
	final_list.append(int(n))
if max(final_list) == 1:
	print('HARD')
else:
	print('EASY')


num_people = int(input())
responses = input()
if '1' in responses:
	print('HARD')
else:
	print('EASY')


tc = int(input())
a = list(map(int, input().split()))[:tc]
flag = 0
for x in a:
	if x == 1:
		flag = 1
		break
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = [int(x) for x in input().split()]
c = 0
for i in l:
	if i != 0:
		c += 1
if c > 0:
	print('HARD')
else:
	print('EASY')


amount = int(input())
ans = list(map(int, input().split()))
if ans.count(1) != 0:
	print('HARD')
else:
	print('EASY')


numberofvoters = int(input())
vote = [int(i) for i in input().split()]
c = max(vote)
if c > 0:
	print('HARD', end=' ')
else:
	print('EASY', end=' ')


n = int(input())
response = []
response = list(map(int, input().strip().split(' ')[:n]))
opinion = 'EASY'
if 1 in response:
	opinion = 'HARD'
print(opinion)


n = int(input())
s = input()
s1 = list(s)
for i in range(len(s1)):
	a = s1.count('1')
if a != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
ans = [int(x) for x in input().split(' ')]
res = 'EASY'
for a in ans:
	if a == 1:
		res = 'HARD'
print(res)


num = int(input())
opi = set(input().split(' '))
if '1' in opi:
	print('HARD')
else:
	print('EASY')


aantal = int(input())
pers = input()
if '1' in pers:
	print('HARD')
else:
	print('EASY')


n = input()
s = input()
if '1' not in s:
	print('EASY')
else:
	print('HARD')


num = input()
inputs = list(map(int, input().split()))
if any(inputs) == 1:
	print('HARD')
else:
	print('EASY')


from sys import stdin
n = input()
s = [int(i) for i in stdin.readline().split()]
if 1 in s:
	print('HARD')
else:
	print('EASY')


input()
r = input()
for x in r.split(' '):
	if x == '1':
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
lst = [int(x) for x in input().split()]
if set(lst) == {0}:
	print('EASY')
else:
	print('HARD')


n = input()
n = input()
k = 1
for i in n:
	if i == '1':
		print('HARD')
		k = 0
		break
if k == 1:
	print('EASY')


x = int(input())
y = list(input().split(' '))
f = 0
if len(y) == x:
	for i in y:
		if i == '1':
			f += 1
if f == 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
b = list(map(int, input().split()))
for i in range(len(b)):
	if b[i] == 1:
		print('HARD')
		exit(0)
print('EASY')


n = int(input())
if '1' in input():
	print('HARD')
	exit(0)
print('EASY')


x = int(input())
maxi = [int(x) for x in input().split()]
if maxi.count(1) >= 1:
	print('HARD')
else:
	print('EASY')


def main():
	number_of_opinions = int(input())
	opinions = list(map(int, input().split()))
	output = verdict(opinions)
	print(output)

def verdict(opinions):
	if sum((1 for x in opinions if x == 1)) == 0:
		return 'EASY'
	return 'HARD'
main()


n = int(input())
ins = [int(x) for x in input().split()]
answer = 'EASY'
for x in ins:
	if x == 1:
		answer = 'HARD'
		break
print(answer)


n = int(input())
if n >= 1 and n <= 100:
	opinion = list(map(int, input().split()))
	if len(opinion) == n:
		if 1 in opinion:
			print('HARD')
		else:
			print('EASY')


n = int(input())
i = str(input())
a = 0
i = i.replace(' ', '')
for x in i:
	if x == '1':
		a = 1
		break
if a == 1:
	print('HARD')
else:
	print('EASY')


n = input()
llist = input().split()
if llist.count('1') == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
red_flag = False
a = list(map(int, input().split()))
for number in a:
	if number == 1:
		red_flag = True
		break
if red_flag:
	print('HARD')
else:
	print('EASY')


import sys, math
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return s[:len(s) - 1]

def invr():
	return map(int, input().split())
t = 1
for tt in range(t):
	n = inp()
	a = inlt()
	if 1 in a:
		print('HARD')
	else:
		print('EASY')


a = int(input())
e = 0
r = input().split()
for i in range(0, a):
	if int(r[i]) == 1:
		e = 1
if e == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = list(map(int, input().split()))
pot = 0
for i in range(n):
	pot += a[i]
if pot:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list((int(i) for i in input().split(' ')))
stopped = False
for i in a:
	if i == 1:
		print('HARD')
		global stoppped
		stopped = True
		break
if not stopped:
	print('EASY')


n = input()
arr = map(int, input().split())
cnt = 0
for i in arr:
	cnt += i
if cnt == 0:
	print('EASY')
else:
	print('HARD')


def get_number():
	return int(input())

def get_numbers():
	return list(map(int, input().split()))
n = get_number()
a = get_numbers()
if all([not x for x in a]):
	print('EASY')
else:
	print('HARD')


n = int(input())
opinion = list(map(int, input().split()))
result = 'EASY'
if 1 in opinion:
	result = 'HARD'
print(result)


len = int(input())
m = list(map(int, input().split(' ')))
if 1 in m:
	print('HARD')
else:
	print('EASY')


n = int(input())
lst = input().split()
ans = 'EASY'
for rep in lst:
	if rep == '1':
		ans = 'HARD'
print(ans)


a = int(input())
b = [int(i) for i in input().split()]
for i in range(a):
	if b[i] == 1:
		print('HARD')
		b = 3
		break
	else:
		continue
if b != 3:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))
x = 0
for i in l:
	x = x | i
if x == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
mas = list(map(int, input().split()))
if 1 in set(mas):
	print('HARD')
else:
	print('EASY')


t1 = int(input())
t2 = input()
otv = t2.split()
otv = [int(x) for x in otv]
if sum(otv) == 0:
	print('EASY')
else:
	print('HARD')


i = 0
n = int(input())
a = input().split()
flag = 0
while n > i:
	if a[i] == '1':
		flag = 1
	i = i + 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = [int(x) for x in input().split()]
su = 0
for i in l:
	su += i
if su > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
f = False
for x in a:
	if x == 1:
		f = True
		print('HARD')
		break
if not f:
	print('EASY')


n = int(input())
arr = [int(x) for x in input().split()]
i = 0
hard = False
while n > i:
	if arr[i] == 1:
		hard = True
	i = i + 1
if hard:
	print('HARD')
else:
	print('EASY')


try:
	x = int(input())
	l = list(map(int, input().split()))
	lo = 0
	for i in l:
		if i == 1:
			print('HARD')
			lo = 1
			break
	if lo == 0:
		print('EASY')
except:
	pass


n = int(input())
l = list(map(int, input().split()))
while 1 in l:
	print('HARD')
	break
else:
	print('EASY')


n = int(input())
s = list(map(int, input().strip().split()))
if s.count(1) > 0:
	print('HARD')
else:
	print('EASY')


asked = input()
ops = input()
single_ops = ops.split(' ')
has_diff = False
for i in single_ops:
	if i == '1':
		has_diff = True
if has_diff == True:
	print('HARD')
else:
	print('EASY')


import sys
from sys import stdin
n = int(stdin.readline())
list1 = [int(x) for x in stdin.readline().rstrip().split()]
if 1 in list1:
	print('HARD')
else:
	print('EASY')


a = int(input())
c = list(input())
e = c.count('0')
e1 = c.count('1')
r = e == a
b = e != a
print(str(r).replace('True', 'EASY').replace('False', 'HARD'))


x = int(input())
l = list(map(int, input().split()))
f = -1
for i in range(0, x):
	if l[i] == 1:
		f = f + 1
if f < 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
b = [int(s) for s in input().split()]
k = True
for i in b:
	if i == 1:
		print('HARD')
		k = False
		break
if k == True:
	print('EASY')


t = int(input())
x = []
x = input().split(' ')
y = []
for i in range(0, t):
	y.append(int(x[i]))
y.sort(reverse=True)
if y[0] == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
li = list(input())
if '1' in li:
	print('HARD')
else:
	print('EASY')


num = int(input())
count = 0
list1 = input().split()
for i in list1:
	if i == '1':
		print('HARD')
		break
	else:
		count = count + 1
if count == len(list1):
	print('EASY')


n = int(input())
l = map(int, input().split())
hard: bool = False
for i in l:
	if i == 1:
		hard = True
if hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
string = input()
k = True
for i in range(len(string)):
	if string[i] == '1':
		k = False
		print('HARD')
		break
if k:
	print('EASY')


n = int(input())
vals = map(int, input().split())
ans = 0
for i in vals:
	ans |= i
print('HARD' if ans else 'EASY')


i = int(input())
x = [int(i) for i in input().split()]
j = 0
EASY = 0
HARD = 0
if len(x) == 1:
	if x[0] == 1:
		print('HARD')
	else:
		print('EASY')
else:
	for l in range(i):
		if x[l] == 1:
			HARD += 1
		else:
			EASY += 1
	if HARD >= 1:
		print('HARD')
	else:
		print('EASY')


import sys
n = int(input())
x = [int(i) for i in input().split()]
if 1 in x:
	print('HARD')
else:
	print('EASY')


n = input()
b = input().split()
flag = 1
for i in b:
	if i == '1':
		print('HARD')
		flag = 0
		break
if flag == 1:
	print('EASY')


n = int(input())
d = [int(x) for x in input().split()]
c = d.count(1)
if c > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
A = list(map(int, input().split()))
a = 0
for elem in A:
	if elem == 1:
		a += 1
if a == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
temp = list(map(int, input().split()))
temp.sort()
a = temp.pop()
if a == 1:
	print('HARD')
else:
	print('EASY')


num = int(input())
opinion = map(int, input().split())
if any(opinion):
	print('HARD')
else:
	print('EASY')


n = int(input())
s = set(map(int, input().split()))
if len(s) == 1 and 0 in s:
	print('EASY')
else:
	print('HARD')


import sys
input = sys.stdin.readline

def main():
	num = int(input())
	difficulties = list(map(int, input().split()))
	for d in difficulties:
		if d == 1:
			print('HARD')
			break
	else:
		print('EASY')
main()


n = int(input())
h = 1
for i in input().split():
	if i == '1':
		h = 0
		print('HARD')
		break
if h == 1:
	print('EASY')


n = int(input())
x = list(map(int, input().split()))
temUm = False
for e in x:
	if e == 1:
		temUm = True
if temUm == True:
	print('HARD')
else:
	print('EASY')


num = input()
students = input()
for count in students:
	if count == '1':
		print('HARD')
		break
if count == '0':
	print('EASY')


n = int(input())
chisla = input()
chisla_list = chisla.split(' ')
if '1' in chisla_list:
	print('HARD')
else:
	print('EASY')


tenp = input()
a = input()
if '1' in a:
	print('HARD')
else:
	print('EASY')


number = int(input())
(args, *kwargs) = input().split()
total = tuple(args) + tuple(kwargs)
easy = 0
hard = 0
for i in total:
	if i == '0':
		easy += 1
	else:
		hard += 1
if hard >= 1:
	print('HARD')
else:
	print('EASY')


t = int(input())
data = [int(i) for i in input().split()]
if 1 in data:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [not bool(int(i)) for i in input().split()]
print(['HARD', 'EASY'][all(a)])


n = int(input())
if ''.join(input().split()) == '0' * n:
	print('EASY')
else:
	print('HARD')


_1 = '236a'
_2 = '339a'
_3 = '266a'
_4 = '96a'
_5 = '236a'
_6 = '281a'
_7 = '546a'
_8 = '116a'
_9 = '977a'
_10 = '266b'
_11 = '110a'
_12 = '41a'
_13 = '734a'
_14 = '133a'
_15 = '467a'
_16 = '158a'
_17 = '677a'
_18 = '580a'
_19 = '344a'
_20 = '1030a'
flag = False
n = int(input())
l = list(map(int, input().split()))
for i in l:
	if i == 1:
		flag = True
if flag:
	print('HARD')
else:
	print('EASY')


num = int(input())
seq = input().split()
if '1' in seq:
	print('HARD')
else:
	print('EASY')


contesters = int(input(''))
answers = input('').split(' ')
running = True
hard = False
for cntstr in range(len(answers)):
	if running == True:
		if int(answers[cntstr]) == int(0):
			running = True
		if int(answers[cntstr]) == int(1):
			hard = True
			running = False
if hard == False:
	print('EASY')
elif hard == True:
	print('HARD')


d = int(input())
m = input().split()
for i in m:
	if i == '1':
		print('HARD')
		exit(0)
print('EASY')


n = int(input())
a = [int(x) for x in input().split()]
s = sum(a)
if s >= 1:
	print('HARD')
else:
	print('EASY')


(lambda _, a: print('EASY') if sum(a) == 0 else print('HARD'))(input(), map(int, input().split()))


exec('n = int(input())\nif int(\'0b\' + \'\'.join(input().split()), 2):\n    print("HARD")\nelse:\n    print(\'EASY\')')


num = input()
mat = input()
print('HARD' if '1' in mat else 'EASY')


import sys
from random import choice, randint
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def MI():
	return map(int, sys.stdin.readline().strip().split())

def LI():
	return list(map(int, sys.stdin.readline().strip().split()))

def LLI():
	return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().strip().split()]

def LF():
	return [float(x) for x in sys.stdin.readline().strip().split()]

def LS():
	return sys.stdin.readline().strip().split()

def I():
	return int(sys.stdin.readline().strip())

def F():
	return float(sys.stdin.readline().strip())

def S():
	return sys.stdin.readline().strip()

def pf(s):
	return print(s, flush=True)

def pe(s):
	return print(str(s), file=sys.stderr)

def JA(a, sep):
	return sep.join(map(str, a))

def JAA(a, s, t):
	return s.join((t.join(map(str, b)) for b in a))
inp = sys.stdin.readline
out = sys.stdout.write

def main():
	n = I()
	m = LI()
	if 1 in m:
		pf('HARD')
	else:
		pf('EASY')
main()


n = int(input())
arr = list(map(int, input().split()))
z = sum(arr)
if z > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
quan = 0
if 1 <= n <= 100:
	d = dict(zip(list(range(n)), input().split()))
	for value in d.values():
		value = int(value)
		if value == 1:
			print('HARD')
			break
		elif value == 0:
			quan += 1
			if quan == len(d):
				print('EASY')
else:
	print('Enter valid data!')


a = input()
b = input()
a = b.find('1')
if a == -1:
	print('EASY')
else:
	print('HARD')


input()
a = [int(x) for x in input().split()]
print(['EASY', 'HARD'][sum(a) >= 1])


k = map(int, input().split())
l = list(map(int, input().split()))
if max(l) == 1:
	print('HARD')
else:
	print('EASY')


x = int(input())
emon = input().split()
a = emon.count('1')
if a == 0:
	print('EASY')
else:
	print('HARD')


n = input()
count = 0
m = input().split()
for i in m:
	count += int(i)
if count > 0:
	print('HARD')
else:
	print('EASY')


input()
l = list(input().split())
if l.count('1') != 0:
	print('HARD')
else:
	print('EASY')


def isep(answers):
	for answer in answers:
		if answer == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
answers = map(int, input().split())
print(isep(answers))


N = int(input())
responses = [int(x) for x in input().split()]
if any((x == 1 for x in responses)):
	print('HARD')
else:
	print('EASY')


from __future__ import print_function
from __future__ import division
from sys import stdin
lista = [int(x) for x in stdin.read().split()]
lista.pop(0)
if sum(lista) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
opinions = [int(x) for x in input().split()]
flag_hard = 0
for i in range(n):
	if opinions[i] > 0:
		flag_hard = 1
		break
if flag_hard > 0:
	print('HARD')
else:
	print('EASY')


input()
a = list(map(int, input().split()))
if any(a):
	print('HARD')
else:
	print('EASY')


n = int(input())
suggestions = list(map(int, input().split()))
hard = 1
if hard not in suggestions:
	print('EASY')
else:
	print('HARD')


a = int(input())
array = [int(i) for i in input().split()]
for i in array:
	if i == 1:
		print('HARD')
		exit()
print('EASY')


import sys
n = int(input())
order = input().split()
for i in order:
	if i == '1':
		print('HARD')
		sys.exit(0)
print('EASY')


n = input()
op = input()
op1 = op.split()
hard = False
for i in range(len(op1)):
	if op1[i] == '1':
		hard = True
	else:
		continue
if hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = input().split()
flag = 0
for i in s:
	if i == '1':
		flag = 1
		break
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
gorusler = input()
gorusler = gorusler.split(sep=' ')
kntrl = 0
for x in gorusler:
	if x == '1':
		kntrl = 1
		break
if kntrl == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
string = input()
if string.count('0') == n:
	print('EASY')
else:
	print('HARD')


def search_easy_problem(num_asked, responses):
	problem_difficulty = 'EASY'
	for res in responses:
		if int(res) == 1:
			problem_difficulty = 'HARD'
			break
	print(problem_difficulty)
num_asked = int(input())
responses = input().split()
search_easy_problem(num_asked, responses)


A = int(input())
B = input().split()
q = 'EASY'
for s in range(A):
	if B[s] == '1':
		q = 'HARD'
print(q)


int(input())
opinions = ' ' + input()
if opinions.find('1') > 0:
	print('HARD')
else:
	print('EASY')


n = input()
a = input().split()
hard = False
for i in a:
	if i == '1':
		hard = True
		break
if hard:
	print('HARD')
else:
	print('EASY')


no_of_people = int(input())
l = list(map(int, input().split()))
ct = 0
for i in l:
	if i == 1:
		ct += 1
if ct != 0:
	print('HARD')
else:
	print('EASY')


t = int(input())
j = list(map(int, input().split()))
flag = 0
for test in range(0, t):
	if j[test] == 1:
		flag = 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
l1 = list(map(int, input().split()))
c = l1.count(1)
if c == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
ans = list(input().split())
num = 0
for i in ans:
	i = int(i)
	num += i
if num != 0:
	print('HARD')
else:
	print('EASY')


def solve(np, votes):
	if '1' in votes and len(votes) == int(np):
		return 'HARD'
	else:
		return 'EASY'

def main(np, votes):
	print(solve(np, votes))
np = input()
votes = input().replace(' ', '')
main(np, votes)


n = input()
line = input().split()
total = sum(map(int, line))
if total == 0:
	print('EASY')
else:
	print('HARD')


bloat = input()
feedback = input().split()
if '1' in feedback:
	print('HARD')
else:
	print('EASY')


n = int(input())
ch = 0
List = list(map(int, input().split()))
for i in range(n):
	if List[i] == 1:
		ch = 1
if ch == 1:
	print('HARD')
else:
	print('EASY')


from sys import stdin

def main():
	tc = int(stdin.readline())
	num = [int(x) for x in stdin.readline().split()]
	if sum(num) != 0:
		print('HARD')
	else:
		print('EASY')
main()


import sys
import itertools
from functools import reduce
from math import gcd

def test():
	n = int(sys.stdin.readline().strip())
	ai = list(map(int, sys.stdin.readline().strip().split()))
	if max(ai) == 1:
		print('HARD')
	else:
		print('EASY')

def main():
	test()
main()


N = int(input())
a = map(int, input().split(' '))
arr = []
for i in a:
	if i == 0:
		arr.append('EASY')
	else:
		arr.append('HARD')
if 'HARD' in arr:
	print('HARD')
else:
	print('EASY')


n = int(input())
L = list(map(int, input().split()))
f = 0
for i in L:
	if i == 1:
		f = 1
		break
	if i == 0:
		pass
if f == 0:
	print('EASY')
else:
	print('HARD')


m = input()
n = input()
result = 0
for i in range(0, len(n)):
	if n[i] == '1':
		result = 1
if result == 1:
	print('HARD')
else:
	print('EASY')


def isEasy(n, arr):
	for ele in arr:
		if ele == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
arr = list(map(int, input().split()))
print(isEasy(n, arr))


(unused, answers) = (input(), input())
print('HARD' if '1' in answers else 'EASY')


n = int(input())
str = [int(x) for x in input().split()]
w = 0
for y in str:
	w += 1
	if y == 1:
		print('HARD')
		break
	elif w == n:
		print('EASY')


a = int(input())
b = input()
f = 0
for i in b:
	if i == '1':
		f = 1
if f == 0:
	print('EASY')
else:
	print('HARD')


irrelevant = int(input())
relevant = [int(x) for x in input().split()]
if 1 in relevant:
	print('HARD')
else:
	print('EASY')


s = int(input())
a = list(input())
if '1' in a:
	print('HARD')
else:
	print('EASY')


n = int(input())
list1 = list(map(int, input().split()))
flag = False
for i in range(len(list1)):
	if list1[i] == 1:
		flag = True
if flag:
	print('HARD')
else:
	print('EASY')


N = int(input())
responses = input().split()
if '1' in responses:
	print('HARD')
else:
	print('EASY')


inp = input()
comments = input()
commentslist = comments.split(' ')
if '1' in commentslist:
	print('HARD')
else:
	print('EASY')


n = eval(input())
l = list(map(int, input().split()))
f = False
i = 0
while i < len(l):
	if l[i] == 1:
		f = True
		break
	i += 1
if f:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = tuple(map(int, input().split()))
if all((i == 0 for i in arr)):
	print('EASY')
else:
	print('HARD')


n = int(input())
opinions = list(map(int, input().split()))
i = 0
while i < n:
	if opinions[i] == 1:
		print('HARD')
		break
	elif i == n - 1:
		print('EASY')
		break
	else:
		i += 1


x = int(input())
l = list(map(int, input().split()))
a = l.count(0)
if a == x:
	print('EASY')
else:
	print('HARD')


m = int(input())
n = input().rstrip().split()

def easy(n):
	o = sum([int(s) for s in n])
	if o > 0:
		ans = 'HARD'
	else:
		ans = 'EASY'
	return ans
print(easy(n))


import sys
input = sys.stdin.readline
n = int(input())
l = list(map(int, input().split()))
print('EHAASRYD'[int(bool(sum(l)))::2])


number = int(input())
answer__ = 0
answers_map = list(map(int, input().split()))
for i in range(number):
	if answers_map[i]:
		answer__ = 1
if answer__:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = map(int, input().split())
b = list(b)
b.sort(reverse=True)
if b[0] == 1:
	print('HARD')
elif b[0] == 0:
	print('EASY')


input()
l = [i for i in input().split()]
if '1' in l:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input()
a = a.split()
flag = 0
for i in range(n):
	if flag == 0:
		if a[i] == '1':
			print('HARD')
			flag = 1
if flag == 0:
	print('EASY')


def easy():
	num = input()
	line = input().split(' ')
	for i in line:
		if i == '1':
			print('HARD')
			return
	print('EASY')
easy()


n = int(input())
nums = input()
lst = nums.split()
ans = 'EASY'
if '1' in lst:
	ans = 'HARD'
print(ans)


n = int(input())
arr = [int(e) for e in input().split(' ')]
if max(arr):
	print('HARD')
else:
	print('EASY')


n = int(input())
res = None
a = [int(i) for i in input().split()]
for i in range(len(a)):
	if a[i] == 0:
		res = 'EASY'
	else:
		res = 'HARD'
		break
print(res)


test = int(input())
ar = [int(x) for x in input().split()]
if 1 in ar:
	print('HARD')
else:
	print('EASY')


n = int(input())
m = map(int, input().split())
a = sum(m)
if a == 0:
	print('EASY')
else:
	print('HARD')


def ans(n):
	for n in n:
		if n == 1:
			return 'HARD'
	return 'EASY'
a = int(input())
n = map(int, input().split())
print(ans(n))


q = lambda : map(int, input().split())
(n,) = q()
for i in q():
	if i == 1:
		print('HARD')
		exit()
print('EASY')


n = int(input())
a = input().split()
for i in range(len(a)):
	a[i] = int(a[i])
if a.count(1) >= 1:
	print('HARD')
else:
	print('EASY')


f_input = int(input())
s_input = input()
s_input_s = s_input.split(' ')
x = 0
if s_input_s.count('1') > 0:
	print('HARD')
else:
	print('EASY')


def easy(L):
	for i in L:
		if i == 1:
			return False
	return True
n = int(input())
L = list(map(int, input().split()))
if easy(L):
	print('EASY')
else:
	print('HARD')


n = int(input())
if '1' in set(input().split()):
	print('HARD')
else:
	print('EASY')


s = int(input())
l = list(map(int, input().strip().split()[:s]))
for x in l:
	if x == 1:
		print('HARD')
		break
else:
	print('EASY')


import sys

def main():
	x = int(sys.stdin.readline().strip())
	opt = [int(z) for z in sys.stdin.readline().split()]
	if opt.count(1) >= 1:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
a = [int(s) for s in input().split()]
a = sorted(a)
if a[n - 1] == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
b = [int(x) for x in input().split()]
cnt = 0
for i in b:
	if i == 1:
		cnt = 1
		break
if cnt == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
ans = input().split()
if str(1) in ans:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = [int(i) for i in filter(None, input().split(' '))]
ans = 'EASY'
for i in range(len(arr)):
	if arr[i] == 1:
		ans = 'HARD'
print(ans)


count = int(input())
txt = input()
votes = txt.split()
failed = False
i = 0
while i < count:
	x = int(votes[i])
	if x == 1:
		failed = True
		print('HARD')
		break
	i = i + 1
if failed != True:
	print('EASY')


n = int(input())
a = map(int, input().split())
hard_flg = False
for i in a:
	if i == 1:
		hard_flg = True
print(['EASY', 'HARD'][hard_flg])


n = input()
comments = input()
print('HARD' if '1' in comments else 'EASY')


n = int(input())
arr = list(map(int, input().split()[:n]))
count = 0
for i in range(len(arr)):
	if arr[i] == 1:
		count += 1
	else:
		pass
if count >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
list1 = input().split(' ')
if ('1' in list1) == True:
	print('HARD')
else:
	print('EASY')


import gzip, base64
exec(gzip.decompress(base64.b64decode(b'H4sIAM/5p1sC/11Wxw6kWBK891fsraeFdvDuMAe8L7y9QRXeFq4Kvn56pYGRFiHBi4yQ8pHxMvnxI//mzz/Ks57+fOXPsZ/mfFn+yNIlJ7A/MwL7H/jK//jxn99X9lPGFoUxQHyCFw6E4fBL/vwnojUHq79QAojRHDLjat7F2WAwO+I40uCri6YXHFc0BHzQ9ciZUvDKVEtkk9zT9JmgIRc3CiAQzIu+w/gEzQXfC6TXnHXqlzopOlYMUmIEbNY807QFcnDVUt8RBYFLdj03Wz6Y6btiyoUYlLf4NW32yGu1/bQyks9pN+zTBzEoHQtXoC+m5674+3utANE0We4UUzlHJ8Y6L3ys+gdZjKTqS/32ahNHnFCj4MonHe9MSqtuTfJbs1BGfSkaFihDFoC9DXu7CsO2QwpvVxDrN2XCjZKdOym1OdL383F9xTkWBqu/oTNtvp5rz3OeylySpV51qC7m0srXajucJ2ASB9A7c+G16bNHuFU4ZR8y/62BzA/DO0W744tb8OAwiLXVoBnGA191OpexS7Tc2QrY60u8gX17jp8eO9MRW8a8Q9CHe1d+w54eELk8S1aEnyu1f35NJNv4KU94S+qFU8V7yicz294a3TNx4hKSAYrpHgArrEsdUvlRXjggt8UE0II5oC+DfzwSYdNwavJE9y7ESTJbdKLsRHhj7n4NJRDKClHujO2kQzIyQDCkToVif9yV6qqaIauB4vbg2Htq+CByNDrYPC2zw4mvNOfZNyc9VqPoKfDe3S66AooA7VhBqEfGBKNKSG9CJNGmrCHjz9EaydGAD7Typp57XrKImj26TJ6b6/pS6Wcr2mQVSy2y00fvnYqjAVrCRz1Amh0DruxfukPZZG7biCmK3vEFxgUT/k4PuUmyeseQbRiV7eOHIBoNtRQz2MeaWGB6s2e7mDZDWZTkTHCuE3S73z4TU3p6LEmlaGUH0Ka++0nu44VxllmUgB19suUYrgowE2FXLnwe3Rtb9dORfffrptaxi+nKibQI7tk+KwId8XOqn/S3d7v7gCRQhLG4sJKIxah20lx4usgrp6Dwo2x9Q2NbBwaEvqpM1E5V6Qlv+krZggu0A1lwbCFil64y9k5TEuB8W2iykXYTBp5dOrM1LVAt1VgJ7neuL2WPDAu8lh0vrCv7YTwoLaS2LI6GNyD1Jo+v7Q0rPYPxQYjKrNqIEaO6BHwRFDczf5ucVcAh+KaRjjxylcrHWbsI75HzeBHgCgq6IB/vSuhsSFl7+95x9yfimUVpbThu1Z1lHFr2jt82FZaVUDEq+QgdkGQLOhuHN6QDooVoPvtikJOO6ZkPKWWmf4+pd7A5DXDWqSjO/Pn/NjiCezIQWLMer40hW1UzeEmOn2nbGya5vnWaCkV1vthz/NueSeSkF1BQtxErbskIwb65dIitnASB65REym8LzMM4h2HRRcbtFzZy0D7slcw3Bnm/z0cG8xtULu+piWwpbp1zApRW18/MT+SQeSUaKfTtdB/q41OogYML32qm9Ie8UN1tsOvlG7OZFkBBDCmurqjH8KQSFMpPOpM+gjLBld5rLGokX/GJLs+7auWdqthx9pHUnemEPK5J70Au7kIaKKO1XqQOxSey9h5e81zUYyrvCUNrrTxWDr9c7XvKzdxhJLR+OAHMZXMH8LmcZeXd5evG8rAMDf2MSkezWcIjP735HfJZZwUeJVzEczppDr2bQ+jnCIohrnzHRSFn7o8U50BDyaErAR3FO4pRBTj6ORfu0aRPbZtLKqJdZFHwjzBeEg4DQ3Li8voVfBLJjLNK1T/Bl7/i/KvvKL2xkJxUX/Hpxo3NuqADvYtvzpZg3gEHzt3T+iw2uzJfsCYpQdRMTpvY2BGhbZeqO5u9rN/3/bG/CNOqHDFW9BovbqpX0gTzCIkS0vhuaWFXUS61lBBeOQ2O8YPUbq/jGJc1E6uihoo6U7i7ft5RlvxkW8KYvzOui9lSPbOvX89PSi7tf83rzBhjnFY9tW+/5KFKv6dc8iIHzBB92dKpE/60/KNHUTWnShN8LBerRvIAVOV73WhGFVZ7PGBLfhz0KdpqDewhY5YYvtFd4Jy9wYa+ExCHfBJ3Htpi8iQ0IqV0IU6KnkjRrX0jy4bUGXuGMrbm1ffEnqIDDNqslsxnvkhZZADH11llbLtnaTia8sp/fvuwPdqqrN0ci5aYH1i8fHWQrDCxb+h3862ljOJ6H+AJ236X3uMrcNSXtyyLpgtrIEEAvD0X4dGWLRkwkzgF7OBHOm1lpmC7ZBjmr79+/vj1689/fhF/bmvxX+rnr18//gZt77HkVQoAAA==')).decode('utf-8'))


n = int(input())
responses = input().split()
result = 'EASY'
for i in range(n):
	if responses[i] == '1':
		result = 'HARD'
print(result)


n = int(input())
a = tuple(map(int, input().split()))
for i in range(n):
	if a[i] == 1:
		print('HARD')
		break
else:
	print('EASY')


a = int(input())
li = input().split()
t = 0
for i in li:
	if i == '1':
		print('HARD')
		t = 1
		break
if t == 0:
	print('EASY')


input()
c = list(map(int, input().split()))
print('HARD') if sum(c) > 0 else print('EASY')


n = int(input())
l = [int(i) for i in input().split()][:n]
f = 0
for i in l:
	if i == 1:
		f = 1
if f == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
b = input()
aa = []
b = b.split(' ')
if n > 0 and n < 101:
	for i in range(n):
		aa.append(b[i])
	if aa.count('1') > 0:
		print('HARD')
	else:
		print('EASY')


n = int(input())
a = [int(e) for e in input().split()]
z = 0
for i in a:
	if i == 1:
		print('HARD')
		break
	z += 1
if z == len(a):
	print('EASY')


def solve(lst):
	for ele in lst:
		if ele == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
lst = map(int, input().split(' '))
print(solve(lst))


n = int(input())
a = list(map(int, input().split()))
temp = 0
for i in range(0, n):
	if a[i] == 1:
		difficulty = 'HARD'
		temp = 3
		break
	else:
		continue
if temp != 3:
	difficulty = 'EASY'
print(difficulty)


a = int(input())
list = [int(i) for i in input().split()]
if 1 in list:
	print('HARD')
else:
	print('EASY')


user_input = input()
list_num_of = input().split()

def easy():
	for i in list_num_of:
		if i == '1':
			return 'HARD'
	return 'EASY'
print(easy())


n = int(input())
s = input()
k = [int(s) for s in s.split()]
e = 0
for i in range(n):
	if k[i] == 1:
		e += 1
		print('HARD')
		break
if e < 1:
	print('EASY')


input()
print('EASY' if all([not bool(int(i)) for i in input().split()]) else 'HARD')


n = int(input())
arr = list(map(int, input().split()))
flag = False
for i in range(n):
	if arr[i] == 1:
		flag = True
		break
	else:
		continue
if flag == True:
	print('HARD')
else:
	print('EASY')


three = int(input())
number = map(int, input().split())
lst = list(number)
if 1 in lst:
	print('HARD')
else:
	print('EASY')


numofpeople = int(input())
opinionlist = input().split()
for i in opinionlist:
	if i == '1':
		trigger = 1
		break
	elif i == '0':
		trigger = 0
if trigger == 0:
	print('EASY')
elif trigger == 1:
	print('HARD')


n = input()
flag = 1
s = input()
for i in s:
	if i == '1':
		flag = 0
if flag == 1:
	print('EASY')
else:
	print('HARD')


n = int(input())
l = list(map(int, input().split()))
z = True
for i in l:
	if i == 1:
		z = False
		print('HARD')
		break
if z == True:
	print('EASY')


x = int(input())
arr = []
arr = list(map(int, input().split()))
for i in range(0, x):
	if arr[i] == 1:
		print('HARD')
		exit()
print('EASY')


p = int(input())
input_data = input()
list_we_use = input_data.split(' ')
j = []
for i in list_we_use:
	j.append(int(i))
if max(j) == 1:
	print('HARD')
else:
	print('EASY')


opinions_count = input()
opinions = input().split()
final_verdict = 'EASY'
for op in opinions:
	if int(op) == 1:
		final_verdict = 'HARD'
print(final_verdict)


from sys import stdin
a = stdin.readline().rstrip().split()
b = int(a[0])
a = stdin.readline().rstrip().split()
c = 0
for k in range(0, b):
	if a[k] == '1':
		print('HARD')
		c = 1
		break
if c == 0:
	print('EASY')


n = int(input())
nums = list(map(int, input().split()))
summ = 0
for num in nums:
	summ += num
if summ > 0:
	print('HARD')
else:
	print('EASY')


c = int(input())
n = input()
if '1' in n:
	print('HARD')
else:
	print('EASY')


numbers = int(input())
array = input().split()
for i in range(numbers):
	if array[i] == '1':
		print('HARD')
		exit()
print('EASY')


input()
a = input()
s = a.split(' ')
e = sum(map(int, s))
if e == 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
r = set(input().split())
if '1' not in r:
	print('EASY')
else:
	print('HARD')


n = int(input())
b = 0
a = input()
a.split()
a = a.replace(' ', '')
for i in range(n):
	if a[i] == '1':
		b += 1
if b == 0:
	print('EASY')
else:
	print('HARD')


import sys
res = 'EASY'
n = int(input())
l = input()
spl = l.split()
if '1' in spl:
	res = 'HARD'
print(res)


a = input()
if input().split().count('1'):
	print('HARD')
else:
	print('EASY')


a = int(input())
arr = list(map(int, input().split()))
ans = 'EASY'
for i in arr:
	if i == 1:
		ans = 'HARD'
		break
print(ans)


N = int(input())
ans = input().strip().split()
if '1' in ans:
	print('HARD')
else:
	print('EASY')


q = int(input())
input_data = input()
list_we_use = input_data.split(' ')
final_list = []
a = 0
for i in list_we_use:
	final_list.append(int(i))
for i in final_list:
	if i == 1:
		a += 1
if a > 0:
	print('HARD')
else:
	print('EASY')


n = input('')
n = int(n)
a = list(map(int, input().split()))
i = 0
sum = 0
while i < n:
	sum += a[i]
	i += 1
if sum:
	print('HARD')
else:
	print('EASY')


c = False
b = int(input())
a = [int(i) for i in input().split()]
for i in range(b):
	if a[i] == 1:
		c = True
	else:
		continue
if c:
	print('HARD')
else:
	print('EASY')


n = int(input())
l1 = list(map(int, input().split()))
ans = True
for i in l1:
	if i:
		ans = False
if ans:
	print('EASY')
else:
	print('HARD')


a = input()
b = input()
difficult = False
for x in range(len(b)):
	if b[x] == '1':
		difficult = True
if difficult == True:
	print('HARD')
elif difficult == False:
	print('EASY')


n = int(input())
s = input().split()
check = 0
for i in range(n):
	if s[i] == '1':
		check = 1
print('HARD') if check == 1 else print('EASY')


n = int(input())
c = map(int, input().split())
for i in c:
	if i == 1:
		print('HARD')
		exit(0)
print('EASY')


n = int(input())
a = list(map(int, input().split()))
for i in a:
	if sum(a) > 0:
		print('HARD')
		break
	else:
		print('EASY')
		break


n = int(input())
r = input().split(' ')
easy = True
for i in range(0, n):
	if r[i] == '1':
		print('HARD')
		easy = False
		break
if easy == True:
	print('EASY')


i = int(input())
r = []
r = input().split()
k = 0
for u in range(0, i):
	if r[u] == '1':
		k += 1
if k != 0:
	print('HARD')
if k == 0:
	print('EASY')


from collections import Counter
n = int(input())
i = list(map(int, input().split()))
count = Counter(i)
maxval = max(count.keys())
if maxval > 0:
	print('HARD')
elif maxval == 0:
	print('EASY')


n = int(input())
line = input()
if line.find('1') >= 0:
	print('HARD')
else:
	print('EASY')


a = int(input())
diff = 'EASY'
b = list(map(int, input().split()))
if 1 in b:
	diff = 'HARD'
print(diff)


n = input()
s = input().split(' ')
c = 0
for i in s:
	if i == '1':
		print('HARD')
		c = 1
		break
if c == 0:
	print('EASY')


n = int(input())
choices = input().split()
if len(choices) > n:
	print(f'you can only type {n} number of choices')
if '1' in choices:
	print('HARD')
else:
	print('EASY')


print('EASY' if ' '.join(['0'] * int(input())) == input() else 'HARD')


from collections import Counter
n = int(input())
l = list(map(int, input().rstrip().split()))
c = Counter(sorted(l))
if c[1] >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
tup = tuple(map(int, input().split()[:n]))
if any(tup) == False:
	print('EASY')
else:
	print('HARD')


def wierdDecision(number_of_people, opinions_array):
	for item in opinions_array:
		if item == 1:
			return 'HARD'
	return 'EASY'
n = map(int, input().split())
k = map(int, input().split())
print(wierdDecision(n, k))


n = int(input())
d = input()
d = d.split()
h = False
for i in range(n):
	if d[i] == '1':
		h = True
if h is True:
	print('HARD')
else:
	print('EASY')


x = input()
xs = map(int, input().split())
if sum(xs) > 0:
	print('HARD')
else:
	print('EASY')


g = int(input())
x = input()
y = x.split(' ')
a = []
hrd = 0
for i in y:
	a.append(int(i))
for i in a:
	if i == 1:
		hrd += 1
if hrd > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
x = input()
counter = 'EASY'
for i in x:
	if i == '1':
		counter = 'HARD'
print(counter)


l = []
n = int(input())
x = input()
f = 0
for i in x.split(' '):
	l.append(int(i))
for i in range(n):
	if l[i] == 1:
		f = 1
		break
if f == 1:
	print('HARD')
else:
	print('EASY')


def getdifficulty(l):
	for i in l:
		if i == 1:
			print('HARD')
			return
	print('EASY')
	return
n = int(input())
l = [int(i) for i in input().split()]
getdifficulty(l)


from sys import stdin, stdout

def main():
	stdin.readline()
	nums = list(map(int, stdin.readline().split()))
	for num in nums:
		if num == 1:
			stdout.write('HARD\n')
			return
	stdout.write('EASY\n')
main()


import math
import cmath
from decimal import *
from fractions import *
n = int(input())
a = list(map(int, input().split()))
ok = 1
for _ in a:
	if _ == 1:
		ok = 0
		print('HARD')
		break
if ok:
	print('EASY')


def easy_hard(l):
	for i in range(len(l)):
		if l[i] == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
l = []
l = list(map(int, input().split()))
print(easy_hard(l))


a = int(input())
list = []
list = input().split()
problem = 'EASY'
for i in range(a):
	if list[i] == '1':
		problem = 'HARD'
		break
print(problem)


n = int(input())
l = list(map(int, input().split()))
for x in l:
	if x == 1:
		print('HARD')
		exit()
print('EASY')
exit()


n = int(input())
lst = input().split()
result = 'EASY'
for i in lst:
	if i == '1':
		result = 'HARD'
		break
print(result)


n = int(input())
A = input().split()
if '1' in A:
	print('HARD')
else:
	print('EASY')


n = int(input())
li = [int(x) for x in input().split()]
one = li.count(1)
if one >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
ls = [int(x) for x in input().split() if int(x) == 1]
if len(ls) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
responses = [int(r) for r in input().split(' ')]
if sum(responses) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
data = list(map(int, input().split()))
flag = False
for i in range(0, n):
	if data[i] == 1:
		flag = True
if flag:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(c) for c in input().split()]
print('EHAASRYD'[a.count(1) > 0::2])


n = int(input())
k = list(input().split(' '))
flag = True
for i in range(n):
	if k[i] == '1':
		flag = False
if flag:
	print('EASY')
else:
	print('HARD')


q = int(input())
r = list(map(int, input().split()))
if r.count(1) > 0:
	print('HARD')
else:
	print('EASY')


x = int(input())
y = [int(y) for y in input().split()]
if 0 < x < 101:
	if 1 in y:
		print('HARD')
	else:
		print('EASY')


n = int(input())
theList = input().split()[:n]
theList = [int(i) for i in theList]
counter = 0
for i in theList:
	if i != 0:
		counter += 1
if counter > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
c = [int(i) for i in input().split()]
if sum(c) == 0:
	s = 'EASY'
else:
	s = 'HARD'
print(s)


a = input()
b = input().split(' ')
ans = 0
for i in b:
	if i != '0':
		ans = 1
if ans == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
answers = list(map(int, input().split()))
for i in range(len(answers)):
	if answers[i] == 1:
		print('HARD')
		break
	elif answers[-1] == 0 and i == n - 1:
		print('EASY')


n = int(input())
if any([ans == '1' for ans in input().split(' ')]):
	print('HARD')
else:
	print('EASY')


n = int(input())
answer = list((int(x) for x in input().split(' ', n - 1)))
if answer.count(1) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
li = list(map(int, input().split()))
if any((s == 1 for s in li)):
	print('HARD')
else:
	print('EASY')


ok = 0
n = int(input())
l = list(input())
for x in l:
	if x == '1':
		ok = 1
		break
if ok == 1:
	print('HARD')
else:
	print('EASY')


b = int(input())
x = input()
m = x.split(' ')
n = []
hard = 0
for i in m:
	n.append(int(i))
for i in n:
	if i == 1:
		hard += 1
if hard > 0:
	print('HARD')
else:
	print('EASY')


input_1 = input('')
input_2 = input('')

def Convert(string):
	global lista
	lista = list(string.split(' '))
	return lista
Convert(input_2)
x = '1'
if x in lista:
	print('HARD')
else:
	print('EASY')


import re
n = input()
str = input()
x = re.search('1', str)
if x:
	print('HARD')
else:
	print('EASY')


seq_len = int(input())
seq = [int(element) for element in input().split() if element == '1']
if seq:
	print('HARD')
else:
	print('EASY')


n = int(input())
m = input()
print(['EASY', 'HARD']['1' in m])


a = input()
b = []
st = input()
b = st.split(' ')
if '1' in b:
	print('HARD')
else:
	print('EASY')


def solve(arr):
	if 1 in arr:
		return 'HARD'
	return 'EASY'
n = list(map(int, input().split()))
arr = list(map(int, input().split()))
print(solve(arr))


testCases = int(input())
grades = int(''.join(input().split()))
if grades > 0:
	print('HARD')
else:
	print('EASY')


def problem(a):
	for i in a:
		if i == 1:
			return 'HARD'
	else:
		return 'EASY'
n = int(input())
a = map(int, input().split(' '))
print(problem(a))


n = int(input())
sp = []
var = input().split(' ')
for i in range(n):
	sp.append(int(var[i]))
if sum(sp) != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
i = list(input().split())
j = i.count('1')
if j > 0:
	print('HARD')
else:
	print('EASY')


n = input()
n = int(n)
ans = 0
b = input().split(' ')
for k in b:
	if k == '1':
		ans += 1
if ans == 0:
	print('EASY')
else:
	print('HARD')


a = input()
print('EASY') if input().count('1') == 0 else print('HARD')


def solve(answers):
	for answer in answers:
		if answer == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
answers = list(map(int, input().split(' ')))
print(solve(answers))


a = input()
input_string = input()
userList = input_string.split()
results = list(map(int, userList))
if sum(results) > 0:
	print('HARD')
else:
	print('EASY')


persons = int(input())
summ = 0
num = list(map(int, input().split()))
for i in range(0, persons):
	summ = summ + num[i]
if summ > 0:
	print('HARD')
elif summ == 0:
	print('EASY')


count = int(input())
array = list(map(int, input().strip().split(' ')))

def checkHardOrEasy(arr):
	if 1 in arr:
		return True
	else:
		return False
if checkHardOrEasy(array):
	print('HARD')
else:
	print('EASY')


def isItEasy():
	n = input()
	servey = [int(i) for i in input().split()]
	if sum(servey) == 0:
		print('EASY')
	else:
		print('HARD')
isItEasy()


def search(arr):
	for val in arr:
		if val == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
arr = map(int, input().split())
output = search(arr)
print(output)


test = int(input())
users = [int(a) for a in input().strip().split(' ')]
b = 0

def bin(user):
	global b
	b = b | user
list(map(bin, users))
if b:
	print('HARD')
else:
	print('EASY')


x = input()
y = input().split()
l = []
for i in y:
	i = int(i)
	l.append(i)
k = 0
for i in l:
	if i == 1:
		print('HARD')
		k = 1
		break
if k == 0:
	print('EASY')


n = int(input())
u = list(map(int, input().split()))
ok = True
for i in range(n):
	if u[i] == 1:
		ok = False
		break
if ok:
	print('EASY')
else:
	print('HARD')


n = input()
n = int(n)
resp = input().split()
for i in range(n):
	resp[i] = int(resp[i])
if sum(resp) >= 1:
	print('HARD')
else:
	print('EASY')


def hardoreasy(l):
	for item in l:
		if item == 1:
			print('HARD')
			return
	print('EASY')
n = int(input())
l = list(map(int, input().split()))
hardoreasy(l)


times = int(input())
arr = list(map(int, input().split()))
if 1 in arr:
	print('HARD')
else:
	print('EASY')


n = input()
k = input()
if '1' in k:
	print('HARD')
else:
	print('EASY')


cases = int(input())
response = [int(x) for x in input().split()]
if 1 in response:
	print('HARD')
else:
	print('EASY')


count = int(input())
is_hard = False
data = input().split(' ')
for i in data:
	if i == '1':
		is_hard = True
if is_hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
p = list(map(str, input().split()))
print('HARD' if p.count('1') >= 1 else 'EASY')


b = int(input())
a = list(map(int, input().split()))
c = 0
for i in range(len(a)):
	if a[i] == 1:
		c += 1
		break
if c == 0:
	print('EASY')
else:
	print('HARD')


def solve(array):
	for i in array:
		if i & 1:
			return 'HARD'
		else:
			pass
	return 'EASY'
n = int(input())
opinions = [int(i) for i in input().split()]
answer = solve(opinions)
print(answer)


n = int(input())
i = map(int, input().split())
s = 0
for x in i:
	s += x
if s == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
opinions = list(map(int, input().split(' ')))
flag = False
for i in opinions:
	if i == 1:
		flag = True
if flag == True:
	print('HARD')
else:
	print('EASY')


import sys
A = int(input())
b = [int(x) for x in input().split()]
for i in range(A):
	if b[i] != 0:
		print('HARD')
		sys.exit()
print('EASY')


def main():
	n_people = int(input())
	responses = [int(i) for i in input().split()]
	if 1 in responses:
		print('HARD')
	else:
		print('EASY')
main()


def difficulty():
	n = int(input())
	responses = input().split()
	for j in responses:
		if j == '1':
			return 'HARD'
	return 'EASY'
print(difficulty())


n = int(input())
d = map(int, input().split(' '))
a = 0
a = sum(d)
if a >= 1:
	print('HARD')
if a == 0:
	print('EASY')


n = int(input())
a = [int(x) for x in input().split()]
print(['EASY', 'HARD'][1 in a])


def hardEasy(ar):
	for i in ar:
		if i == '1':
			return True
	return False
number = int(input())
ar = input().split()
if hardEasy(ar):
	print('HARD')
else:
	print('EASY')


(n, mas) = (input(), input().split())
if '1' in mas:
	print('HARD')
else:
	print('EASY')


def main():
	_ = int(input())
	ans = [int(i) for i in input().split()]
	if ans.count(1) > 0:
		print('HARD')
	else:
		print('EASY')
main()


_ = input()
responses = input()
if '1' in responses:
	print('HARD')
else:
	print('EASY')


getInput = int(input())
lis = input()
lis = lis.split()
if '1' in lis:
	print('HARD')
else:
	print('EASY')


k = input()
g = input()
arr = g.split()
flag = 0
for i in arr:
	if i == '1':
		flag = 1
		break
if flag == 1:
	print('HARD')
else:
	print('EASY')


a = input()
b = input()
b = b.split()
count = 0
for bvalue in b:
	count = count + int(bvalue)
if count == 0:
	print('EASY')
else:
	print('HARD')


count = int(input())
answers = input()
answers = answers.split(' ')
if len(answers) == count:
	if '1' in answers:
		print('HARD')
	else:
		print('EASY')


a = int(input())
b = [i for i in input().split()]
if b.count('1') >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
answer = input()
result = answer.find('1') == -1 and 'EASY' or 'HARD'
print(result)


n = int(input())
a = list(map(int, input().split(' ')))
sum1 = 0
for i in range(len(a)):
	if a[i] == 0:
		sum1 = sum1 + 1
if sum1 == len(a):
	print('EASY')
else:
	print('HARD')


import sys
n = int(input())
results = input()
results = results.split()
if '1' in results:
	print('HARD')
else:
	print('EASY')


n = map(int, input())
num = map(int, input().split())

def tusk(n):
	for i in num:
		if i == 1:
			return 'HARD'
	return 'EASY'
print(tusk(num))


n = int(input())
ls = input().split()
if '1' in ls:
	print('HARD')
else:
	print('EASY')


input()
if int(max(input().split())) >= 1:
	print('HARD')
else:
	print('EASY')


def get_input():
	people_count = input()
	decisions = input()
	return (int(people_count), decisions)

def show_result(number):
	res_dict = {False: 'EASY', True: 'HARD'}
	print(res_dict[number])

def process(people_count: int, decisions: str):
	decisions = decisions.replace(' ', '')
	if people_count != len(decisions):
		return None
	res = int(decisions, 2)
	return bool(res)
(people_count, decisions) = get_input()
r = process(people_count, decisions)
if r is None:
	exit(-1)
show_result(r)


x = int(input())
li = [int(x) for x in input().split()]
falg = True
for i in range(len(li)):
	if li[i] == 1:
		print('HARD')
		falg = False
		break
if falg:
	print('EASY')


n = int(input())
s = input()
if s == ('0 ' * n)[:-1]:
	print('EASY')
else:
	print('HARD')


n = int(input())
ans = list(map(int, input().split()))
final = 0
for i in range(n):
	k = ans[i]
	if k == 0 or k == 1:
		if k == 1:
			final = final + 1
if final > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().strip().split()))
s = len(l)
c = 0
for i in l:
	if i == 0:
		c = c + 1
	else:
		print('HARD')
		break
if c == s:
	print('EASY')


nh = int(input())
lh = list(map(int, input().split()))
c = 0
for i in range(nh):
	if lh[i] == 1:
		c = c + 1
		break
if c > 0:
	print('HARD')
else:
	print('EASY')


voters = input()
votes = list(map(int, input().split()))
count = 0
for i in votes:
	if i == 1:
		count += 1
if count == 0:
	print('EASY')
else:
	print('HARD')


g = int(input())
j = list(map(int, input().split()))
if sum(j):
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = input()
if len(arr) == 1:
	if arr == '1':
		print('HARD')
	else:
		print('EASY')
elif arr.find('1') > -1:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = input().split()
for i in range(n):
	if s[i] == '1':
		print('HARD')
		raise SystemExit
print('EASY')


n = int(input())
l = list(map(int, input().strip().split()))
c = l.count(1)
if c == 0:
	print('EASY')
else:
	print('HARD')


def main(responses):
	if any(responses):
		return 'HARD'
	return 'EASY'
nb = input()
responses = tuple(map(int, input().split()))
print(main(responses))


n = int(input())
LIST = [int(s) for s in input().split()]
count = 0
for elem in LIST:
	if elem == 1:
		count += 1
if count > 0:
	print('HARD')
else:
	print('EASY')


n = int(input(''))
s = str(input(''))
flag = False
if n > 1:
	l = s.split(' ')
	for items in l:
		if items != '0':
			flag = True
			break
elif s == '1':
	flag = True
if flag:
	print('HARD', end='')
else:
	print('EASY', end='')


input()
print('HARD' if max(input()) == '1' else 'EASY')


n = int(input())
flag = 0
lis = list((int(x) for x in input().split()))
for i in lis:
	if i == 1:
		flag = 1
if flag == 0:
	print('EASY')
else:
	print('HARD')


numPeople = int(input())
qIn = str(input())
qSplit = qIn.split()
count = 0
for i in qSplit:
	if int(i) > 0:
		count += 1
if count > 0:
	print('HARD')
else:
	print('EASY')


import base64
exec(base64.b64decode(b'aW1wb3J0IGJhc2U2NApuPWludChpbnB1dCgpKQptYXMgPSBbaW50KGkpIGZvciBpIGluIGlucHV0KCkuc3BsaXQoKV0KZm9yIGkgaW4gbWFzOgogICAgaWYgaToKICAgICAgICBwcmludCgiSEFSRCIpCiAgICAgICAgZXhpdCgwKQoKcHJpbnQoJ0VBU1knKQ=='))


n = int(input())
arr = list(map(int, input().split()))
for i in arr:
	if i == 1:
		print('HARD')
		break
else:
	print('EASY')


def f():
	n = input()
	x = input().split(' ')
	for y in x:
		if y == '1':
			print('HARD')
			return 0
	print('EASY')
f()


def function():
	massive = []
	n = int(input())
	k = input().split()
	for i in range(len(k)):
		massive.append(int(k[i]))
	for i in range(len(massive)):
		if massive[i] == 1:
			print('HARD')
			break
		if i == len(massive) - 1:
			print('EASY')
function()


def main():
	n = int(input())
	response = list(map(int, input().split()))
	res = 'EASY'
	for i in response:
		if i == 1:
			res = 'HARD'
	print(res)
main()


ilo = int(input())
opi = input().split()
if '1' in opi:
	print('HARD')
else:
	print('EASY')


def main():
	size = int(input())
	no = 0
	scores = list(map(int, input().split()))
	for i in range(size):
		if scores[i] == 1:
			no = 1
	if no:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
diff = str(input())
s = diff.count('1')
if s >= 1:
	print('HARD')
else:
	print('EASY')


n = input()
str = input()
print('HARD') if str.find('1') != -1 else print('EASY')


a = int(input())
b = map(int, input().split())
v = list(b)
out = 'EASY'
for i in v:
	if i == 1:
		out = 'HARD'
		break
print(out)


import sys
import io
import os

def run(test, res):
	x = io.StringIO()
	with io.StringIO(test) as sys.stdin:
		with x as sys.stdout:
			work()
			z = x.getvalue().strip()
	sys.stdout = sys.__stdout__
	print(z == test)
	print(res)
	print(z)

def work():
	n = int(input())
	z = input()
	print('HARD' if '1' in z else 'EASY')

def test():
	run('3\n0 0 1', 'HARD')
	run('1\n0', 'EASY')
if 'LOCALTEST' in os.environ:
	test()
else:
	work()


n = int(input())
str = input()
difficulty = []
difficulty = str.split()
flag = 1
for i in difficulty:
	if i == '1':
		print('HARD')
		flag = 0
		break
if flag == 1:
	print('EASY')


n = int(input())
l = input()
s = l.split(' ')
s = [int(x) for x in s]
if max(s) == 1:
	print('HARD')
else:
	print('EASY')


r = input()
n = input()
print('HARD' if any([s == '1' for s in n]) else 'EASY')


a = int(input())
b = input().split()
g = 0
for i in range(a):
	if int(b[i]) == 0:
		g = g + 1
if g == a:
	print('EASY')
else:
	print('HARD')


from sys import stdin
N = int(stdin.readline())
array = stdin.readline().split()
flag = True
for i in array:
	if i == '1':
		print('HARD')
		flag = False
		break
if flag:
	print('EASY')


n = int(input())
x = list(map(int, input().split()))
var1 = True
for i in x:
	if i == 1:
		print('HARD')
		var1 = False
		break
if var1 == True:
	print('EASY')


num = input()
L = input()
L = list(L.split(' '))
ans = ''
for i in L:
	if i == '1':
		ans = 'HARD'
		break
	else:
		ans = 'EASY'
print(ans)


n = int(input())
lis = [int(i) for i in input().split()]
count = 0
for i in range(n):
	if lis[i] == 1:
		count = count + 1
if count >= 1:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = list(map(int, input().split()))
c = str(1 in b)
print(c.replace('True', 'HARD').replace('False', 'EASY'))


from sys import stdin
n = int(stdin.readline())
list_inputs = stdin.readline().split()
curMax = 0
if n <= 100:
	for i in range(int(n)):
		curMax = max(curMax, int(list_inputs[i]))
	if curMax > 0:
		print('HARD')
	else:
		print('EASY')


import sys
n = int(sys.stdin.readline().strip())
a = list(map(int, sys.stdin.readline().strip().split(' ')))

def main():
	for i in a:
		if i == 1:
			sys.stdout.write('HARD')
			sys.stdout.flush()
			return
	sys.stdout.write('EASY')
	sys.stdout.flush()
main()


def p():
	for i in range(0, n):
		if int(N[i]) == 1:
			print('HARD')
			return
	print('EASY')
n = int(input())
N = []
N = input().split()
p()


n = int(input())
entrada = str(input())
ans = 'HARD'
opinions = entrada.split()
if opinions == ['0'] * n:
	ans = 'EASY'
print(ans)


a = int(input())
c = [int(i) for i in input().split(' ')]
k = 0
for i in c:
	if i == 1:
		k = 1
		break
if k == 1:
	print('HARD')
else:
	print('EASY')


from functools import reduce
n = int(input())
i = [int(x) for x in input().split()]
l = reduce(lambda x, y: x + y, i)
if l == 0:
	print('EASY')
else:
	print('HARD')


n = ''
ls = []
while True:
	try:
		line = input()
	except EOFError:
		break
	n += ' ' + line
n = n.split()
del n[0]
n = [int(x) for x in n]
if sum(n) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
ele = list(map(int, input().split()))
count = 0
for j in ele:
	if j == 1:
		count += 1
	else:
		count += 0
if count >= 1:
	print('HARD')
else:
	print('EASY')


def easy(a):
	easy = True
	for i in a:
		if i == 1:
			easy = False
			break
	if easy == True:
		print('EASY')
	else:
		print('HARD')
count = int(input())
ar = list(map(int, input().rstrip().split()))
easy(ar)


n = int(input())
w = input()
if '1' in w:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))
try:
	x = l.index(1)
	print('HARD')
except:
	print('EASY')


in1 = int(input())
in2 = input().split()
for i in range(in1):
	if in2[i] == '1':
		print('HARD')
		break
else:
	print('EASY')


def In_Search_of_an_Easy_Problem(s):
	Sum = 0
	for i in s:
		Sum += i
	if Sum != 0:
		print('HARD')
	else:
		print('EASY')
n = input()
s = []
x = input().split()
for i in range(0, int(n)):
	s.append(int(x[i]))
In_Search_of_an_Easy_Problem(s)


n = int(input())
arr = list(map(int, input().split()))
c1 = 0
c2 = 0
for i in range(n):
	if arr[i] == 0:
		c1 += 1
	else:
		c2 += 1
if c2 > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = str(input())
if '1' in l:
	print('HARD')
else:
	print('EASY')


def filter_contests_problems(coord_opinions):
	for opinion in coord_opinions:
		if opinion == 1:
			return 'HARD'
	return 'EASY'

def main():
	n = int(input())
	opinions = list(map(int, input().split()))
	print(filter_contests_problems(opinions))
main()


(n, s) = (input(), input())
print(['EASY', 'HARD'][s.count('1') > 0])


_ = int(input())
l = [int(x) for x in input().split()]
for x in l:
	if x & 1:
		print('HARD')
		exit(0)
print('EASY')


n = int(input())
lst = list(map(int, input().split()))
flag = False
for i in range(len(lst)):
	if lst[i] == 1:
		print('HARD')
		flag = True
		break
if flag == False:
	print('EASY')


input()
h = False
if 1 in [int(x) for x in input().split()]:
	h = True
print('HARD' if h else 'EASY')


try:
	n = int(input())
	arr = list(map(int, input().split()))
	print('HARD') if arr.count(1) >= 1 else print('EASY')
	pass
except Exception:
	pass


from sys import stdin, stdout

def main():
	numero_personas = int(stdin.readline())
	cal_personas = [int(x) for x in stdin.readline().split()]
	if 1 in cal_personas:
		stdout.write(str('HARD'))
	else:
		stdout.write(str('EASY'))
main()


n = input()
is_easy = True
for i in input():
	if i == ' ':
		continue
	if i == '1':
		print('HARD')
		is_easy = False
		break
if is_easy:
	print('EASY')


n = int(input())
x = map(int, input().split(' '))
verdict = 0
for i in x:
	if i == 1:
		verdict = 1
if verdict == 0:
	print('EASY')
else:
	print('HARD')


def func(x):
	for i in range(len(x)):
		if x[i] is 1:
			return 'HARD'
	return 'EASY'
n = int(input())
x = list(map(int, input().strip().split(' ')))
print(func(x))


import sys
input = sys.stdin.readline

def main():
	n = int(input())
	alst = list(map(int, input().split()))
	if 1 in alst:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
b = input()
e = 1
e = str(e)
if e in b:
	print('HARD')
else:
	print('EASY')


import sys
input1 = sys.stdin.readline
input2 = sys.stdin.readline

def inp():
	return int(input1())

def inlt():
	return list(map(int, input2().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
n = inp()
list = inlt()
difficulty = 'EASY'
for i in range(n):
	if list[i] == 0:
		difficulty = 'EASY'
	else:
		difficulty = 'HARD'
		break
print(difficulty)


x = int(input())
y = [int(a) for a in input().split()]
num = 0
for i in range(x):
	num += y[i]
if num > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input()
arr = a.split()
arr = list(map(int, arr))
x = all(arr)
ctr2 = 0
for i in range(n):
	if arr[i] == 1:
		break
	elif arr[i] == 0:
		ctr2 += 1
		continue
if ctr2 == n:
	print('EASY')
else:
	print('HARD')


a = int(input())
numbers = list(map(int, input().split()))
numbers.sort()
if numbers[a - 1] == 1:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = list(input().split())
res = ''.join(b)
if '1' in res:
	print('HARD')
else:
	print('EASY')


a = int(input())
c = input().split()
b = int(max(c))
if b == 1:
	print('HARD')
else:
	print('EASY')


q = int(input())
o = list(map(int, input().split()))
for i in range(q):
	if o[i] == 1:
		a = 'HARD'
		break
	else:
		a = 'EASY'
print(a)


a = int(input())
x = input().split()
if '1' in x:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = list(map(int, input().split()))
som = 0
for values in arr:
	som = som + values
if som == 0:
	print('EASY')
else:
	print('HARD')


x = input()
l = [int(e) for e in input().split(' ')]
if all((l[i] == 0 for i in range(len(l)))):
	print('EASY')
else:
	print('HARD')


s = input()
n = input().split()
if '1' in n:
	print('HARD')
else:
	print('EASY')


n = int(input())
ar = [int(i) for i in input().strip().split()]
for i in range(n):
	if ar[i] == 1:
		print('HARD')
		break
	else:
		i = i + 1
	if i == n:
		print('EASY')
		break


import math

def get_num():
	return list(map(int, input().rstrip().split()))

def rotate(my_list, num):
	return my_list[num:] + my_list[:num]

def main():
	num = int(input())
	mylist = get_num()
	a = 1
	for num in mylist:
		if num:
			print('HARD')
			a = 0
			break
	if a:
		print('EASY')
main()


n = int(input())
string = input()
string1 = string.split(' ')
count = 0
for i in string1:
	if int(i) == 1:
		count = count + 1
if count > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
flag = False
z = [int(i) for i in input().split()]
for k in z:
	if k == 1:
		flag = True
if not flag:
	print('EASY')
else:
	print('HARD')


z = int(input())
y = str(input())
y = y.split(' ')
for i in range(z):
	y[i] = int(y[i])
	if y[i] > 0:
		status = 'HARD'
		break
	else:
		status = 'EASY'
print(status)


_ = int(input())
decisions = [int(c) for c in input().split()]
for d in decisions:
	if d == 1:
		print('HARD')
		break
else:
	print('EASY')


a = int(input())
t1 = input()
v = []
for i in t1.split():
	v.append(int(i))
if sum(v) == 0:
	print('EASY')
elif sum(v) == 1 and len(v) == 2:
	print('EASY')
else:
	print('HARD')


n = int(input())
person = input().split()
if '1' in person:
	print('HARD')
else:
	print('EASY')


n = int(input())
m = list(map(int, input().split()))
result = 'EASY'
while n:
	n -= 1
	if m[n] == 1:
		result = 'HARD'
		n = 0
print(result)


def difficulty(n, k):
	for response in k:
		if response == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
k = [int(i) for i in input().split()]
print(difficulty(n, k))


n = int(input())
a = list(map(int, input().split()))
if len(a) != n:
	exit()
for ch in a:
	if ch == 1:
		print('HARD')
		exit()
print('EASY')


n = int(input())
answers = [int(v) for v in input().split()]
easy = 'EASY'
hard = 'HARD'
result = easy if not any(answers) else hard
print(result)


k = int(input())
l = input().split()
o = 0
for i in l:
	if i == '1':
		o += 1
	else:
		continue
if int(o) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(j) for j in input().split()]
s = a.count(1)
if s != 0:
	print('HARD')
else:
	print('EASY')


input()
s = sum(map(int, input().split()))
print('HARD' if s else 'EASY')


howmany = input()
howmany = input()
a = 0
for i in howmany:
	if i == '1':
		print('HARD')
		a = 1
		break
if a == 0:
	print('EASY')


from functools import reduce
_ = input()
opinions = list(map(int, input().split()))
print('EASY' if reduce(lambda x, y: x | y, opinions) == 0 else 'HARD')


difficulty = 'EASY'
num_people = int(input())
people = input().split()
for i in range(num_people):
	if people[i] == '1':
		difficulty = 'HARD'
print(difficulty)


def solve(np, votes):
	if '1' in str(votes):
		return 'HARD'
	else:
		return 'EASY'

def main(np, votes):
	print(solve(np, votes))
np = input()
votes = ''.join(input().split(' '))
(n, k) = (int(np), int(votes))
main(n, k)


n = int(input())
cont = 0
lista = list()
for x in input().split():
	x = int(x)
	lista.append(x)
for x in lista:
	if x == 1:
		cont = 1
	else:
		continue
if cont == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
anses = list(map(int, input().split()))
cnt = sum(anses, 0)
if cnt:
	ret = 'HARD'
else:
	ret = 'EASY'
print(ret)


n = int(input())
while n < 1 or n > 100:
	n = int(input())
m = [int(k) for k in input().split()]
if 1 in m:
	print('HARD')
else:
	print('EASY')


n = int(input())
lst = [int(x) for x in input().split()]
for x in lst:
	if x == 1:
		print('HARD')
		exit()
print('EASY')


n = int(input())
h = [int(x) for x in input().split()]
if h.count(1) >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
num = input().split(' ')
for i in range(0, n):
	if num[i] == '1':
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
s = list(map(int, input().split()))
if 1 in s:
	print('HARD')
	exit()
print('EASY')


def SearchEasyProb(arr):
	arr = sorted(arr)
	if arr[-1] == 1:
		return 'HARD'
	else:
		return 'EASY'
n = input()
arr = list(map(int, input().split()))
print(SearchEasyProb(arr))


n = int(input())
results = input()
results = results.split(' ')
answer = 'EASY'
for i in range(0, len(results)):
	if results[i] == '1':
		answer = 'HARD'
print(answer)


input()
list = input()
if '1' in list:
	print('HARD')
else:
	print('EASY')


n = input()
k = 0
a = input().split()
for i in a:
	if i == '1':
		k += 1
if k > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
r = input().split(' ')
if '1' in r:
	print('HARD')
else:
	print('EASY')


def sparwdzanieCzyTrudne(ileLiczb, listaTrudneLatwe):
	for i in range(0, ileLiczb):
		if listaTrudneLatwe[i] == 1:
			return False
	return True
ilePytan = int(input())
latweCzyTrudne = list(map(int, input().split()))
wynik = sparwdzanieCzyTrudne(ilePytan, latweCzyTrudne)
if wynik == False:
	print('HARD')
else:
	print('EASY')


def c(l):
	for i in l:
		if i == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
l = list(map(int, input().split()))
print(c(l))


import sys
n = map(int, input())
m = [int(i) for i in input().split()]
for o in m:
	if o == 1:
		print('HARD')
		exit()
print('EASY')


def main():
	n = int(input())
	r = list(map(int, input().split()))
	if any(r):
		print('HARD')
		return
	print('EASY')
main()


num = int(input())
vote = list(map(int, input().split()))
vote.sort(reverse=True)
for i in range(num):
	if vote[i] == 1:
		print('HARD')
		break
	else:
		print('EASY')
		break


lst = []
a = int(input())
lst.extend(input().split())
lst2 = []
for i in lst:
	i = int(i)
	lst2.append(i)
if 1 in lst2:
	print('HARD')
else:
	print('EASY')


n = int(input())
num = input()
arr = []
count = 0
for i in range(0, len(num)):
	if num[i] == ' ':
		arr.append(int(num[count:i]))
		count = i + 1
	elif i == len(num) - 1:
		arr.append(int(num[count:len(num)]))
data = False
for i in arr:
	if i == 1:
		data = True
		break
if data == True:
	print('HARD')
else:
	print('EASY')


n = int(input())
x = input().split()
array = [0] * n
for i in range(n):
	array[i] += int(x[i])
for i in range(n):
	if array[i] == 1:
		stts = True
		break
	else:
		stts = False
if stts == True:
	print('HARD')
else:
	print('EASY')


easy = True
int(input())
mass = map(int, input().split())
for elem in mass:
	if elem == 1:
		easy = False
print('EASY' if easy else 'HARD')


n = int(input())
m = list(input())
print('HARD' if m.count('1') > 0 else 'EASY')


t = int(input())
l = input().split()
if '1' in l:
	print('HARD')
else:
	print('EASY')


n = input()
arr_r = input()
arr_r.split(' ')
if '1' in arr_r:
	print('HARD')
else:
	print('EASY')


p = int(input())
x = input()
if '1' in x:
	print('HARD')
else:
	print('EASY')


def main():
	n = int(input())
	responses = [int(i) for i in input().split()]
	hard_response_count = responses.count(1)
	if hard_response_count > 0:
		print('HARD')
	else:
		print('EASY')
main()


num = int(input())
opinions = [int(n) for n in input().split()]
if 1 in opinions:
	print('HARD')
else:
	print('EASY')


persone = input()
verdetto_persone = input().split(' ')
verdetto_lista = []
for persona in verdetto_persone:
	if persona == '1':
		verdetto_lista.append('HARD')
	else:
		verdetto_lista.append('EASY')
if 'HARD' in verdetto_lista:
	print('HARD')
else:
	print('EASY')


n = input()
line = [~int(i) for i in input().split()]
answer = 1
for j in line:
	temp = answer & j
	answer = temp
if answer == 1:
	print('EASY')
else:
	print('HARD')


n = int(input())
print('HARD' if any((bool(int(_)) for _ in input().split())) else 'EASY')


t = int(input())
tab = [int(i) for i in input().split()]
reponse = 'EASY'
for i in tab:
	if i == 1:
		reponse = 'HARD'
		break
print(reponse)


t = int(input())
l = list(map(int, input().strip().split()))
if 1 in l:
	print('HARD')
else:
	print('EASY')


n = int(input().strip())
lst = map(int, input().strip().split())
if sum(lst):
	print('HARD')
else:
	print('EASY')


number = input()
string = input()
listofString = string.split(' ')
listofString = [int(i) for i in listofString]
if sum(listofString) >= 1:
	print('HARD')
else:
	print('EASY')


people = int(input())
opinions = list((int(x) for x in input().split()))
opinions.sort()
if opinions[people - 1] == 1:
	print('HARD')
else:
	print('EASY')


w = int(input())
x = input()
y = x.split(' ')
z = []
hrd = 0
for i in y:
	z.append(int(i))
for i in z:
	if i == 1:
		hrd += 1
if hrd > 0:
	print('HARD')
else:
	print('EASY')


m = int(input())
k = 0
M = input()
for i in range(0, m):
	if int(M[i * 2]) == 1:
		print('HARD')
		break
	k += 1
if k == m:
	print('EASY')


times = input()
inputs = input()
inputArray = inputs.split(' ')
if '1' in inputArray:
	result = 'HARD'
else:
	result = 'EASY'
print(result)


n = int(input())
ans = input().split()
k = 0
while k < n and ans[k] == '0':
	k = k + 1
if k < n:
	print('HARD')
else:
	print('EASY')


n = int(input())
inp = [int(x) for x in input().split()]
false = False
for i in inp:
	if i == 1:
		false = True
		break
if false:
	print('HARD')
else:
	print('EASY')


n = int(input())
list = input().split(' ')
flag = True
for x in list:
	x = int(x)
	if x == 1:
		flag = False
if flag == False:
	print('HARD')
else:
	print('EASY')


x = int(input())
y = 0
z = input()
if '1' in z:
	y = 1
if y == 1:
	print('HARD')
else:
	print('EASY')


num_of_people = input()
opinions = input().split()
if '1' in opinions:
	print('HARD')
else:
	print('EASY')


no_of_people = input()
difficulty = list(input().split())
problem = 'EASY'
for hardness in difficulty:
	if hardness == '1':
		problem = 'HARD'
print(problem)


n = int(input())
ar = list(map(int, input().split()))
ck = 0
for i in range(n):
	if ar[i] == 1:
		ck = 1
if ck == 0:
	print('EASY')
else:
	print('HARD')


k = int(input())
v = input()
e = v.split(' ')
a = []
hrd = 0
for i in e:
	a.append(int(i))
for i in a:
	if i == 1:
		hrd += 1
if hrd > 0:
	print('HARD')
else:
	print('EASY')


a = input()
s = input()
if s.find('1') == -1:
	print('EASY')
else:
	print('HARD')


n = input()
a = input().split()
for x in range(len(a)):
	a[x] = int(a[x])
easy = 'EASY'
hard = 'HARD'
boolean = True
for x in a:
	if x == 1:
		boolean = False
if boolean == True:
	print(easy)
else:
	print(hard)


n = input()
a = map(int, input().split())
r = False
for el in a:
	r = r or el
if r:
	print('HARD')
else:
	print('EASY')


import sys
n = int(input())
if n >= 1 and n <= 100:
	pass
else:
	print('Invalid amount of number of people who were asked')
	print('Goodbye.')
	sys.exit()
a = list(map(int, input().strip().split()))[:n]
flag = 0
for num in a:
	if num == 1:
		print('HARD')
		flag = 1
		break
	elif num == 0:
		continue
	else:
		print('Invalid Input of person thinks ')
		print('Goodbye.')
		sys.exit()
if flag == 0:
	print('EASY')


def solve():
	total = int(input())
	opinions = list(map(int, input().split()))
	for x in opinions:
		if x == 1:
			print('HARD')
			return
	print('EASY')
solve()


n = int(input())
op = input().split()
if op.count('1') >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = input().split(' ')
b = True
for i in s:
	if i != '0':
		b = False
		break
if not b:
	print('HARD')
else:
	print('EASY')


input()
print('EASY' if set(input().split()) == {'0'} else 'HARD')


n = int(input())
arr = list(map(int, input().split()))
hard = 0
for i in arr:
	if i == 1:
		hard = 1
if hard == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
b = []
k = 0
b = [int(i) for i in input().split()]
for i in range(n):
	if b[i] == 1:
		k += 1
if k != 0:
	print('HARD')
else:
	print('EASY')


x = int(input())
hard_or_easy = input()
y = str(hard_or_easy)
if '1' in y:
	print('HARD')
else:
	print('EASY')


n = input()
s = input().split()
x = 'EASY'
if s.count('1'):
	x = 'HARD'
print(x)


input()
ll = list(map(int, input().split()))
try:
	ll.index(1)
	print('HARD')
except ValueError:
	print('EASY')


n = int(input())
k = 0
s = input().split()
a = list(map(int, s))
for i in range(n):
	if a[i] != 0:
		k += 1
if k != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
prob = list(map(int, input().split()))
q = True
for x in prob:
	if x == 1:
		q = 0
if q:
	print('EASY')
else:
	print('HARD')


n = int(input())
q = input().split(' ')
print('HARD' if '1' in q else 'EASY', end='')


u = int(input())
z = list(map(int, input().split()))
a = 1 in z
print(str(a).replace('True', 'HARD').replace('False', 'EASY'))


t = int(input())
l = list(map(int, input().split()))
for i in range(t):
	if 1 in l:
		print('HARD')
		break
	if i == t - 1 and l[i] == 0:
		print('EASY')


n = int(input())
people = map(int, input().split())
count = 0
a = ''
for number in range(n):
	for person in people:
		if person == 1:
			count = count + 1
if count > 0:
	a = 'HARD'
else:
	a = 'EASY'
print(a)


number = input()
arr = input()
print('HARD') if '1' in arr else print('EASY')


import sys
n = int(input())
x = input().split()
answer = 'EASY'
sum = 0
for i in x:
	i = int(i)
	sum = sum + i
if sum > 0:
	answer = 'HARD'
print(answer)


discard = input()
x = input().split()

def ez(x):
	for i in x:
		if i != '0':
			return 'HARD'
	return 'EASY'
print(ez(x))


import sys
input = sys.stdin.readline
Num = list(map(int, input().split()))
place = list(map(int, input().split()))
anwser = 'EASY'
for i in range(Num[0]):
	if place[i] == 1:
		anwser = 'HARD'
		break
	else:
		continue
print(anwser)


n = int(input())
m = input().split()
if any((i == '1' for i in m)):
	print('HARD')
else:
	print('EASY')


x = int(input(''))
ar = list(map(int, input().strip().split(' ')))
s = sum(ar)
if s > 0:
	print('HARD')
else:
	print('EASY')


n = input()
h = input()
s = 'EASY'
for letter in h:
	if letter == '1':
		s = 'HARD'
print(s)


n = int(input())
opinions = map(int, input().split())
answer = 'EASY'
for i in opinions:
	if i == 1:
		answer = 'HARD'
print(answer)


n = int(input())
a = list(map(int, input().split()))
print(['EASY', 'HARD'][1 in a])


n = int(input())
st = list(input().split())
flag = 0
for i in st:
	if i == '1':
		flag = 1
		break
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = input()
yo = input()
if '1' in yo:
	print('HARD')
else:
	print('EASY')


n = int(input())
isEasy = list(map(int, input().split()))
isReal = False
i = 0
while i < n:
	if isEasy[i] == 1:
		print('HARD')
		isReal = True
		break
	i = i + 1
if not isReal:
	print('EASY')


x = int(input())
r = input().split()
i = 0
z = False
while i < x:
	if int(r[i]) == 1:
		z = True
		break
	i = i + 1
if z == True:
	print('HARD')
else:
	print('EASY')


number = int(input())
dif = sum([int(i) for i in input().split()])
if dif > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
numList = list((int(num) for num in input().strip().split()))[:n]
for x in numList:
	if x == 1:
		print('HARD')
		break
if x == 0:
	print('EASY')


n = int(input())
array = list(map(int, input().split()))
if array.count(1) > 0:
	print('HARD')
elif array.count(1) == 0:
	print('EASY')


n = int(input())
A = list(map(int, input().split()))
c = A.count(1)
if c >= 1:
	print('HARD')
else:
	print('EASY')


i = int(input())
a = input()
hardness = 0
alist = list(a)
for i in range(len(alist)):
	if alist[i] == '1':
		hardness = 1
if hardness == 1:
	print('HARD')
else:
	print('EASY')


b = False
n = int(input())
s = str(input())
if '1' in s:
	print('HARD')
else:
	print('EASY')


flag = False
n = int(input())
for elem in map(int, input().split()):
	if elem == 1:
		flag = True
if flag:
	print('HARD')
else:
	print('EASY')


a = input()
b = input().split(' ')
a = False
for i in b:
	if i == '1':
		a = True
if a:
	print('HARD')
else:
	print('EASY')


n = int(input())
ans = input()
if '1' in ans:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = [int(x) for x in input().split()]
print('EASY' if sum(b) == 0 else 'HARD')


input()
l = list(map(int, input().split()))
print(['EASY', 'HARD'][1 in l])


line = input()
line2 = input()
if '1' in line2:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = list(map(int, input().split()))
easy = True
for x in arr:
	if x == 1:
		easy = False
		break
if easy:
	print('EASY')
else:
	print('HARD')


n = int(input())
s = input().split()
c = s.count('1')
if c > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
string = input()
ls = list(map(int, string.split(' ')))
if sum(ls):
	print('HARD')
else:
	print('EASY')


def main():
	n = int(input())
	a = input().split(' ')
	for i in range(0, n):
		if int(a[i]) == 1:
			print('HARD')
			return 'HARD'
	print('EASY')
	return 'EASY'
main()


import sys
n = int(input())
s = input().split()
for i in range(n):
	if int(s[i]) == 1:
		print('HARD')
		exit()
print('EASY')


x = int(input())
a = input()
b = a.split(' ')
i = 0
m = 0
k = 0
while i < x:
	b[i] = int(b[i])
	if b[i] == 0:
		m = m + 1
	if b[i] == 1:
		k = k + 1
	i = i + 1
if m == x:
	print('EASY')
else:
	print('HARD')


import sys
N = int(input())
responses = input().strip().split()
for i in range(N):
	responses[i] = int(responses[i])
	if responses[i] == 1:
		print('HARD')
		sys.exit(0)
print('EASY')


before = int(input())
people = input()
split_people = people.split()
counter = 0
for num in range(before):
	if int(split_people[num]) == 1:
		counter = counter + 1
		break
if counter == 1:
	print('HARD')
else:
	print('EASY')


line1 = str(input())
line2 = str(input())
print('EASY' if int(line1) > 0 and '1' not in line2 else 'HARD')


n = int(input(''))
lis = input('')
easy = True
for i in lis:
	if i == '1':
		easy = False
if easy == True:
	print('EASY')
else:
	print('HARD')


v = int(input())
a = [int(x) for x in input().split()]
for i in range(v):
	if a[i] == 1:
		print('HARD')
		exit()
print('EASY')


try:
	while True:
		n = int(input())
		arr = list(map(int, input().split()))
		if 1 in arr:
			print('HARD')
		else:
			print('EASY')
except Exception as e:
	pass


n = int(input())
s = input()
e = False
res = s.split()
for i in range(0, n):
	res[i] = int(res[i])
for i in range(0, n):
	if res[i] == 1:
		e = True
		break
	else:
		continue
if e is False:
	print('EASY')
else:
	print('HARD')


import sys
input()
opins = [int(i) for i in input().split()]
for i in opins:
	if i == 1:
		print('HARD')
		sys.exit()
print('EASY')


n = int(input())
os = [int(x) for x in input().split()]
for item in os:
	if item == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
f = input()
f = f.split()
i = 0
s = 0
while i <= n - 1:
	s = s + int(f[i])
	i += 1
if s > 0:
	print('HARD')
else:
	print('EASY')


while 1:
	try:
		x = int(input())
		y = [int(e) for e in input().split()]
	except:
		break
	ea = 0
	for i in y:
		if i == 1:
			ea = 1
			break
	print('EASY' if ea == 0 else 'HARD')


a = int(input())
arr = [int(x) for x in input().split()]
flag = 0
check = 1
for i in range(a):
	if arr[i] == 1:
		print('HARD')
		flag = 1
		break
if flag == 0:
	print('EASY')


n = input()
opinion = list(input().split())
print('HARD' if '1' in opinion else 'EASY')


n = input()
b = input()
if '1' in b:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(x) for x in input().split()]
k = 0
for i in a:
	if i == 1:
		k = 1
		print('HARD')
		break
if k == 0:
	print('EASY')


n = int(input())
responseList = list(map(int, input().split()))
check = 0
for i in range(n):
	if responseList[i] == 1:
		check += 1
		break
if check == 0:
	print('EASY')
else:
	print('HARD')


import sys

def main():
	x = 0
	k = 0
	n = 0
	for line in sys.stdin:
		x += 1
		if x == 1:
			k = line
		elif x == 2:
			n = line
			if '1' in n.split():
				print('HARD')
				return 0
			else:
				print('EASY')
				return 0
main()


n = int(input())
k = list(map(int, input().split()))
d = 0
for i in range(n):
	if k[i] == 0:
		pass
	else:
		print('HARD')
		d = 1
		break
if d == 0:
	print('EASY')


import sys
fin = sys.stdin
fout = sys.stdout
lines = (line.strip() for line in fin)
n = int(next(lines))
is_hard = any(map(int, next(lines).split()))
print('HARD' if is_hard else 'EASY', file=fout)


num = input()
vote = input().split()
count = 0
for i in range(int(num)):
	if int(vote[i]) == 1:
		count += 1
if count >= 1:
	print('HARD')
else:
	print('EASY')


a = input()
b = input().split()
k = 0
for n in b:
	k = k + int(n)
if k > 0:
	print('HARD')
else:
	print('EASY')


n1 = int(input())
t = input().split()
if '1' in t:
	print('HARD')
else:
	print('EASY')


s = int(input())
s1 = list(map(int, input().split()))
print((max(s1) >= 1) * 'HARD' or (max(s1) < 1) * 'EASY')


k = int(input())
ans = list(map(int, input().split()))
fl = True
for i in ans:
	if i == 1:
		fl = False
		break
if fl:
	print('EASY')
else:
	print('HARD')


n = input()
k = map(int, input().split())
sum_k = sum(k)
if sum_k == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = input().split()
a = list(a)
easy = 0
for i in range(n):
	if int(a[i]) == 1:
		easy += 1
if easy >= 1:
	print('HARD')
elif easy < 1:
	print('EASY')


input()
print('EHAASRYD'[input().count('1') > 0::2])


def main(lista):
	bandera = False
	for i in lista:
		if i == 1:
			bandera = True
			break
	if bandera:
		print('HARD')
	else:
		print('EASY')
n = int(input())
lista = list(map(int, input().rstrip().split()))
main(lista)


a = int(input())
b = list(map(int, input().split()))
c = True
for i in range(a):
	if b[i] == 1:
		c = False
		break
if c == True:
	print('EASY')
else:
	print('HARD')


def easyProblem():
	num = int(input())
	responses = list(map(int, input().split(' ')))
	difficulty = 'EASY'
	if 1 in responses:
		difficulty = 'HARD'
	return difficulty
print(easyProblem())


n = int(input())
z = []
z = [int(i) for i in input().split()]
z.sort()
if z[-1] == 1:
	print('HARD')
else:
	print('EASY')


state = 'EASY'
no = input()
inputs = input().split()
if '1' in inputs:
	state = 'HARD'
print(state)


n = int(input())
line = input().split()
for i in range(n):
	if line[i] == '1':
		print('HARD')
		break
	elif i == n - 1:
		print('EASY')


def check(persons, opinions):
	for i in range(persons):
		if int(opinions[i]) == 1:
			return 'HARD'
			break
	return 'EASY'
persons = int(input())
opinions = input().split(' ')
print(check(persons, opinions))


n = int(input())
a = [int(i) for i in input().split()]
f = False
for i in a:
	if i == 1:
		f = True
if f:
	print('HARD')
else:
	print('EASY')


def fun(a):
	global c
	if a == '1':
		c = 1
c = 0
n = int(input())
l = list(map(fun, input().split()))
if c == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
s = [int(x) for x in input().split()]
for i in range(n):
	if s[i] == 1:
		print('HARD')
		quit()
print('EASY')


n = int(input())
d = True
list1 = list(map(int, input().split()))
for items in list1:
	if items != 0:
		d = False
		break
if d == True:
	print('EASY')
else:
	print('HARD')


n = int(input())
i = list(map(int, input().split()))
i.sort()
x = i[:1]
y = sum(x)
x1 = i[-1]
print('EASY' * (abs(y - 1) * abs(x1 - 1)) + 'HARD' * (1 - abs(1 - y) * abs(1 - x1)))


def solve(nums):
	return 'EASY' if all((char == '0' for char in nums)) else 'HARD'
n = input()
nums = input().split()
print(solve(nums))


a = input()
b = list(map(int, input().split()))
b = b.count(1)
x = 1
y = 0
c = [x, y]
d = b == 0
c.sort(reverse=d)
c[c.index(x)] = 'EASY'
c[c.index(y)] = 'HARD'
print(c[0])


e = int(input())
c = input().split()
d = c.count('1')
if d > 0:
	print('HARD')
if d == 0:
	print('EASY')


a = int(input())
counter = 0
for i in range(1):
	s = input()
	if '1' in s:
		counter += 1
if counter > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
op = input()
if '1' in op:
	print('HARD')
else:
	print('EASY')


n = int(input())
i = input().split(' ')
if i.count(str(1)) > 0:
	print('HARD')
else:
	print('EASY')


d = input()
x = input()
x = x.split(' ')
for i in x:
	if i == '1':
		print('HARD')
		exit()
print('EASY')


n = int(input())
nums = str(input())
if '1' in nums:
	print('HARD')
else:
	print('EASY')


import sys
from functools import lru_cache, cmp_to_key
from heapq import merge, heapify, heappop, heappush, nlargest, nsmallest, _heapify_max, _heapreplace_max
from math import ceil, floor, gcd, fabs, factorial, fmod, sqrt, inf, log
from collections import defaultdict as dd, deque, Counter as c
from itertools import combinations as comb, permutations as perm
from bisect import bisect_left as bl, bisect_right as br, bisect
from fractions import Fraction
mod = pow(10, 9) + 7
mod2 = 998244353

def data():
	return sys.stdin.readline().strip()

def out(*var, end='\n'):
	sys.stdout.write(' '.join(map(str, var)) + end)

def l():
	return list(sp())

def sl():
	return list(ssp())

def sp():
	return map(int, data().split())

def ssp():
	return map(str, data().split())

def l1d(n, val=0):
	return [val for i in range(n)]

def l2d(n, m, val=0):
	return [l1d(n, val) for j in range(m)]
n = int(data())
arr = l()
if arr.count(0) == n:
	out('EASY')
	exit()
out('HARD')


in_num = int(input())
nums = list(map(int, input().split()))
flag = 1
for a in nums:
	if a == 1:
		flag = 0
		break
if flag:
	print('EASY')
else:
	print('HARD')


T = int(input())
dif = list(map(int, input().split()))
for i in range(T):
	if dif[i] == 1:
		print('HARD')
		break
	else:
		continue
else:
	print('EASY')


n = int(input())
a = list(map(int, input().strip().split()))[:n]
cnt = 0
for i in a:
	if i == 1:
		cnt = 1
		break
if cnt:
	print('HARD')
else:
	print('EASY')


t = int(input())
s = input().split()
c = 0
for i in s:
	if i == '1':
		print('HARD')
		break
	else:
		c = c + 1
if c == len(s):
	print('EASY')


first_input = input()
second_input = input()
if second_input.count('1') == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
li = [int(i) for i in input().split()]
li.sort()
print(['HARD', 'EASY'][li[-1] != 1])


n = int(input())
a = list(map(int, input().split()))
k = False
for x in a:
	if x == 1:
		k = True
		break
if k:
	print('HARD')
else:
	print('EASY')


def main():
	n = input('')
	k = input('')
	easy = True
	for i in k:
		if i != ' ':
			if i == '1':
				easy = False
	if not easy:
		print('HARD')
	else:
		print('EASY')
main()


def solution():
	input()
	answers = input().split(' ')
	for i in answers:
		if i == '1':
			print('HARD')
			return
	print('EASY')

def array_to_int(array):
	for i in range(len(array)):
		array[i] = int(array[i])
	return array
solution()


input_size = int(input())
ratings = [int(x) for x in input().split(' ')]
if ratings.count(1) > 0:
	print('HARD')
else:
	print('EASY')


t = input()
ls = list(map(int, input().split(' ')))
if ls.count(1) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = set(map(int, input().split()))
print(('EASY', 'HARD')[1 in s])


n = eval(input())
m = input().split()
i = 0
x = 0
for i in range(n):
	if m[i] == '1':
		x = x + 1
		break
if x == 0:
	print('EASY')
else:
	print('HARD')


n = input()
n = int(n)
inp = list
inp = input()
c3 = 0
c3 = inp.count('1')
if c3 > 0:
	print('HARD')
else:
	print('EASY')


import sys
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
n = inp()
l = inlt()
if sum(l):
	print('HARD')
else:
	print('EASY')


N = int(input())
A = list(map(int, input().split()))
flag = True
for i in A:
	if i == 1:
		flag = False
		break
if flag == False:
	print('HARD')
else:
	print('EASY')


feedback = []
n = int(input())
score = input()
feedback = score.split()
mytuple = tuple(feedback)
if '1' in mytuple:
	print('HARD')
else:
	print('EASY')


n = int(input())
list1 = list(map(int, input().split()))
for i in range(0, n):
	x = int(list1[i])
	if x:
		print('HARD\n')
		exit(0)
print('EASY\n')


def main():
	n = int(input())
	p = [int(_) for _ in input().split()]
	for _p in p:
		if _p:
			print('HARD')
			return
	print('EASY')
main()


import re
input()
s = input()
print('HARD' if re.search('1', s) is not None else 'EASY')


n = int(input())
k = [int(a) for a in input().split()]
s = 'EASY'
if n == len(k):
	for i in k:
		if i == 1:
			s = 'HARD'
print(s)


n = int(input())
dec = 0
s = input().split()
for i in range(0, len(s)):
	dec += int(s[i])
if dec != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
aux = input()
aux = aux.split(' ')
ok = True
for i in range(n):
	if aux[i] == '1':
		ok = False
if ok == True:
	print('EASY')
else:
	print('HARD')


def solution(answers):
	for element in answers:
		if element == '1':
			print('HARD')
			return
	print('EASY')
n = int(input())
answers = input().split()
solution(answers)


try:
	n = int(input())
	l = list(map(int, input().split()))[:n]
	f = 0
	for i in range(n):
		if l[i] == 0:
			continue
		else:
			f = 1
			break
	if f == 1:
		print('HARD')
	else:
		print('EASY')
except:
	pass


input()
print('HARD' if [*map(int, input().split())].count(1) else 'EASY')


def get_first_input():
	return int(input())

def get_second_input():
	s = input()
	return s.split(' ')

def main():
	a = get_first_input()
	b = get_second_input()
	if '1' in b:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
t = input()
if '1' in t:
	print('HARD')
else:
	print('EASY')


n = input()
l = list(map(int, input().split()))
f = False
for i in range(len(l)):
	if l[i] == 1:
		print('HARD')
		f = True
		break
if f == False:
	print('EASY')


s = int(input())
m = input().split()
c = m.count('1')
if c >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = list(map(int, input().split()))
if n == 1:
	if arr[0] == 1:
		print('HARD')
	else:
		print('EASY')
elif len(set(arr)) > 1:
	print('HARD')
elif arr[0] == 1:
	print('HARD')
else:
	print('EASY')


(i, n) = (int(input()), str(input()))
if '1' in n:
	print('HARD')
else:
	print('EASY')


import sys

def main():
	n = int(sys.stdin.readline())
	s = sys.stdin.readline().strip('\n')
	if s.find('1') == -1:
		print('EASY')
	else:
		print('HARD')
main()


input1 = input()
input2 = input()
answers = input2.split()
for answer in answers:
	if answer == '1':
		print('HARD')
		quit()
print('EASY')


import sys
n = int(input())
ratings = input().split()
ratings = [int(x) for x in ratings]
for x in ratings:
	if x == 1:
		print('HARD')
		sys.exit()
print('EASY')


n = int(input())
op = input().split()
i = 0
ok = True
while i < len(op):
	op[i] = int(op[i])
	if op[i] == 1:
		ok = False
		break
	i += 1
if ok == True:
	print('EASY')
else:
	print('HARD')


n = input()
value = input()
value_as_list = value.split(' ')
if value_as_list.__contains__('1'):
	print('HARD')
else:
	print('EASY')


n = int(input())
op = list(map(int, input().split()))
print(('EASY', 'HARD')[1 in op])


n = int(input(''))
str = input('').split()
i = True
for x in str:
	if x == '1':
		print('HARD')
		i = False
		break
	else:
		continue
if i == True:
	print('EASY')


n = int(input())
if len([i for i in input().split() if i == '1']) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
opinions = map(int, input().split())
is_easy = True
for o in opinions:
	if o == 1:
		print('HARD')
		is_easy = False
		break
if is_easy:
	print('EASY')


T = int(input())
A = input()
f = 0
for i in range(len(A)):
	if A[i] == '1':
		f = 1
if f == 1:
	print('HARD')
else:
	print('EASY')


n = input()
line = input()
tmp = 0
for i in line.split(' '):
	if int(i) == 1:
		tmp = 1
		break
if tmp == 0:
	print('EASY')
else:
	print('HARD')


import sys
n = sys.stdin.readline().strip('\n')
ans_lst = list(map(int, sys.stdin.readline().split()))

def easy_prob(n, lst):
	for i in range(len(ans_lst)):
		if ans_lst[i] == 1:
			print('HARD')
			return
	print('EASY')
easy_prob(n, ans_lst)


import sys
local_launch = False
try:
	open('LOCAL').read()
	local_launch = True
except:
	pass
input_data = open('INPUT.txt').read() if local_launch else sys.stdin.read()
done = {'i': 0}
tokens = input_data.split()

def next_token():
	result = tokens[done['i']]
	done['i'] += 1
	return result

def next_int():
	return int(next_token())

def next_str():
	return next_token()
z = 0
n = next_int()
a = [next_int() for i in range(n)]
for i in range(len(a)):
	if a[i] == 1:
		z += 1
	else:
		z += 0
if z >= 1:
	print('HARD')
else:
	print('EASY')


import sys
lines = []
for line in sys.stdin:
	lines.append(line.rstrip('\n'))
answer = int(lines[1].replace(' ', ''))
print('EASY' if answer == 0 else 'HARD')


n = int(input())
a = map(int, input().split())
for value in a:
	if value == 1:
		print('HARD')
		exit()
print('EASY')


a = int(input())
c = [int(v) for v in input().split()]
d = 0
for i in range(a):
	if c[i] == 1:
		d = 1
		break
	elif c[i] == 0:
		d = 0
if d == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
k = input()
k = k.split()
count = 0
for x in range(n):
	a = int(k[x])
	if a == 1:
		count = count + 1
if count == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
out = 'EASY'
n = input()
for x in n.split(' '):
	if int(x) == 1:
		out = 'HARD'
print(out)


input()
print(['EASY', 'HARD'][1 in list(map(int, input().strip().split()))])


x = []
n = int(input())
fl = 0
x = list(map(int, input().split()))
for i in range(len(x)):
	if x[i] == 1:
		fl = 1
		break
if fl == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = list(map(int, input().split()))
easy = 0
for i in arr:
	if i == 0:
		easy += 1
	elif i == 1:
		easy += 0
	else:
		pass
if easy == n:
	print('EASY')
else:
	print('HARD')


a = input()
nums = input()
for n in nums.split():
	n = int(n)
	if n == 1:
		print('HARD')
		exit(0)
print('EASY')


conts = input()
get = input()
get = [int(x) for x in get.split(' ')]
easy = 1
for x in get:
	if x == 1:
		easy = 0
if easy:
	print('EASY')
else:
	print('HARD')


n = int(input())
k = [int(x) for x in input().split()]
for i in range(len(k)):
	if k[i] == 1 or k[-1:] == 1 or k[len(k) // 2] == 1:
		result = 'HARD'
		break
	else:
		result = 'EASY'
print(result)


_entrada = list(map(int, input().split()))
_entrada2 = list(map(int, input().split()))
if sum(_entrada2) == 0:
	print('EASY')
else:
	print('HARD')


x = int(input())
arr = []
cond = False
arr = list(map(int, input().split()))
for i in range(x):
	if arr[i]:
		cond = True
if cond:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = str(input())
li = list(s.split(' '))
check = 0
for i in range(0, n):
	if int(li[i]) == 1:
		check = 1
		break
if check == 0:
	print('EASY')
else:
	print('HARD')


t = int(input())
li = list(map(int, input().strip().split()))
if li.count(1) >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
x = str(input())
if '1' in x:
	print('HARD')
else:
	print('EASY')


number = input()
content = input()
answers = content.split(' ')
if '1' in answers:
	print('HARD')
else:
	print('EASY')


import sys
n = int(sys.stdin.readline())
answers = map(int, sys.stdin.readline().split())
result = 'EASY'
for answer in answers:
	if answer:
		result = 'HARD'
		break
print(result)


input()
r = input()
bool = True
for i in r:
	if i == '1':
		bool = False
		break
if bool:
	print('EASY')
else:
	print('HARD')


people = input()
opinion = input()
print('HARD') if '1' in opinion else print('EASY')


n = int(input())
y = input()
if '1' in y:
	print('HARD')
else:
	print('EASY')


n = input()
inp = input().split()
out = 'EASY'
for i in range(len(inp)):
	if int(inp[i]) == 1:
		out = 'HARD'
		break
print(out)


p = input()
a = list(input().split(' '))
for item in a:
	item = int(item)
	if item == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
data = [int(i) for i in input().split()]
if len(set(data)) == 1 and data[0] != 1:
	print('EASY')
else:
	print('HARD')


n = int(input())
p1 = ''
p2 = 0
p0 = input().split()
for i in range(0, n):
	p1 = int(p0[i])
	if p1 == 1:
		p2 = 1
if p2 == 1:
	print('HARD')
else:
	print('EASY')


from sys import stdin

def main():
	stdin.readline().strip()
	nums = [int(x) for x in stdin.readline().strip().split()]
	print('EASY' if 1 not in nums else 'HARD')
main()


num = input()
assess = input().split()
if '1' in assess:
	print('HARD')
else:
	print('EASY')


n = int(input())
array = [int(x) for x in input().split()]
ok = True
for x in array:
	if x == 1:
		ok = False
		break
print('EASY' if ok else 'HARD')


n = int(input(''))
c = input('')
d = c.split(' ')
b = 0
for i in range(n):
	b += int(d[i])
if b == 0:
	print('EASY')
else:
	print('HARD')


n = []
i = 0
while i < 2:
	item = input()
	n.append(item)
	i = i + 1
x = n[1].split(' ')
j = 0
for word in x:
	j = j + int(word)
if j == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
s = input().split()
x = 0
while x < len(s) - 1 and s[x] != '1':
	x += 1
if x == len(s) - 1 and s[-1] == '0':
	print('EASY')
else:
	print('HARD')


n = int(input())
li = input()
if li.count('1') != 0:
	print('HARD')
else:
	print('EASY')


def foo(n, a, i=0):
	if i == n:
		return 'EASY'
	if a[i] == 1:
		return 'HARD'
	return foo(n, a, i + 1)
n = int(input())
a = list(map(int, input().split()))
print(foo(n, a))


def listsum(numList):
	if len(numList) == 1:
		return numList[0]
	else:
		return numList[0] + listsum(numList[1:])
n = int(input())
l = list(map(int, input().split()))
x = listsum(l)
if x > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input().split(' ')
f = 0
for e in a:
	if e == '1':
		f = 1
		break
if f == 1:
	print('HARD')
else:
	print('EASY')


n_people = input()
responses = input()
if '1' in responses:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = input()
sum = 0
num = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
for i in s:
	if i in num:
		sum += int(i)
if sum == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
string = input()
mass = string.split(' ')
bool_4 = 0
for i in range(n):
	if mass[i] == '1':
		bool_4 = 1
		break
if bool_4 == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
r = 0
k = list(map(int, input().split()))
for i in range(0, n):
	j = k[i]
	if j == 1 or j == 0:
		if j == 1:
			r = r + 1
if r == 0:
	print('EASY')
else:
	print('HARD')


import math
import os
import random
import re
import sys
n = int(input())
l = list(map(int, input().rstrip().split()))
if 1 in l:
	print('HARD')
else:
	print('EASY')


a = input()
b = input().split()
c = ['EASY', 'HARD']
out = bool(b.count('1'))
print(c[out])


n = input()
op = input()
if op.count('1') == 0:
	print('EASY')
elif op.count('1') > 0:
	print('HARD')


n = int(input())
l = input().split()
j = 'EASY'
for i in l:
	if i == '1':
		j = 'HARD'
print(j)


n = int(input())
ls = list(map(int, input().split()))
j = 0
for i in range(len(ls)):
	if ls[i] == 0:
		c = 1
	else:
		j = 1
		break
if j == 1:
	print('HARD')
else:
	print('EASY')


def solve(ans):
	for i in ans:
		if i == 1:
			return 'HARD'
	return 'EASY'
t = int(input())
ans = map(int, input().split())
print(solve(ans))


n = int(input())
opinion = list(map(int, input().split()))
is_hard = False
for view in opinion:
	if view == 1:
		print('HARD')
		is_hard = True
		break
if is_hard == False:
	print('EASY')


k = map(int, input().split())
mylist = list(map(int, input().split()))
if 1 in mylist:
	print('HARD')
else:
	print('EASY')


n = int(input())
entrada = input().split(' ')
if '1' in entrada:
	print('HARD')
else:
	print('EASY')


n = int(input())
vote = input().split()
if len(vote) <= n:
	if '1' in vote:
		print('HARD')
	else:
		print('EASY')


dic = int(input())
print('HARD' if sum(map(int, input().split())) else 'EASY')


n = int(input())
table = [True, False]
if all([table[int(x)] for x in input().split()]):
	print('EASY')
else:
	print('HARD')


n = int(input())
nums = list(map(int, input().split()))
hard = 0
for x in range(len(nums)):
	if nums[x] == 1:
		hard = 1
		break
if hard == 1:
	print('HARD')
else:
	print('EASY')


import sys
input = lambda : sys.stdin.readline().rstrip()

def I():
	return [int(iI) for iI in input().split()]
(n,) = I()
a = I()
print('HARD') if sum(a) > 0 else print('EASY')


n = int(input())
answers = input().split()
result = 'EASY'
for answer in answers:
	if answer == '1':
		result = 'HARD'
print(result)


person = input()
answer = input()
for i in range(len(answer)):
	if answer[i] == '1':
		print('HARD')
		break
else:
	print('EASY')


N = int(input())
A = map(int, input().split())
if any(A):
	print('HARD')
else:
	print('EASY')


x = int(input())
y = [int(y) for y in input().split(' ')]
cond = 0
for item in y:
	if item == 1:
		cond += 1
if cond > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
number = input().split()
number_of_one = 0
for i in range(n):
	if number[i] == '1':
		number_of_one = number_of_one + 1
if number_of_one >= 1:
	print('HARD')
else:
	print('EASY')


a = input()
b = input()
print('EHAASRYD'['1' in b::2])


def f(A):
	for a in A:
		if a == 1:
			return 'HARD'
	return 'EASY'
N = int(input())
A = list(map(int, input().split()))
ans = f(A)
print(ans)


n = eval(input())
x = input().split()
c = 0
i = 0
while i < n:
	if int(x[i]) == 1:
		c += 1
	i += 1
if c >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
x = [int(i) for i in input().split()]

def popa():
	for i in x:
		if i == 1:
			print('HARD')
			return
	print('EASY')
popa()


n = int(input())
mas = [int(i) for i in input().split()]
for i in mas:
	if i:
		print('HARD')
		exit(0)
print('EASY')


input_length = int(input())
res = 'EASY'
j = input()
if j.count('1') > 0:
	res = 'HARD'
print(res)


input()
lst = list(map(int, input().split()))
f = True
for i in lst:
	if i == 1:
		print('HARD')
		f = False
		break
if f:
	print('EASY')


def answer():
	a = input()
	b = input().split()
	for x in b:
		if x == '1':
			return 'HARD'
	return 'EASY'
print(answer())


n = int(input())
A = input().split()
s = 0
for i in range(n):
	p = int(A[i])
	s = s + p
if s == 0:
	print('EASY')
else:
	print('HARD')


import sys
list_of_lists = []
for line in sys.stdin:
	new_list = [int(elem) for elem in line.split()]
	list_of_lists.append(new_list)
n = list_of_lists[0]
difficulty = set(list_of_lists[1])
if 1 in difficulty:
	print('HARD')
else:
	print('EASY')


n = int(input())
GOLOSOVANIE = list(map(int, input().split()))
cnt = int(0)
for i in range(n):
	if GOLOSOVANIE[i] == 1:
		cnt += 1
if cnt >= 1:
	print('HARD')
else:
	print('EASY')


__author__ = 'Obriel Muga'
n = int(input())
opinions = str(input())
if opinions.find('1') != -1:
	print('HARD')
else:
	print('EASY')


_ = int(input())
flag = 0
nums = [int(x) for x in input().split()]
for x in nums:
	if x == 1:
		flag += 1
if flag > 0:
	print('HARD')
else:
	print('EASY')


people = input()
responses = [int(x) for x in input().split()]
if 1 in responses:
	print('HARD')
else:
	print('EASY')


k = int(input())
j = input().split()
a = 0
for i in j:
	if int(i) == 1:
		a += 1
	else:
		pass
if a == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
b = input().split()
if '1' in b:
	print('HARD')
else:
	print('EASY')


inp_coders = input()
inp_answers = input()
if inp_answers.find('1') != -1:
	print('HARD')
else:
	print('EASY')


input()
pt = input().split()
for i in range(len(pt)):
	if pt[i] != '0':
		print('HARD')
		break
	elif i == len(pt) - 1:
		print('EASY')


a = int(input())
c = 0
mas = [int(i) for i in input().split()]
for i in range(len(mas) - 1):
	if 1 in mas:
		c = 'true'
	else:
		c = 'false'
if c == 'true' or (a == 1 and mas[0] == 1):
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = list(map(int, input().split()))
cnt = 0
for x in arr:
	if x == 1:
		cnt = 1
		break
if cnt == 1:
	print('HARD')
else:
	print('EASY')


import sys
read = lambda : sys.stdin.readline().rstrip()
n = int(read())
N = tuple(map(int, read().split()))
ans = 0
for i in range(n):
	ans += N[i]
print('HARD' if ans > 0 else 'EASY')


input()
results = input()
if '1' in results:
	print('HARD')
else:
	print('EASY')


_ = input()
rating = 'EASY'
for p in input().split(' '):
	if p == '1':
		rating = 'HARD'
print(rating)


n = int(input())
l = [int(j) for j in input().split()]
flag = 0
for i in l:
	if i == 1:
		flag = 1
if flag:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))
e = 0
for i in l:
	if i == 1:
		print('HARD')
		e = 1
		break
if e == 0:
	print('EASY')


def solve(a, b):
	c = 0
	c1 = 0
	for i in range(a):
		if b[i] == 1:
			c += 1
		elif b[i] == 0:
			c1 = 0
	if c >= 1:
		print('HARD')
	elif c1 == 0:
		print('EASY')
n = int(input())
person = list(map(int, input().split(' ')))
solve(n, person)


n = int(input())
c = 0
x = input().split(' ')
for i in range(n):
	d = int(x[i])
	if d == 1:
		c = 1
if c == 1:
	print('HARD')
else:
	print('EASY')


n = input()
print(('EASY', 'HARD')[any(list(map(int, input().split())))])


n = int(input())
d = input().split()
if '1' in d:
	print('HARD')
else:
	print('EASY')


numberOfAnswers = int(input())
answers = input()
if answers.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = [int(x) for x in input().split()]
print(['EASY', 'HARD'][1 in l])


n = int(input())
result = ''
list1 = []

def hard(hard_list, k):
	for i in range(k):
		if hard_list[i] == 1:
			result = 'HARD'
			break
		else:
			result = 'EASY'
	return result
list1 = list(map(int, input().split(' ')))
print(hard(list1, n))


n = int(input())
k = input().split(' ')
for i in range(n):
	actual = k[i]
	if actual == '1':
		print('HARD')
		exit()
if actual == '0':
	print('EASY')


def read_int_line():
	line = input().split()
	return [int(x) for x in line]
n = int(input())
values = read_int_line()
contains_one = False
for val in values:
	if val == 1:
		contains_one = True
if contains_one is True:
	print('HARD')
else:
	print('EASY')


n = eval(input())
o = input()
p = 'EASY'
i = 0
while i < len(o) and p == 'EASY':
	if o[i] == '1':
		p = 'HARD'
	i += 1
print(p)


n = int(input())
values = list(map(int, input().split()))
h = 0
for i in values:
	if i != 0:
		print('HARD')
		h = 1
		break
if h == 0:
	print('EASY')


k = 0
x = int(input())
n = map(int, input().split())
for j in n:
	if j != 0:
		k += 1
if k > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
k = [int(i) for i in input().split()]
for value in k:
	if value == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
l = input().split()
l1 = set(l)
if len(l1) == 2 or l1 == {'1'}:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = list(map(int, input().split()))
if a > 0 and 1 in b:
	print('HARD')
if a > 0 and 1 not in b:
	print('EASY')


n = int(input())
s = input()
r = int(''.join(s.split()), 2)
print('HARD' if r else 'EASY')


input_s = int(input())
input_l = input().split(' ')
result = True
for i in input_l:
	if i != '0':
		result = False
		break
print('EASY' if result else 'HARD')


n = input()
line = input()
strl = line.find('1') == -1 and 'EASY' or 'HARD'
print(strl)


n = int(input())
people = list(map(int, input().split()))
flag = 0
for p in people:
	if p == 1:
		flag = 1
		break
if flag == 1:
	print('HARD')
else:
	print('EASY')


cases = input()
b = input().split(' ')
hard = False
for i in b:
	if i == '1':
		print('HARD')
		hard = True
		break
if not hard:
	print('EASY')


n = int(input())
prob = list(map(int, input().split()))
if 1 in prob:
	print('HARD')
elif 1 not in prob:
	print('EASY')


n = int(input())
m = [int(i) for i in input().split()]
f = 0
for i in range(n):
	if m[i] == 1:
		f += 1
if f != 0:
	print('HARD')
else:
	print('EASY')


len = int(input())
responses = input()
status = 'EASY'
i = 0
for x in range(len):
	if responses[i] == '1':
		status = 'HARD'
		break
	i += 2
print(status)


n = int(input())
a = list(input())
hard = 0
for el in a:
	if el == '1':
		hard += 1
if hard > 0:
	print('HARD')
else:
	print('EASY')


def getarray():
	return list(map(int, input().split()))
n = int(input())
a = getarray()
if 1 in a:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
c = 'EASY'
for i in a:
	if i == 1:
		c = 'HARD'
		break
print(c)


def searchOfEasyProblem():
	n = int(input())
	values = input()
	if '1' in values:
		print('HARD')
	else:
		print('EASY')
searchOfEasyProblem()


n = int(input())
inp = input().split()
flag_hard = False
for i in range(n):
	if int(inp[i]) == 1:
		flag_hard = True
if flag_hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
L = list(input().split())
for i in L:
	if i == '1':
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
m = input()
print('HARD' if m.find('1') >= 0 else 'EASY')


input()
x = list(map(int, input().split(' ')))
for i in range(len(x)):
	if x[i] == 1:
		print('HARD')
		exit()
print('EASY')


n = int(input())
s = map(int, input().split())
for i in s:
	if i == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
t = tuple(map(int, input().split()))
res = 'EASY'
for i in range(len(t)):
	if t[i] == 1:
		res = 'HARD'
print(res)


n = int(input())
s = str(list(input().split()))
d = s.count('1')
if d != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
avis = input().split()
if '1' in avis:
	print('HARD')
else:
	print('EASY')


r = input()
n = input()
q = 0
for a in n:
	if a == '1':
		q = q + 1
if q > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
f = True
a = map(int, input().split())
if 1 in a:
	f = False
if f == True:
	print('EASY')
else:
	print('HARD')


n = int(input().strip())
students = list(map(str, input().strip().split()))
oneCount = 0
for i in range(n):
	value = students[i]
	if value == '1':
		oneCount += 1
		break
if oneCount >= 1:
	print('HARD')
else:
	print('EASY')


l = lambda : map(int, input().split())
x = int(input())
y = list(l())
print(['HARD', 'EASY'][all((y[i] == 0 for i in range(x)))])


n_pers = int(input())
opinions = input()
opinions = opinions.split(' ')
for i in opinions:
	if i == '1':
		print('HARD')
		quit()
print('EASY')


a = int(input())
l = list(map(int, input().split()))
d = sum(l)
if d == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
m = input().split()
flag = 1
for i in range(n):
	if m[i] == '1' and flag:
		flag = 0
		print('HARD')
		break
if flag:
	print('EASY')


num = str(input())
lis_t = input().split(' ')
fin = 0
for x in lis_t:
	if int(x) == 1:
		fin = 1
if fin > 0:
	print('HARD')
else:
	print('EASY')


import sys
q = int(sys.stdin.readline())
opinions = sys.stdin.readline().split(' ')
l = [int(i) for i in opinions]
if 1 in l:
	print('HARD')
else:
	print('EASY')


n = int(input())
x = input().split()
check = True
for i in range(0, n):
	if int(x[i]) == 1:
		check = False
		print('HARD')
		break
if check:
	print('EASY')


n = int(input().strip())
m = input().strip().split()
m = list(map(int, m))
if m.count(1) >= 1:
	print('HARD')
else:
	print('EASY')


def wrong():
	n = int(input(''))
	m = str(input(''))
	i = 0
	if n > 1:
		l = m.split()
		for count in l:
			if count != '0':
				i = 1
				break
	elif m == '1':
		i = 1
	if i == 1:
		print('HARD')
	else:
		print('EASY')
wrong()


import sys
n = int(sys.stdin.readline())
diff = sys.stdin.readline()
if '1' in diff:
	print('HARD')
else:
	print('EASY')


x = int(input())
y = input()
c = 0
sum = 0
while c < len(y):
	sum = sum + int(y[c])
	c += 2
if sum > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = [int(i) for i in input().split()]
s = sum(arr)
res = 'HARD' if 0 < s else 'EASY'
print(res)


n = int(input())
line = input()
votes = line.split()
hard = False
for i in range(n):
	if votes[i] == '1':
		hard = True
if hard:
	print('HARD')
else:
	print('EASY')


def fun(n, l):
	for j in l:
		if j == 1:
			print('HARD')
			return 0
	print('EASY')
N = int(input())
arr = list(map(int, input().split()))
fun(N, arr)


num_ppl = int(input())
decisions = [int(x) for x in input().split()]
difficulty = 'EASY'
for i in range(num_ppl):
	if decisions[i] == 1:
		difficulty = 'HARD'
print(difficulty)


a = int(input())

def SEP(a):
	b = list(map(int, input().split()))
	for i in range(a):
		if b[i]:
			return 'HARD'
	return 'EASY'
print(SEP(a))


s = int(input())
z = list(map(int, input().split()))
if 1 in z:
	print('HARD')
else:
	print('EASY')


n = int(input())
sum = 0
s = list(map(int, input().split()))
for i in s:
	sum += i
if sum >= 1:
	print('HARD')
else:
	print('EASY')


def main():
	n = int(input())
	responses = [int(a) for a in input().split()]
	for response in responses:
		if response == 1:
			print('HARD')
			return
	print('EASY')
main()


k = int(input())
c = map(int, input().split())
flag = False
for i in c:
	if i == 1:
		flag = True
if flag:
	print('HARD')
else:
	print('EASY')


from sys import stdin
inp = stdin.readline
n = int(inp())
a = [int(k) for k in inp().split()]
isEasy = True
for res in a:
	if res == 1:
		isEasy = False
		break
print('EASY' if isEasy else 'HARD')


def main():
	n = int(input())
	k = input().split()
	k = [int(x) for x in k]
	hard = False
	for i in range(n):
		if k[i] == 1:
			hard = True
	if hard:
		print('HARD')
	else:
		print('EASY')
main()


a = int(input())
b = input().split()
c = 0
while c < a:
	if b[c] == '1':
		print('HARD')
		break
	else:
		c += 1
		if c == a:
			print('EASY')


input()
s = [int(x) for x in input().split()]
print(['EASY', 'HARD'][1 in s])


a = int(input())
b = [int(i) for i in input().split()]
s = k = 0
for i in range(a):
	if b[k] == 1:
		s += 1
	k += 1
if s >= 1:
	print('HARD')
else:
	print('EASY')


i = input()
u = input()
if u.find('1') >= 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input().split()
for i in range(0, len(a)):
	if int(a[i]) == 1:
		print('HARD')
		exit(0)
print('EASY')


n = int(input())
j = input()
j = j.split()
boolean = True
for i in j:
	if int(i) == 1:
		boolean = False
		print('HARD')
		break
if boolean == True:
	print('EASY')


def main():
	n = int(input())
	lst = [int(x) for x in input().split()]
	if sum(lst) > 0:
		print('HARD')
	else:
		print('EASY')
main()


n = input()
n = int(n)
nums = []
for i in input().split(' '):
	nums.append(i)
for x in nums:
	if '1' in nums:
		print('HARD')
		break
	else:
		print('EASY')
		break


a = int(input())
lst = list(map(int, input().split()))
sum = 0
for i in lst:
	sum += i
if sum == 0:
	print('EASY')
else:
	print('HARD')


c = input()
d = input()
if '1' in d:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = input()
l = list(map(int, arr.split()))
n == int(len(arr))
i = int(sum(l))
if i == 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
b = input()
m = 0
o = 0
for n in b:
	if n != ' ':
		m = m + 1
if m != a:
	print('error!!')
else:
	for n in b:
		if n != ' ':
			m = int(n)
			o = o + m
if o == 0:
	print('EASY')
else:
	print('HARD')


x = int(input())
s = input()
if s.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = input()
easy = 'EASY'
hard = 'HARD'
inp = [int(x) == 0 for x in input().split(' ')]
if all(inp):
	print(easy)
else:
	print(hard)


def main():
	while 1:
		try:
			n = int(input())
			responses = [int(x) for x in input().split(' ')]
			if sum(responses) > 0:
				print('HARD')
			else:
				print('EASY')
		except:
			break
main()


a = int(input())
r = input()
l = r.split()
k = 0
for i in range(a):
	k = k + int(l[i])
if k > 0:
	print('HARD')
else:
	print('EASY')


def main():
	input()
	poll_results = map(int, input().split())
	for answer in poll_results:
		if answer == 1:
			print('HARD')
			return
	print('EASY')
main()


n = int(input())
arr = input()
if arr.find('1') == -1:
	print('EASY')
else:
	print('HARD')


no = int(input())
print('EASY' if '1' not in input() else 'HARD')


n = int(input())
a = any([int(i) for i in input().split()])
print(['EASY', 'HARD'][a])


x = input()
a = int(x)
y = input()
r = 'EASY'
for i in range(len(y.split(' '))):
	if int(y.split(' ')[i]) == 1:
		r = 'HARD'
		break
print(r)


n = int(input())
A = input().split()
S = 0
for i in range(n):
	P = int(A[i])
	S = S + P
if S == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
m = input()
m = m.split()
counter = 0
flag = 'EASY'
while counter < n:
	if int(m[counter]) == 1:
		flag = 'HARD'
	counter += 1
print(flag)


n = int(input())
arr = []
arr.append(input().split())
k = 0
for i in range(n):
	if int(arr[0][i]) == 1:
		k = 1
if k == 0:
	print('EASY')
elif k == 1:
	print('HARD')


number = input()
response = list(map(int, input().split()))
result = ''
result = 'HARD' if 1 in response else 'EASY'
print(result)


n = int(input())
h = 0
if n >= 1 and n <= 100:
	arr = list(map(int, input().split()))
	if len(arr) == n:
		for i in arr:
			if i == 1:
				h = 1
				break
		if h == 0:
			print('EASY')
		else:
			print('HARD')


from math import *
a = int(input())
b = list([])
for i in range(a):
	b = list(map(int, input().strip().split(' ')))
	d = sum(b)
	if d == 0:
		print('EASY')
		break
	else:
		print('HARD')
		break


n = int(input())
a = list(map(int, input().split()))
print('HARD' if any((i for i in a)) else 'EASY')


t = int(input())
arr = set(map(int, input().split()))
if 1 in arr:
	print('HARD')
else:
	print('EASY')


_ = input()
x = input()
if x.count('1') == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
answers = [int(i) for i in input().split()]
status = 0
for answer in answers:
	if answer == 1:
		status = 1
		break
	else:
		status = 0
if status == 0:
	print('EASY')
else:
	print('HARD')


no_people = int(input())
on_off = input().split(' ')
easy_boolean = True
for i in on_off:
	if i == '1':
		easy_boolean = False
if easy_boolean == True:
	print('EASY')
else:
	print('HARD')


people = int(input())
n = input().split()
if '1' in n:
	print('HARD')
else:
	print('EASY')


n = input()
answers = input()
answers_list = answers.split(' ')
HARD = False
for i in range(int(n)):
	if int(answers_list[i]) == 1:
		HARD = True
		break
if HARD:
	print('HARD')
else:
	print('EASY')


n = input()
arr = map(int, input().split())
hard = 0
for x in arr:
	if x == 1:
		hard = 1
if hard == 1:
	print('HARD')
else:
	print('EASY')


N = int(input())
A = [int(x) for x in input().split()]
for i in A:
	if i == 1:
		temp = 'HARD'
		break
	else:
		temp = 'EASY'
print(temp)


bleh = int(input())
k = list(map(int, input().split()))
flag = 1
for i in k:
	if i == 1:
		print('HARD')
		flag = 0
		break
if flag == 1:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
cnt = a.count(1)
if cnt:
	print('HARD')
else:
	print('EASY')


people = int(input())
condition = list(map(int, input().split()))
proverka = sum(condition)
if proverka >= 1:
	print('HARD')
else:
	print('EASY')


import typing
from typing import List

def preprocess(n: str, replies: List[str]) -> List[int]:
	int_replies = list(map(lambda x: int(x), replies))
	int_number = int(n)
	return (int_number, int_replies)

def easyorhard(n_people: int, replies: List[int]) -> int:
	ans = None
	HARD = 'HARD'
	EASY = 'EASY'
	ans = EASY
	if 1 in replies:
		ans = HARD
	return ans
n = input()
replies = input().split()
(n, replies) = preprocess(n, replies)
res = easyorhard(n, replies)
print(res)


print((lambda x, y: 'HARD' if 1 in y else 'EASY')(int(input()), list(map(int, input().split()))))


n = int(input())
l = [int(el) for el in input().split()]
s = set(l)
if 1 in s:
	print('HARD')
else:
	print('EASY')


num = int(input())
answers = input()
if '1' in answers:
	print('HARD')
else:
	print('EASY')


n = input()
s = list(input())
a = 0
for i in s:
	if i == '1':
		a += 1
if a > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
opn = input().split()
for o in opn:
	if int(o) == 1:
		ans = 'HARD'
		break
	else:
		ans = 'EASY'
print(ans)


n_person = int(input())
n_people = [int(x) for x in input().split()]
a = 0
for i in n_people:
	if i == 1:
		a += 1
if a >= 1:
	print('HARD')
else:
	print('EASY')


inp = input()
s = set(input())
if '1' in s:
	print('HARD')
else:
	print('EASY')


n = input()
a = input().split()
res = all((x == '0' for x in a))
if res:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = (int, input().split(maxsplit=n))
b = a[-1]
if b.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = input()
l = list(map(int, arr.split(' ')))
flag = 0
for j in l:
	if j == 1:
		flag = 1
		print('HARD')
		break
if flag == 0:
	print('EASY')


n = int(input())
entrada = input()
results = list(map(int, entrada.split(' ')))
facil = True
for i in results:
	if i:
		facil = False
		print('HARD')
		break
if facil:
	print('EASY')


n = int(input())
ratings = list(map(int, input().split()))
is_easy = True
for rating in ratings:
	if rating == 1:
		is_easy = False
		break
if is_easy:
	print('EASY')
else:
	print('HARD')


def main():
	n = int(input())
	s = input().split()
	for i in s:
		if i == '1':
			print('HARD')
			break
	else:
		print('EASY')
main()


n = int(input())
opp = list(map(int, input().split()))
for x in opp:
	if x == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
k = set('1')
a = set(input().split())
if len(a) > 1 or a == k:
	print('HARD')
else:
	print('EASY')


import sys
people = input()
op = input().split()
people = int(people)
op = [int(x) for x in op]
for i in op:
	if i == 1:
		print('HARD')
		sys.exit()
print('EASY')


surveyed = int(input())
ans = []
ans = input().split(' ')
ez = 0
hard = 0
for i in range(surveyed):
	if ans[i - 1] == '1':
		print('HARD')
		exit()
print('EASY')


N = int(input())
lst = input().split()
print('HARD' if lst.count('1') >= 1 else 'EASY')


a = int(input())
b = input().split()
c = 'EASY'
if 1 <= a <= 100:
	for i in b:
		if i == '1':
			c = 'HARD'
	print(c)


a = int(input())
b = list(input())
print('EASY') if '1' not in b else print('HARD')


def main():
	n = int(input())
	s = list(input())
	hard = s.count('1')
	if hard != 0:
		print('HARD')
	else:
		print('EASY')
main()


first = int(input())
second = input().split(' ')
second_list = [int(i) for i in second]
if sum(second_list) != 0:
	print('HARD')
else:
	print('EASY')


n = input()
a = list(map(str, input().split()))
if a.count('1') == 0:
	print('EASY')
else:
	print('HARD')


g = int(input())
m = input()
u = m.split(' ')
p = []
for i in u:
	p.append(int(i))
if max(p) == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = int(n)
a = list(map(int, input().split()))
counter = 0
for number in range(n):
	if a[number] == 1:
		counter = 1
if counter == 1:
	print('HARD')
else:
	print('EASY')


res = []
number = int(input())
rest = input()
for i in range(number):
	res.append(rest.split()[i])
if '1' in res:
	print('HARD')
else:
	print('EASY')


n = int(input())
li = list(map(int, input().strip().split()))
c = 0
for i in range(n):
	if li[i] == 1:
		c = c + 1
if c == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
c = 0
a = list(map(int, input().rstrip().split()))
v = int(len(a))
if v != n:
	print('u must enter the right numbers')
else:
	for i in range(v):
		if a[i] == 1:
			print('HARD')
			break
		elif a[i] == 0:
			c += 1
if c == v:
	print('EASY')


n = int(input())
op = list(map(int, input().split()))

def solve():
	for i in op:
		if i == 1:
			return 'HARD'
	return 'EASY'
print(solve())


input()
myList = [int(item) for item in input().split()]
if sum(myList) >= 1:
	print('HARD', end='\n')
else:
	print('EASY', end='\n')


n = int(input())
d = list(map(str, input()))
x = d.count('1')
if x >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
sum = 0
a = [int(s) for s in input().split()]
for elem in a:
	sum += elem
if sum == 0:
	print('EASY')
else:
	print('HARD')


import sys
input()
s = input()
if s.find('1') == -1:
	print('EASY')
	sys.exit()
print('HARD')


n = int(input())
m = input().replace(' ', '')
if int(m) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
A = [int(i) for i in input().split()]
null = 0
for i in A:
	if i == 1:
		null += 1
if null > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
str = input()
arr = str.split()
for i in range(n):
	if arr[i] == '1':
		print('HARD')
		exit()
print('EASY')


n = int(input())
answers = list(map(int, input().split(' ')))[:n]
flag = 0
for item in answers:
	if item == 1:
		flag = 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = input().split()
k = 'EASY'
for i in range(n):
	if int(s[i]) == 1:
		k = 'HARD'
print(k)


def easyProb(n, n_list):
	if max(n_list) == 1:
		return 'HARD'
	else:
		return 'EASY'
data = input()
n = int(data)
data = input()
n_list = list(map(int, data.split()))
print(easyProb(n, n_list))


n = input()
members = input().split()
if '1' in members:
	print('HARD')
else:
	print('EASY')


a = input()
b = input()
d = b.split()
x = 0
for i in range(0, len(d)):
	x = x + int(d[i])
if x > 0:
	print('HARD')
elif x == 0:
	print('EASY')


uselessInputThatIsNotUsedInTheCode = input()
inputs = str(input()).split(' ')
x = ''
for i in range(len(inputs)):
	if inputs[i] == '1':
		x = 'HARD'
		break
	else:
		x = 'EASY'
print(x)


n = int(input())
s = str(input())
sum = 0
for i in range(0, 2 * n - 1, 2):
	sum = sum + int(s[i])
	i = i + 2
if sum == 0:
	print('EASY')
else:
	print('HARD')


numOfOpinion = int(input())
getOpinion = input()
getOpinionList = getOpinion.split(' ')
if '1' in getOpinionList:
	print('HARD')
else:
	print('EASY')


nos = int(input())
arr = [int(a) for a in input().split()[:nos]]
ctr = 0
for i in arr:
	if i == 1:
		print('HARD')
		ctr += 1
		break
if ctr == 0:
	print('EASY')


a = input()
b = list(input().split())
if '1' in b:
	print('HARD')
else:
	print('EASY')


A = int(input())
B = input().split()
f = 0
for i in range(A):
	if B[i] == '1':
		f = f + 1
if f == 0:
	print('EASY')
else:
	print('HARD')


from sys import stdin, stdout
n = stdin.readline()
arr = [int(x) for x in stdin.readline().split()]
if max(arr) > 0:
	stdout.write('HARD')
else:
	stdout.write('EASY')


n = int(input())
l = [str(x) for x in input().split()]
a = l.count('0')
if a == n:
	print('EASY')
else:
	print('HARD')


input()
numbers = input()
is_hard = any((int(i) for i in numbers.split(' ')))
if is_hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input().split(' ')
op = 0
for i in range(n):
	op += int(a[i])
if op == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
a = list(map(int, input().split()))
result = 0
for i in range(len(a)):
	if a[i] == 1:
		result += 1
		break
	else:
		continue
if result > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
for x in range(n):
	if a[x] == 1:
		print('HARD')
		break
else:
	print('EASY')


def test_1():
	import math
	from collections import Counter
	n = list(map(int, input().split(' ')))[0]
	m = list(map(int, input().split(' ')))
	a = set(m)
	if 1 in a:
		print('HARD')
	else:
		print('EASY')
test_1()


n = int(input())
count = 0
l = input().split()
for i in range(0, n):
	j = int(l[i])
	if j > 0:
		count += 1
if count == 0:
	print('EASY')
else:
	print('HARD')


s = int(input())
d = [int(x) for x in input().split()]
c = 0
for i in range(s):
	if d[i] == 1:
		print('HARD')
		break
	else:
		c += 1
if c == len(d):
	print('EASY')


n = int(input())
l = input().strip().split()
val = 'EASY'
for i in l:
	if int(i) == 1:
		val = 'HARD'
print(val)


members = int(input())
feedback = list(map(int, input().split(' ')))
print('HARD') if sum(feedback) > 0 else print('EASY')


n = int(input())
s = input().split()
s1 = list(s)
n = 0
for i in s1:
	if i == '1':
		n += 1
if n > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
level = 'EASY'
for el in a:
	if el == 1:
		level = 'HARD'
		print(level)
		break
if level == 'EASY':
	print(level)


n = int(input())
a = max(map(int, input().split()))
print(('EASY', 'HARD')[a])


n = int(input())
opinions = input().split()
answer = ''
for i in range(n):
	if opinions[i] == '1':
		answer += 'HARD'
		break
if answer == 'HARD':
	print(answer)
else:
	print('EASY')


n = int(input())
o = 0
d = map(int, input().split())
for m in d:
	if m == 0:
		o = o + 0
	else:
		o = 1
if o == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
p = list(map(int, input().split()))
f = 0
for i in p:
	if i == 1:
		f = 1
		break
print(['EASY', 'HARD'][f == 1])


n = int(input())
inputs = [int(x) for x in input().split()]
flag = 0
for i in range(n):
	if inputs[i] == 1:
		flag = 1
if flag == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))
i = 0
while i < n:
	if l[i] == 1:
		print('HARD')
		break
	i += 1
else:
	print('EASY')


n = int(input())
a = [int(x) for x in input().split(' ')]
t = False
i = 0
while i < n and (not t):
	if a[i] == 1:
		t = True
		print('HARD')
	i += 1
if not t:
	print('EASY')


n = int(input())
i = input().replace(' ', '')
if len(i) == n:
	if '1' in i:
		print('HARD')
	else:
		print('EASY')


n = int(input())
l = [int(x) for x in input().split()]
if n >= 1 and n <= 100 and (1 in l):
	print('HARD')
else:
	print('EASY')


import sys
n = int(input())
print('HARD' if '1' in sys.stdin.read() else 'EASY')


n = int(input())
mas = list(input().split())
print(['HARD', 'EASY'][mas.count('1') == 0])


a = input()
x = list(input().split())
for i in x:
	if i == '1':
		print('HARD')
		break
else:
	print('EASY')


number_people = int(input())
list_doc = list(map(int, input().strip().split()))
easy = True
for i in range(number_people):
	if list_doc[i] == 1:
		print('HARD')
		easy = False
		break
if easy:
	print('EASY')


n = int(input())
a = input()
n1 = 0
b = a.split(' ')
for i in range(n):
	b[i] = int(b[i])
	if b[i] == 1:
		print('HARD')
		n1 = n1 + 1
		break
if n1 != 1:
	print('EASY')


n = int(input())
lst = list(map(int, input().split()))
flag = 0
for i in range(n):
	if lst[i] == 1:
		flag = 1
		break
if flag == 1:
	print('HARD')
elif flag == 0:
	print('EASY')


i = int(input())
j = input().split()
if '1' in j:
	print('HARD')
else:
	print('EASY')


import sys
n = input()
x = input().split(' ')
for i in x:
	if i == '1':
		print('HARD')
		sys.exit()
print('EASY')


n = input()
vote = list(input().split(' '))
if '1' in vote:
	print('HARD')
else:
	print('EASY')


def main():
	n = int(input())
	k = map(int, input().split())
	if sum(k) > 0:
		return 'HARD'
	else:
		return 'EASY'
print(main())


inp1 = int(input())
inp2 = input().split(' ')
inp2 = [int(i) for i in inp2]
if sum(inp2) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
tab = list(input().split(' '))
tab2 = []
for i in tab:
	if i not in tab2:
		tab2.append(i)
if '1' in tab2:
	print('HARD')
else:
	print('EASY')


num = int(input())
gol = input().split()
gol = list(map(int, gol))
t = True
for el in gol:
	if el == 1:
		print('HARD')
		t = False
		break
if t == True:
	print('EASY')


n = int(input())
prbls = list(map(int, input().split()))
diff = 'EASY'
for ele in prbls:
	if ele == 1:
		diff = 'HARD'
print(diff)


import sys
input = sys.stdin.readline

def main():
	inp()
	n = inlt()
	hard = False
	for x in n:
		if x == 1:
			hard = True
	if hard:
		print('HARD')
	else:
		print('EASY')

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
main()


judges = input()
veredicts = input()
if '1' in veredicts:
	print('HARD')
else:
	print('EASY')


n = input().split()
a = list(map(str, input().split()))
l = len(a)
z = 0
for j in range(0, l):
	if a[j] == '1':
		z += 1
if z >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
p = str(input())
a = 0
for i in p:
	if i == '1':
		a = a + 1
	else:
		a = a
if a > 0:
	print('HARD')
else:
	print('EASY')


N = int(input())
n = str(input())
n = n.split()
c = 0
for i in range(len(n)):
	if n[i] == '1':
		print('HARD')
		c = 1
		break
if c != 1:
	print('EASY')


import math
from collections import defaultdict
from collections import Counter
import itertools

def solve(n, A):
	for i in range(n):
		if A[i] == 1:
			return 'HARD'
			break
	return 'EASY'
n = int(input())
in_ = map(int, input().split(' '))
temp = []
for x in in_:
	temp.append(int(x))
print(solve(n, temp))


from __future__ import division, print_function
import os, sys
from io import BytesIO, IOBase
if sys.version_info[0] < 3:
	from __builtin__ import xrange as range
	from future_builtins import ascii, filter, hex, map, oct, zip

def ii():
	return int(input())

def si():
	return input()

def mi():
	return map(int, input().strip().split(' '))

def msi():
	return map(str, input().strip().split(' '))

def li():
	return list(mi())

def dmain():
	sys.setrecursionlimit(1000000)
	threading.stack_size(1024000)
	thread = threading.Thread(target=main)
	thread.start()
abc = 'abcdefghijklmnopqrstuvwxyz'
abd = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7, 'i': 8, 'j': 9, 'k': 10, 'l': 11, 'm': 12, 'n': 13, 'o': 14, 'p': 15, 'q': 16, 'r': 17, 's': 18, 't': 19, 'u': 20, 'v': 21, 'w': 22, 'x': 23, 'y': 24, 'z': 25}
mod = 1000000007
inf = float('inf')
vow = ['a', 'e', 'i', 'o', 'u']
(dx, dy) = ([-1, 1, 0, 0], [0, 0, 1, -1])

def getKey(item):
	return item[1]

def sort2(l):
	return sorted(l, key=getKey, reverse=True)

def d2(n, m, num):
	return [[num for x in range(m)] for y in range(n)]

def isPowerOfTwo(x):
	return x and (not x & x - 1)

def decimalToBinary(n):
	return bin(n).replace('0b', '')

def ntl(n):
	return [int(i) for i in str(n)]

def ncr(n, r):
	return factorial(n) // (factorial(r) * factorial(max(n - r, 1)))

def ceil(x, y):
	if x % y == 0:
		return x // y
	else:
		return x // y + 1

def powerMod(x, y, p):
	res = 1
	x %= p
	while y > 0:
		if y & 1:
			res = res * x % p
		y = y >> 1
		x = x * x % p
	return res

def gcd(x, y):
	while y:
		(x, y) = (y, x % y)
	return x

def isPrime(n):
	if n <= 1:
		return False
	if n <= 3:
		return True
	if n % 2 == 0 or n % 3 == 0:
		return False
	i = 5
	while i * i <= n:
		if n % i == 0 or n % (i + 2) == 0:
			return False
		i = i + 6
	return True

def read():
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')

def main():
	n = int(input())
	a = list(map(int, input().split()))
	x = 1
	if x in a:
		print('HARD')
	else:
		print('EASY')
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')

def print(*args, **kwargs):
	(sep, file) = (kwargs.pop('sep', ' '), kwargs.pop('file', sys.stdout))
	at_start = True
	for x in args:
		if not at_start:
			file.write(sep)
		file.write(str(x))
		at_start = False
	file.write(kwargs.pop('end', '\n'))
	if kwargs.pop('flush', False):
		file.flush()
if sys.version_info[0] < 3:
	(sys.stdin, sys.stdout) = (FastIO(sys.stdin), FastIO(sys.stdout))
else:
	(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
main()


a = input()
b = []
ans = 'EASY'
b = list(map(int, input().split()))
for i in b:
	if i == 1:
		ans = 'HARD'
print(ans)


def main():
	n = int(input())
	A = tuple(map(int, input().rstrip().split()))
	print('HARD' if 1 in A else 'EASY')
main()


n = int(input())
k = list(map(int, input().split()))
if n < 1 or n > 100:
	print('exit')
	exit(0)
elif n == len(k):
	if 1 in k:
		print('HARD')
	else:
		print('EASY')
else:
	exit(0)


n = int(input())
del n
counts = input().split()
counts = [int(elem) for elem in counts]
stop = 0
for element in counts:
	if element == 1:
		print('HARD')
		stop = 1
		break
if stop != 1:
	print('EASY')


Response_amount = input()
Responses = input()
is_hard = False
for i in Responses:
	if i == '1':
		is_hard = True
if is_hard == True:
	print('HARD')
if is_hard == False:
	print('EASY')


n = int(input())
if n in range(1, 101):
	z = list(map(int, input().split(' ')))
	if sum(z):
		print('HARD')
	else:
		print('EASY')


n = int(input())
j = input().split()
easy = True
for i in j:
	if int(i) == 1:
		easy = False
if easy:
	print('EASY')
else:
	print('HARD')


n = input()
i = input().split()
count = 0
for j in i:
	if j == '1':
		print('HARD')
		count = 1
		break
if count == 0:
	print('EASY')


import sys

def main():
	n = int(sys.stdin.readline())
	p = sys.stdin.readline().strip().split()
	if p.count('1') > 0:
		print('HARD')
	else:
		print('EASY')
main()


n = int(input())
for c in input().split():
	if c == '1':
		print('HARD')
		break
else:
	print('EASY')


n = input()
rsvp = input().split()
if '1' in rsvp:
	print('HARD')
else:
	print('EASY')


n = int(input())
tab = list(map(int, input().split()))
p = max(tab)
res = 'HARD' if p >= 1 else 'EASY'
print(res)


import sys
import math
import os
import itertools
import string
import heapq
import _collections
from collections import Counter
from collections import defaultdict
from functools import lru_cache
import bisect
import re
import queue

class Scanner:

	@staticmethod
	def int():
		return int(sys.stdin.readline().rstrip())

	@staticmethod
	def string():
		return sys.stdin.readline().rstrip()

	@staticmethod
	def map_int():
		return [int(x) for x in Scanner.string().split()]

	@staticmethod
	def string_list(n):
		return [input() for i in range(n)]

	@staticmethod
	def int_list_list(n):
		return [Scanner.map_int() for i in range(n)]

	@staticmethod
	def int_cols_list(n):
		return [int(input()) for i in range(n)]

class Math:

	@staticmethod
	def gcd(a, b):
		if b == 0:
			return a
		return Math.gcd(b, a % b)

	@staticmethod
	def lcm(a, b):
		return a * b // Math.gcd(a, b)

	@staticmethod
	def round_up(a, b):
		return -(-a // b)

	@staticmethod
	def is_prime(n):
		if n < 2:
			return False
		if n == 2:
			return True
		if n % 2 == 0:
			return False
		d = int(n ** 0.5) + 1
		for i in range(3, d + 1, 2):
			if n % i == 0:
				return False
		return True

class PriorityQueue:

	def __init__(self, l=[]):
		self.q = l
		heapq.heapify(self.q)
		return

	def push(self, n):
		heapq.heappush(self.q, n)
		return

	def pop(self):
		return heapq.heappop(self.q)
MOD = int(1000000000.0) + 7
INF = int(1000000000000000.0)

def main():
	N = Scanner.int()
	A = Scanner.map_int()
	for a in A:
		if a == 1:
			print('HARD')
			return
	print('EASY')
	return
main()


a = input()
mne = input().split()
flag = 0
for n in mne:
	if int(n) == 1:
		flag = 1
		break
if flag:
	print('HARD')
else:
	print('EASY')


length = input()
vals = [int(x) for x in input().split()]
for val in vals:
	if val == 1:
		print('HARD')
		quit()
print('EASY')


n = int(input())
inp = input()
for i in inp:
	if i == '1':
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
lst = list(map(int, input().split()))
help = 0
for i in lst:
	if i == 1:
		help = 1
		break
	if i == 0:
		pass
if help == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
arr = list(map(int, input().split()))
red_flag = 0
for i in arr:
	if i == 1:
		red_flag = 1
		print('HARD')
		break
if not red_flag:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))
a = 0
for i in range(n):
	if l[i] == 0:
		pass
	else:
		a += 1
if a > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
cadena = input()
lista = cadena.split()
for i in range(n):
	lista[i] = int(lista[i])
lista.sort()
if lista[n - 1] == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
input_string = input()
if '1' in input_string:
	print('HARD')
else:
	print('EASY')


n = int(input())
st = input()
if '1' in st:
	print('HARD')
else:
	print('EASY')


from collections import Counter
n = int(input())
a = input().split()
b = Counter(a)
if b['1'] >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().strip().split()))
flg = 0
for i in l:
	if i == 1:
		flg = 1
		break
if flg == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
check = 0
inp = list(map(int, input().split()))
for i in inp:
	if i == 1:
		check = 1
if check == 1:
	print('HARD')
elif check == 0:
	print('EASY')


value = input()
values = input()
values = values.split()
values = [int(i) for i in values]
if values.count(1) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
stri = input()
if stri.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
opinions = list(map(int, input().strip().split()))[:n]
if 1 in opinions:
	decision = 'HARD'
else:
	decision = 'EASY'
print(decision)


n = int(input())
l = []
brr = []
x = str(input())
brr = x.split(' ')
l = [y for y in brr if y != '']

def f(p):
	for i in range(n):
		if int(p[i]) == 1:
			print('HARD')
			return 1
			break
	return 0
b = f(l)
if b == 0:
	print('EASY')


n = int(input())
b = 'EASY'
a = [int(x) for x in input().split()]
for i in a:
	if i == 1:
		b = 'HARD'
print(b)


n = int(input())
result = int(input().replace(' ', '0'))
if result == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
S = [int(s) for s in input().split(' ')]
if 1 in S:
	print('HARD')
else:
	print('EASY')


inp1 = input()
inp2 = input().split()
for num in inp2:
	if num == '1':
		print('HARD')
		break
else:
	print('EASY')


input()
print('HARD' if any((x == '1' for x in input().split(' '))) else 'EASY')


n = int(input())
answers = map(int, input().split(' '))
l = []
for i in answers:
	if i == 1:
		l.append(i)
if len(l) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))

def easyprob(n, l):
	if sum(l) != 0:
		print('HARD')
	else:
		print('EASY')
easyprob(n, l)


n = int(input())
if all(list(map(lambda x: x == 0, list(map(int, input().split()))))):
	print('EASY')
else:
	print('HARD')


n = int(input())
c0 = 0
c1 = 0
k = list(map(int, input().split()))
for i in range(n):
	if k[i] == 0:
		c0 = c0 + 1
	else:
		c1 = c1 + 1
if c1 == 0:
	print('EASY')
else:
	print('HARD')


n = input()
all_items = input().split()
ez = True
for i in all_items:
	if i == '1':
		ez = False
if ez:
	print('EASY')
else:
	print('HARD')


for _ in range(2):
	opinions = list(map(int, input().split()))
if sum(opinions) != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input().split()
x = []
for i in a:
	x.append(int(i))
x = list(dict.fromkeys(x))
if max(x) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input()
c1 = 0
for i in map(int, a.split()):
	if n >= 0:
		n = n - 1
		if i == 1:
			c1 = c1 + 1
if c1 == 0:
	print('EASY')
else:
	print('HARD')


input()
s = sum(list(map(int, input().split())))
print(['EASY', 'HARD'][s > 0])


import sys
n = int(input())
k = 0
a = list(map(int, input().split()))
for i in range(0, n):
	if a[i] == 1:
		print('HARD')
		sys.exit()
	else:
		k = k + 1
if k > 0:
	print('EASY')


import re
x = input()
y = input()
z = re.findall('1', y)
if z:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))
ans = 'EASY'
for i in range(0, n):
	if l[i] == 1:
		ans = 'HARD'
print(ans)


n = int(input())

def what(data):
	for res in data:
		if res == '1':
			return 'HARD'
	return 'EASY'
data = input().split()
print(what(data))


n = int(input())
all = [int(i) for i in input().split()]
if max(all) == 1:
	print('HARD')
elif max(all) == 0:
	print('EASY')


k = int(input())
t = input()
gecici = []
n = 0
for i in t:
	if i != ' ':
		gecici.append(i)
for i in gecici:
	if i == '1':
		n += 1
if n >= 1:
	print('HARD')
else:
	print('EASY')


c = int(input())
s = input()
if '1' in s:
	print('HARD')
else:
	print('EASY')


def s(a):
	for x in a:
		if x == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
a = map(int, input().split())
print(s(a))


s = int(input())
h = input().split(' ')
hard = False
i = 0
while i < s:
	if h[i] == '1':
		hard = True
	i += 1
if hard == False:
	print('EASY')
else:
	print('HARD')


participants = int(input())
notes = input()
if '1' in notes:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = list(map(int, input().split()))
if max(b) == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
xs = map(int, input().split())
if any((x == 1 for x in xs)):
	print('HARD')
else:
	print('EASY')


x = int(input())
y = input()
for i in y:
	if i == '1':
		st = 'HARD'
		break
	else:
		st = 'EASY'
print(st)


people = int(input())
responses = input()
if '1' in responses:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = map(int, input().split())
p = 0
for i in b:
	if i == 1:
		p += 1
	else:
		p = p
if p == 0:
	print('EASY')
else:
	print('HARD')


flag = True
x = {True: 'EASY', False: 'HARD'}
input()
a = list(input().split())
for i in a:
	flag = flag and i == '0'
print(x[flag])


def main():
	n = int(input())
	s = input().split()
	print('HARD') if '1' in s else print('EASY')
main()


n = int(input())
l = map(int, input().split())
b = True
for item in l:
	if item == 1:
		print('HARD')
		b = False
		break
if b:
	print('EASY')


input()
nd_line = input().split()
if '1' in nd_line:
	print('HARD')
else:
	print('EASY')


i1 = input()
i2 = list(input().split())
st = ''
for i in i2:
	if int(i) == 1:
		st = 'HARD'
		break
	else:
		st = 'EASY'
print(st)


N = input()
print('HARD' if '1' in input() else 'EASY')


number = int(input())
l = list(map(int, input().split()))
(easy, hard) = (0, 0)
if 1 in l:
	print('HARD')
else:
	print('EASY')


var = int(input())
var_list = []
temp = input().split()
var_list = [int(i) for i in temp]
for i in range(len(var_list)):
	if var_list[i] == 1:
		print('HARD')
		break
	elif i == len(var_list) - 1:
		print('EASY')


n = int(input())
lis = sorted(map(int, input().split()), reverse=True)
if lis[0] == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = list(map(int, input().split()))
while n - 1 >= 0:
	if arr[n - 1] == 1:
		print('HARD')
		break
	else:
		n -= 1
if n == 0:
	print('EASY')


input()
prob = input().split()
if '1' in prob:
	print('HARD')
else:
	print('EASY')


n = int(input())
ch = input()
l = [int(e) for e in ch.split()]
if sum(l) == 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
q = input()
w = q.split(' ')
e = []
h = 0
for i in w:
	e.append(int(i))
for i in e:
	if i == 1:
		h += 1
if h > 0:
	print('HARD')
else:
	print('EASY')


import sys
n = int(input())
list = map(int, input().split())
if 1 in list:
	print('HARD')
else:
	print('EASY')


number = int(input())
st = input()
if '1' in st:
	print('HARD')
else:
	print('EASY')


def checker():
	for i in k:
		if i == '1':
			return 'HARD'
	return 'EASY'
n = input()
k = input()
print(checker())


n = int(input())
a = map(int, input().split())
if any(a):
	print('HARD')
else:
	print('EASY')


orang = int(input())
angka = input().split()
for i in range(orang):
	if int(angka[i]) == 1:
		hasil = 'HARD'
		break
	elif int(angka[i]) == 0:
		hasil = 'EASY'
print(hasil)


nilai = int(input())
masukan = input()
masukanSplit = masukan.split()
benar = False
for i in range(nilai):
	if masukanSplit[i] == '0':
		benar = False
	else:
		benar = True
		break
if benar:
	print('HARD')
else:
	print('EASY')


n = int(input())
lis = list(map(int, input().split()))
ifExist = 0
for item in lis:
	if item > 0:
		ifExist = 1
		break
print('HARD' if ifExist else 'EASY')


n = int(input())
s = list(map(int, input().split()))
if all((i == 0 for i in s)):
	print('EASY')
else:
	print('HARD')


num = int(input())
decide = list(map(int, input().split())).count(1)
if decide > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
li = [int(num) for num in input().split()]
c = 0
l = len(li)
for i in range(l):
	if li[i] == 1:
		c += 1
if c == 0:
	print('EASY')
else:
	print('HARD')


def main():
	people = int(input())
	inputs = [int(i) for i in input().split(' ')]
	for i in range(people):
		if inputs[i] == 1:
			print('HARD')
			return
	print('EASY')
main()


n = int(input())
m = map(str, input().split())
if '1' in m:
	print('HARD')
else:
	print('EASY')


n = int(input())
i = list(input().replace(' ', ''))
if i.count('1') >= 1:
	print('HARD')
else:
	print('EASY')


z = int(input())
m = input()
n = m.split(' ')
u = []
hrd = 0
for i in n:
	u.append(int(i))
for i in u:
	if i == 1:
		hrd += 1
if hrd > 0:
	print('HARD')
else:
	print('EASY')


k = int(input())
a = [int(s) for s in input().split()]
if 1 in a:
	print('HARD')
else:
	print('EASY')


import sys
enteros = list()
lines = sys.stdin.readlines()
for linea in lines:
	c = linea.split()
	c = list(map(int, c))
	enteros.append(c)
faciles = enteros[1]
if 1 in faciles:
	print('HARD')
else:
	print('EASY')


x = int(input())
y = list(map(int, input().split()))
string = 'EASY'
for z in y:
	if z == 1:
		string = 'HARD'
		break
print(string)


n = input()
line = input()
if '1' in line:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = input()
str = 'EASY'
for x in s:
	if x == '1':
		str = 'HARD'
print(str)


input()
l = list(input())
flag = True
for i in range(len(l)):
	if l[i] == '1':
		print('HARD')
		flag = False
		break
if flag:
	print('EASY')


def easyProblem(n, li):
	for i in range(n):
		if int(li[i]) == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
li = input().split()
result = easyProblem(n, li)
print(result)


import collections
from math import log
import sys

def check(input, cantidad):
	join = input.replace(' ', '')
	val = int(join[:cantidad], 2)
	if val > 0:
		return 'HARD'
	return 'EASY'
cantidad = sys.stdin.readline()
binaryinput = sys.stdin.readline()
print(check(binaryinput, int(cantidad)))


a = int(input())
k = list(map(int, input().split()))
r = max(k)
if r == 0:
	print('EASY')
if r == 1:
	print('HARD')


num = int(input())
arr = list(map(int, input().strip().split()))[:num]
flag = 1
for i in range(0, num):
	if arr[i] == 1:
		flag = 0
if flag == 0:
	print('HARD')
else:
	print('EASY')


def input_num():
	while True:
		num = int(input())
		if 1 <= num <= 100:
			break
		else:
			continue
	while True:
		opinions = [int(x) for x in input().split()]
		if len(opinions) != num:
			continue
		else:
			break
	return opinions

def check_hardness(opinions):
	if opinions.count(1) != 0:
		print('HARD')
	else:
		print('EASY')
opinions = input_num()
check_hardness(opinions)


n = input()
s = input()
ok = 0
for l in s.split(' '):
	if l == '1':
		ok = 1
		break
if ok == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
max = 0
for i in input():
	if i != ' ' and int(i) > max:
		max = int(i)
if max == 0:
	print('EASY')
else:
	print('HARD')


num_el = int(input())
values = input()
if '1' in values:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().strip().split()))
f = 'EASY'
for i in l:
	if i == 1:
		f = 'HARD'
		break
print(f)


def search(A):
	for r in A:
		if r == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
A = map(int, input().split(' '))
print(search(A))


n = int(input())
x = [int(u) for u in input().split()]
y = str(x)
print('HARD' if '1' in y else 'EASY')


x = int(input())
y = input()
print('HARD' if y.count('1') else 'EASY')


n = int(input().strip())
m = input().strip().split()
m = list(map(int, m))
x = 0
for i in m:
	if i == 1:
		print('HARD')
		x = 1
		break
if not x:
	print('EASY')


n = int(input())
a = [int(i) for i in input().split()]
a.sort(reverse=True)
if a[0] == 1:
	print('HARD')
else:
	print('EASY')


num = input()
answers = input()
x = 0
y = 0
x = answers.count('0')
y = answers.count('1')
if y >= 1:
	print('HARD')
else:
	print('EASY')


from sys import stdin as inp
from sys import stdout as out
n = int(inp.readline().strip())
a = list(map(int, inp.readline().strip().split()))
if sum(a) > 0:
	out.write('HARD')
else:
	out.write('EASY')


n = int(input())
mas = list(map(int, input().split()))
flag = False
for i in mas:
	if i:
		flag = True
		break
if flag:
	print('HARD')
else:
	print('EASY')


import sys
n = int(sys.stdin.readline().rstrip())
opinions = map(int, sys.stdin.readline().rstrip().split())
output = 'EASY'
for o in opinions:
	if o == 1:
		output = 'HARD'
		break
print(output + '\n')


num = int(input())
print('HARD') if any([int(i) for i in input().split()]) else print('EASY')


d = input()
s = input()
s = s.split(' ')
hard = False
for a in s:
	if a == '1':
		hard = True
		print('HARD')
		break
if not hard:
	print('EASY')


input()
print('EASY' if max(input().split()) == '0' else 'HARD')


def easyhard(n, ar):
	for i in range(0, n):
		if 1 in ar:
			return 0
		else:
			return 1
n = int(input())
ar = list(map(int, input().rstrip().split()))
res = easyhard(n, ar)
if res == 0:
	print('HARD')
else:
	print('EASY')


n = input()
s = input()
if s.find('1') >= 0:
	print('HARD')
else:
	print('EASY')


n = int(input().strip())
votes = [k for k in map(int, input().strip().split())]
if sum(votes):
	print('HARD')
else:
	print('EASY')


def check_responses(responses):
	for num in responses:
		if num != 0:
			return 'HARD'
	return 'EASY'
resp_num = map(int, input())
responses = list(map(int, input().split()))
print(check_responses(responses))


def main():
	n = input()
	n = int(n)
	k = list(input())
	count = 0
	for i in k:
		if i == '1':
			count += 1
		else:
			pass
	if count >= 1:
		return print('HARD')
	else:
		return print('EASY')
main()


n = int(input())
l = list(map(int, input().split()))
p = 0
m = 0
for i in range(0, n):
	if l[i] == 1:
		m = m + 1
	else:
		p = p + 1
if p == n:
	print('EASY')
else:
	print('HARD')


testcase = int(input())
line = input()
if '1' in line:
	print('HARD')
else:
	print('EASY')


k = input()
j = input()
b = False
for x in j:
	if x == '1':
		b = True
		print('HARD')
		break
if b == False:
	print('EASY')


class Main:
	n = int(input())
	judge = input()
	if '1' in judge:
		print('HARD')
	else:
		print('EASY')
Main()


dummy = input()
main = input()
main = main.split(' ')
if main.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
votes = input().split(' ')
hard = False
for v in votes:
	if int(v) == 1:
		hard = True
		break
if hard:
	print('HARD')
else:
	print('EASY')


n = input()
pole = [i for i in input().split()]
n = pole.count('1')
if n > 0:
	print('HARD')
if n < 1:
	print('EASY')


n = int(input())
i = []
num = input()
x = num.split()
for k in range(n):
	i.append(int(x[k]))
palabra = str('EASY')
for j in range(n):
	if i[j] == 1:
		palabra = str('HARD')
		break
print(palabra)


n1 = int(input())
n2 = [int(i) for i in input().strip().split()]
print('EASY') if sum(n2) == 0 else print('HARD')


def incmin(arr):
	i = 0
	for el in arr:
		if el == 0:
			continue
		else:
			i += 1
			print('HARD')
			return False
			break
	if i == 0:
		print('EASY')
k = int(input())
str_arr = input().split(' ')
arr = [int(num) for num in str_arr]
incmin(arr)


n = int(input())
l = sum(map(int, input().split()))
if l:
	print('HARD')
else:
	print('EASY')


N = int(input())
L = input().split(' ')
for x in range(N):
	L[x] = int(L[x])
M = max(L)
if M == 1:
	print('HARD')
else:
	print('EASY')


from sys import stdin, stdout
n = input()
arr = input()
k = list(map(int, arr.split(' ')))
k.sort(reverse=True)
if k[0] == 1:
	print('HARD')
else:
	print('EASY')


length = int(input())
numbers = [int(i) for i in input().split()]
if 1 in numbers:
	print('HARD')
else:
	print('EASY')


def solution(answers):
	verdict = 'EASY'
	for answer in answers:
		if answer == '1':
			verdict = 'HARD'
			break
	return verdict
p = input()
answers = input().split(' ')
print(solution(answers))


int1 = int(input())
int2 = list(map(lambda t: int(t), str(input()).split()))
ans = 'EASY'
for i in int2:
	if i != 0:
		ans = 'HARD'
print(ans)


ind = False
n = int(input())
a = [int(a) for a in input().split(maxsplit=n)]
for i in range(n):
	if a[i] == 1:
		print('HARD')
		ind = True
		break
if ind == False:
	print('EASY')


n = int(input())
l = input().split()
st = 'EASY'
for i in range(n):
	s = l[i]
	if s == '1':
		st = 'HARD'
print(st)


def solve(s):
	if s == 0:
		print('EASY')
	else:
		print('HARD')
num = int(input())
n = list(map(str, input().split()))
s = int(''.join(n))
solve(s)


a = input()
a = int(a)
n = []
arr = list(map(int, input().split()[:a]))
if sum(arr) >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(el) for el in input().split() if int(el) != 0]
if not a:
	print('EASY')
else:
	print('HARD')


n = int(input())
f = [int(n) for n in input().split()]
h = 0
for i in range(len(f)):
	n -= 1
if n == 0:
	if 1 in f:
		print('HARD')
	else:
		print('EASY')


def Easyproblem(n, A):
	X = 0
	for i in range(n):
		X = X or A[i]
	if X:
		print('HARD')
	else:
		print('EASY')
n = int(input())
A = list(map(int, input().split()))
Easyproblem(n, A)


t = int(input())
l = list(map(int, input().split()))
for i in l:
	if i == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input().split()[0])
ans = input().split()
count = 'EASY'
for i in range(n):
	if ans[i] != '0':
		count = 'HARD'
		break
	else:
		pass
print(count)


o = []
o.append(str(input()))
o.append(str(input()))
n = o[0]
t = o[1].split(' ')
for i in t:
	if int(i) == 1:
		u = 'HARD'
		break
	else:
		u = 'EASY'
print(u)


x = int(input())
z = input().split()
if len(z) == x:
	if '1' in z:
		print('HARD')
	else:
		print('EASY')


z = input()
print(['HARD', 'EASY'][sum((int(i) for i in input().split())) == 0])


from sys import stdin, stdout, setrecursionlimit
from gc import disable
disable()
gets = input
puts = print
input = stdin.readline
print = stdout.write

def main() -> int:
	n = int(input())
	print('HARD' if any(list(map(int, input().split()))) else 'EASY')
	return 0
main()


import sys
n = int(input())
l = list(map(int, input().split()))
for i in l:
	if i == 1:
		print('HARD')
		sys.exit()
print('EASY')


import sys

def get():
	return int(sys.stdin.readline().strip())

def getli():
	return list(map(int, sys.stdin.readline().strip().split()))
n = get()
A = getli()
if A.count(1):
	print('HARD')
else:
	print('EASY')


n = int(input())
c = 0
level = input().split()
for item in level:
	if item == '1':
		c = 1
		break
if c == 1:
	print('HARD')
else:
	print('EASY')


import sys
t = int(sys.stdin.readline())
res = 0
n = sys.stdin.readline().split(' ')
for i in range(0, t):
	b = int(n[i])
	if b == 1:
		if res == 0:
			print('HARD')
		res = 1
if res == 0:
	print('EASY')


n = int(input())
b = 0
a = list(map(int, input().split()))
if 1 in a:
	print('HARD')
else:
	print('EASY')


x = int(input())
str = input()
if len(str) > 1:
	y = len(str) // 2 + 1
else:
	y = 1
if x == y:
	if '1' in str:
		print('HARD')
	else:
		print('EASY')


n = int(input())
array = list(map(int, input().split()))
count = 0
for i in array:
	if i == 1:
		count += 1
if count == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
ok = True
temp = input()
mylist = list()
mylist = [int(x) for x in temp.split(' ')]
for i in range(0, len(mylist)):
	if mylist[i] == 1:
		ok = False
		break
if not ok:
	print('HARD')
else:
	print('EASY')


t = int(input())
op = list(map(int, input().split()))
if sum(op) > 0:
	print('HARD')
else:
	print('EASY')


people = int(input())
answers = list(map(int, input().split()))
hard = False
for a in answers:
	if a == 1:
		hard = True
		break
if hard:
	print('HARD')
else:
	print('EASY')


import sys
n = int(input())
feedback_list = list(map(int, input().split()))
for feedback in feedback_list:
	if feedback == 1:
		print('HARD')
		sys.exit()
print('EASY')


b = int(input())
a = list(map(int, input().split()))
k = 0
for i in a:
	if i == 1:
		k = 1
if k == 1:
	print('HARD')
if k == 0:
	print('EASY')


n = map(int, input())
responses = list(map(int, input().split(' ')))

def solve(responses):
	for response in responses:
		if response == 1:
			return 'HARD'
	return 'EASY'
print(solve(responses))


n = int(input())
numbers = list(map(int, input().split()))
is_hard = False
for num in numbers:
	if num == 1:
		is_hard = True
		break
print('HARD' if is_hard else 'EASY')


p = int(input())
u = input()
e = u.split(' ')
r = []
z = 0
for i in e:
	r.append(int(i))
for i in r:
	if i == 1:
		z += 1
if z > 0:
	print('HARD')
else:
	print('EASY')


_ = int(input())
lst = max(map(int, input().split()))
print(('EASY', 'HARD')[lst])


n = int(input())
ans = list(map(int, input().split()))

def problem():
	if sum(ans[0:n]) == 0:
		print('EASY')
	else:
		print('HARD')
problem()


n = [int(i) for i in input().split()]
l = [int(i) for i in input().split()]
res = 0
for i in l:
	res = res or i
if res:
	print('HARD')
else:
	print('EASY')


n_people = input()
i = input()
i = list(i)
for spaces in i:
	if spaces == ' ':
		i.remove(spaces)
for one in i:
	if one == '1':
		a = 'Hard'
		print('HARD')
		break
try:
	if a == 'Hard':
		pass
except:
	print('EASY')


n = int(input())
data = input()
int_data = list(map(int, data.split()))
if sum(int_data) == 0:
	print('EASY')
else:
	print('HARD')


n = input()
o = [int(s) for s in input().split()]
easy = True
for ele in o:
	if ele == 1:
		print('HARD')
		easy = False
		break
if easy:
	print('EASY')


n = int(input())
k = list(filter(lambda x: int(x) > 0, input().split()))
if k:
	print('HARD')
else:
	print('EASY')


n = int(input())
ratings = input().split(' ')
problem = 'EASY'
for r in ratings:
	if r == '1':
		problem = 'HARD'
		break
print(problem)


n = int(input())
array = input().split()
if '1' in array:
	print('HARD')
else:
	print('EASY')


import sys
input = sys.stdin.readline
Num = list(map(int, input().split()))
place = list(map(int, input().split()))
place.sort()
if place[-1] == 1:
	print('HARD')
else:
	print('EASY')


people = int(input())
responses = input().split()
counter = 0
for response in responses:
	if response == '1':
		print('HARD')
		break
	elif counter == len(responses) - 1:
		print('EASY')
	else:
		counter += 1


n = int(input())
m = list(map(int, input().split()))
for j in range(len(m)):
	if m[j] == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))
have_we_printed = False
for e in l:
	if e == 1:
		have_we_printed = True
		print('HARD')
		break
if not have_we_printed:
	print('EASY')


T = input()
print('HARD' if any([i > 0 for i in map(int, input().split())]) else 'EASY')


n = int(input())
lst = [int(x) for x in input().split()]
c = 0
for k in lst:
	if k == 0:
		c += 1
if c == n:
	print('EASY')
else:
	print('HARD')


import re
n = int(input())
l = input()
num = re.compile('\\d')
nums = num.findall(l)
c = 0
for i in range(n):
	if nums[i] == '1':
		c = c + 1
if c == 0:
	print('EASY')
else:
	print('HARD')


num = int(input())
answer = list(map(int, input().strip().split()))
filterd_lst = list(filter(lambda x: x > 0, answer))
if len(filterd_lst) > 0:
	print('HARD')
else:
	print('EASY')


import sys
y = int(input())
x = list(map(int, input().split()))
x.sort()
if int(x.pop()) == 1:
	print('HARD')
else:
	print('EASY')


o = int(input())
x = input()
y = x.split(' ')
a = []
ggg = 0
for i in y:
	a.append(int(i))
for i in a:
	if i == 1:
		ggg += 1
if ggg > 0:
	print('HARD')
else:
	print('EASY')


numpeople = int(input())
peopleans = input()
total = 0
i = 0
peopleanssplit = [int(n) for n in peopleans.split()]
for i in range(0, numpeople, 1):
	total += peopleanssplit[i]
if total > 0:
	print('HARD')
else:
	print('EASY')


import math
n = input()
n = int(n)
suma = 0
saras = []
saras[0:n] = input().split()
for x in range(0, n):
	saras[x] = int(saras[x])
for x in range(0, n):
	if saras[x] is 1:
		suma += 1
if suma > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
arr = list(map(int, input().rstrip().split()))
if arr.count(1) >= 1:
	print('HARD')
else:
	print('EASY')


a = input().split()
h = 0
s = input().split()
for i in range(len(s)):
	s[i] = int(s[i])
	if s[i] == 1:
		h += 1
if h == 0:
	print('EASY')
if h > 0:
	print('HARD')


n = int(input())
x = [int(i) for i in input().split()]
hard = 1
if hard in x:
	f = x.index(hard)
else:
	f = -1
if f == -1:
	print('EASY')
else:
	print('HARD')


x = int(input())
l = list(map(int, input().split()))
y = ''
for i in range(x):
	if l[i] == 0:
		y = 'EASY'
	else:
		y = 'HARD'
		break
print(y)


n = int(input())
difficulty_lst = [int(k) for k in input().split(' ')]
length1 = len(difficulty_lst)
is_difficult = False
for i in range(0, length1):
	if difficulty_lst[i] == 1:
		is_difficult = True
		break
if is_difficult:
	print('HARD')
else:
	print('EASY')


N = int(input())
D = input()
if '1' in D:
	print('HARD')
else:
	print('EASY')


import sys
import math
import string
t = int(input())
arr = [int(i) for i in input().split()]
for i in range(t):
	if arr[i] == 1:
		print('HARD')
		sys.exit()
print('EASY')


a = input()
b = input().split()
key = False
for i in b:
	if i == '1':
		print('HARD')
		key = True
		break
if key == False:
	print('EASY')


n = int(input())
m = input().split()

def vfx(n, m):
	for i in range(n):
		v = int(m[i])
		if v == 1:
			return 'HARD'
	else:
		return 'EASY'
print(vfx(n, m))


integer = int(input())
mass = [int(x) for x in input().split()]
if 1 in mass:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = input().split()
c = b.count('1')
c = c > 0
c = str(c)
c = c.replace('True', 'HARD')
c = c.replace('False', 'EASY')
print(c)


n = int(input())
s = input()
s = s.split()
for i in range(len(s)):
	if s[i] == '1':
		print('HARD')
		exit()
print('EASY')


n = int(input(''))
list1 = list(map(int, input().split()))
count = 0
for i in list1:
	if i == 1:
		print('HARD')
		break
	else:
		count += 1
if count == len(list1):
	print('EASY')


n = int(input())
line = list(input().split())
i = 0
flag = True
while i < n and flag:
	if int(line[i]) == 1:
		flag = False
	i += 1
if flag:
	print('EASY')
else:
	print('HARD')


def CodeForces(lista):
	for i in lista:
		if i == '1':
			return 'HARD'
	return 'EASY'
input()
lista = input().split()
print(CodeForces(lista))


n = int(input())
x = [int(x) for x in input().split()]
hard = False
for num in x:
	num = int(num)
	if num != 0:
		hard = True
		break
if hard:
	print('HARD')
else:
	print('EASY')


n = int(input())
k = input().split()
if max(k) == '1':
	print('HARD')
else:
	print('EASY')


t = int(input())
first = input().split(' ')
g = 0
for i in range(t):
	a = int(first[i])
	if a == 1:
		g = 1
if g == 0:
	print('EASY')
else:
	print('HARD')


x = int(input())
lst = input().split()
y = 'EASY'
for i in range(x):
	if int(lst[i]) == 1:
		y = 'HARD'
		break
print(y)


n = int(input())
bad = False
for i in input().split():
	if i == '1':
		bad = True
		break
if bad:
	print('HARD')
else:
	print('EASY')


def run():
	num = int(input())
	val = list(map(int, input().split()))
	for i in range(0, num):
		if val[i] == 1:
			print('HARD')
			return
	print('EASY')
run()


a = int(input())
input_data = input()
list_we_use = input_data.split(' ')
f = []
count1 = 0
count2 = 0
for i in list_we_use:
	f.append(int(i))
for i in range(len(f)):
	if f[i] == 0:
		count1 += 1
	else:
		count2 += 1
if count2 > 0:
	print('HARD')
else:
	print('EASY')


col = int(input())
dif = input().split()
difl = [int(num) for num in dif]
setdif = set(difl)
if 1 in setdif:
	vivod = 1
else:
	vivod = 0
if vivod == 0:
	print('EASY')
else:
	print('HARD')


noOps = int(input())
ops = list(input().split(' '))
ops = [int(x) for x in ops]
(easy, hard) = (0, 0)
for op in ops:
	if op == 0:
		easy += 1
	else:
		hard += 1
if hard > 0:
	print('HARD')
else:
	print('EASY')


num = input()
str = input()
lst = str.split(' ')
if '1' in lst:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().split()))
for e in a:
	if e == 1:
		print('HARD')
		quit()
print('EASY')


t = int(input())
f = 1
arr = list(map(int, input().split()))
for i in arr:
	if i == 1:
		print('HARD')
		f = 0
		break
if f:
	print('EASY')


import operator
import functools
lineas = 2
text = []
for i in range(lineas):
	line = input()
	text.append(line)
res = functools.reduce(operator.add, map(int, text[1].split()))
print('EASY' if res == 0 else 'HARD')


answer = 'EASY'
n = input()
ar = input()
for i in ar.split(' '):
	if i == '1':
		answer = 'HARD'
		break
print(answer)


n = input()
responses = input().split()
if '1' in responses:
	print('HARD')
else:
	print('EASY')


t = input()
a = input().split()
dec = 'EASY'
for i in a:
	if i == '1':
		dec = 'HARD'
		break
print(dec)


a = int(input().strip())
b = [int(x) for x in input().split()]
s = 0
for i in b:
	if i != 0:
		s += 1
if s == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
k = [int(x) for x in input().split()]
result = 'EASY'
for x in range(n):
	if k[x] == 1:
		result = 'HARD'
print(result)


input1 = input()
input2 = input()
if '1' in input2:
	print('HARD')
elif '1' not in input2:
	print('EASY')
else:
	pass


N = int(input())
a = input().split()
if a.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(i) for i in input().split()]
iss = 0
for i in a:
	if i and (not iss):
		print('HARD')
		iss = 1
if not iss:
	print('EASY')


no = int(input())
li = [int(p) for p in input().split()]
li.sort(reverse=True)
if li[0] == 0:
	print('EASY')
else:
	print('HARD')


import sys
num = int(input())
temp = list(map(int, input().split()))
for x in temp:
	if x == 1:
		print('HARD')
		sys.exit(0)
print('EASY')


n = input()
l = list(map(int, input().split()))
x = len(l)
o = False
i = 0
while i < x:
	if l[i] == 1:
		o = True
		break
	else:
		i += 1
		continue
if o == True:
	print('HARD')
else:
	print('EASY')


n = int(input())
str1 = input()
if str1.count('1') > 0:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = input()
c = 0
b = b.replace(' ', '')
for i in b:
	if i == '1':
		c = c + 1
	else:
		continue
if c > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = input().split()
i = 0
k = 0
while i < n:
	if a[i] == '1':
		k = 1
		break
	if a[i] == '0':
		i = i + 1
if k == 1:
	print('HARD')
if k == 0:
	print('EASY')


input()
print(['EASY', 'HARD'][any((i == '1' for i in input().split()))])


n = input()
s = list(map(int, input().split()))
flag = 0
for i in s:
	if i == 1:
		print('HARD')
		flag = 1
		break
if flag == 0:
	print('EASY')


n = int(input())
l = [int(num) for num in input().split()]
c = True
for number in l:
	if number == 1:
		print('HARD')
		c = False
		break
if c:
	print('EASY')


n = int(input())
list_inputs = input().split()
curMax = 0
if n <= 100:
	for i in range(int(n)):
		curMax = max(curMax, int(list_inputs[i]))
	if curMax > 0:
		print('HARD')
	else:
		print('EASY')


from sys import stdin, exit
n = int(stdin.readline().rstrip())
f = list(map(int, stdin.readline().rstrip().split(' ')))
if sum(f) >= 1:
	print('HARD')
else:
	print('EASY')


_ = input()
inps = input().split()
if '1' in inps:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = input().split()
c = 0
for i in range(n):
	if int(s[i]) == 1:
		c += 1
		break
if c == 1:
	print('HARD')
else:
	print('EASY')


x = input()
y = [int(x) for x in input().split(' ')]
temp = 0
for t in y:
	if t == 1:
		temp = temp + 1
if temp > 0:
	print('HARD')
else:
	print('EASY')


import sys
inp = sys.stdin.readline
n = inp()
k = list(map(int, inp().split()))
for i in k:
	if i:
		print('HARD')
		exit()
print('EASY')


n = input()
r = list(map(int, input().split()))
for i in r:
	if i == 0:
		p = 0
	else:
		p = i
		break
if p == 0:
	print('EASY')
else:
	print('HARD')


no_of_persons = input()
no_of_person_answers = list(map(int, input().split()))
if len(set(no_of_person_answers)) > 1 or no_of_person_answers[0] == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
p = input().split()
for j in range(n):
	if p[j] == '1':
		print('HARD')
		break
	elif j == n - 1:
		print('EASY')


(n, li) = (int(input()), input().split())
if '1' in li:
	print('HARD')
else:
	print('EASY')


n = int(input())
list1 = input().split(' ')
list2 = [int(a) for a in list1]
count = 0
for a in list2:
	if a == 1:
		count += 1
if count > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
m = map(int, input().split())
counter = 0
for elem in m:
	if elem != 1:
		counter += 1
if counter == n:
	print('EASY')
else:
	print('HARD')


n = int(input())
ans = 'EASY'
for x in list(map(int, input().split())):
	if x == 1:
		ans = 'HARD'
print(ans)


persona = input()
resultados = input()
lista = resultados.split(' ')
if '1' in lista:
	print('HARD')
else:
	print('EASY')


num = input()
easy = list(map(int, input().split()))
count = 0
for x in easy:
	if x == 1:
		count += 1
if count > 0:
	print('HARD')
else:
	print('EASY')


input()
d = input()
print('HARD' if d.count('1') > 0 else 'EASY')


n = int(input())
a = [int(i) for i in input().split()]
p = 0
for i in a:
	if i == 1:
		print('HARD')
		p = 1
		break
if p == 0:
	print('EASY')


input()
a = input()
if a.find('1') >= 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
pov = input().split()
if '1' in pov:
	print('HARD')
else:
	print('EASY')


n = input()
listOfInputs = list(input().split())
if '1' in listOfInputs:
	print('HARD')
else:
	print('EASY')


n = input()
s = input().split()
for elem in s:
	if elem == '1':
		print('HARD')
		break
else:
	print('EASY')


n = input()
e_h = array = list(map(int, input().split()))
out = [True if x == 1 else False for x in e_h]
print('HARD' if True in out else 'EASY')


thisvariablewontbeused = int(input())
hah = str(input())
if hah.count('1') > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
f = 0
g = list(input().split())
for i in g:
	if i == '1':
		f += 1
if f >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
t = list(map(int, input().split()))
digits = [i for i in t]
c = 0
b = 0
for i in digits:
	if i == 0:
		c += 1
	if i == 1:
		b += 1
if b >= 1:
	print('HARD')
else:
	print('EASY')


class Solution:

	def isHard(self, n, opinions):
		return sum(opinions) >= 1
sol = Solution()
n = int(input().strip())
opinions = list(map(int, input().strip().split()))
print('HARD' if sol.isHard(n, opinions) else 'EASY')


n = input()
numbers = input()
number = numbers.split(' ')
if number.count('1') != 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
val = input().split()
print('HARD' if val.count('1') >= 1 else 'EASY')


value = input()
list_answer = input().split()
sum1 = 0
for number in list_answer:
	number = int(number)
	sum1 += number
if sum1 > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = [int(i) for i in input().split()]
ket = 'EASY'
for i in a:
	if i == 1:
		ket = 'HARD'
		break
print(ket)


n = int(input())
l = list(map(int, input().split()))
a = []
b = []
for i in l:
	if i == 0:
		a.append(i)
	else:
		b.append(i)
if len(b) > 0:
	print('HARD')
else:
	print('EASY')


k = int(input())
n = input().split()
answer = 'EASY'
for i in n:
	if i == '1':
		answer = 'HARD'
print(answer)


n = input()
i = input()
print(['EASY', 'HARD']['1' in i])


def solve(k):
	if 1 in k:
		return 'HARD'
	return 'EASY'
n = int(input())
k = map(int, input().split(' '))
y = solve(k)
print(y)


n = int(input())
l = input().split()
print('EASY' if set(l) == {'0'} else 'HARD')


total = input(' ')
t = int(total)
k = t + (t - 1)
opp = input(' ')
Ans = 5
for i in range(k):
	if opp[i] == '0':
		Ans = 5
	elif opp[i] == '1':
		Ans = Ans + 1
		break
if Ans == 5:
	print('EASY')
elif Ans == 6:
	print('HARD')


k = input()
l = list(map(int, input().split()))
if 1 not in l:
	print('EASY')
else:
	print('HARD')


n = int(input())
x = input()
a = x.split()
c = 0
for i in range(0, len(a)):
	if a[i] == '1':
		c = 1
		print('HARD')
		break
if c == 0:
	print('EASY')


n = int(input())
op = list(map(int, input().strip().split()))
for i in range(0, n):
	if op[i] == 1:
		print('HARD')
		break
	elif op[i] == 0 and i == n - 1:
		print('EASY')
	else:
		pass


n = int(input())
opinions = list(map(int, input().split()))
is_hard = 'HARD' if 1 in opinions else 'EASY'
print(is_hard)


input()
x = input().split()
if '1' in x:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = map(int, input().split())
s = 0
for n in b:
	s += n
print('EASY' if not s else 'HARD')


n = int(input())
q = input().split()
w = False
for i in range(n):
	q[i] = int(q[i])
	if q[i] == 1:
		w = True
if w:
	print('HARD')
else:
	print('EASY')


n = int(input(''))
s = str(input(''))
difficulty = 0
if n > 1:
	line = s.split(' ')
	for items in line:
		if items != '0':
			difficulty = 1
			break
elif s == '1':
	difficulty = 1
if difficulty == 1:
	print('HARD', end='')
else:
	print('EASY', end='')


def findHard(numArray, arrayLength):
	i = 0
	while i <= arrayLength - 1:
		if numArray[i]:
			return True
		if numArray[arrayLength - 1]:
			return True
		i += 1
		arrayLength -= 1
	return False
NoOfPeople = int(input())
numList = list((int(num) for num in input().strip().split()))
searchResult = findHard(numList, NoOfPeople)
if searchResult:
	print('HARD')
else:
	print('EASY')


n = int(input())
(x, *k) = input().split()
y = 0
for i in range(len(k)):
	y = y + int(k[i])
y = y + int(x)
if y == 0:
	print('EASY')
else:
	print('HARD')


n = int(input())
eorh = tuple(map(str, input().split(' ')))
if '1' in eorh:
	print('HARD')
else:
	print('EASY')


num = int(input())
pep = map(int, input().split())
ez = 1
for _ in pep:
	if _ == 1:
		ez = 0
if ez == 1:
	print('EASY')
else:
	print('HARD')


n = int(input())
numbers = input()
hard = 0
list = numbers.split(' ')
for number in list:
	if int(number) == 1:
		hard = 1
		print('HARD')
		break
if not hard:
	print('EASY')


num = input()
answers = input()
num = int(num)
answers = answers.split(' ')
harded = False
for foo in answers:
	if foo == '0':
		pass
	if foo == '1':
		harded = True
		print('HARD')
		break
if not harded:
	print('EASY')


_ = input()
print('HARD' if sum(map(int, input().split())) else 'EASY')


people = int(input())
answer = input()
a = answer.split()
c = len(a)
isfalse = False
for i in range(0, c):
	if a[i] == '1':
		isfalse = True
if isfalse == True:
	print('HARD')
else:
	print('EASY')


(n, count) = [input() for i in range(2)]
count = map(int, count.split())
for i in range(int(n)):
	i = next(count)
	if i == 1:
		print('HARD')
		break
else:
	print('EASY')


n = int(input())
answers = list(map(int, input().split()))
sum = 0
for i in answers:
	sum += i
if sum == 0:
	print('EASY')
else:
	print('HARD')


a = int(input())
n = input()
count_hard = n.count('1')
if count_hard != 0:
	print('HARD')
else:
	print('EASY')


n = input()
s = input()
if max(s) == '1':
	print('HARD')
else:
	print('EASY')


n = int(input())
li = list(map(int, input().split()))
z = li.count(0)
if z == n:
	print('EASY')
else:
	print('HARD')


a = int(input())
a_string = input()
numbers = []
for word in a_string.split():
	if word.isdigit():
		numbers.append(int(word))
numbers = sorted(numbers)
if numbers[-1] == 1:
	print('HARD')
else:
	print('EASY')


a = int(input())
b = list(map(int, input().split()))
c = sum(b)
d = c > 0
f = str(d).replace('True', 'HARD').replace('False', 'EASY')
print(f)


h = int(input())
a = input()
k = a.split(' ')
u = []
for i in k:
	u.append(int(i))
if max(u) == 1:
	print('HARD')
else:
	print('EASY')


a = int(input())
r = input().find('1')
s = 'EASY'
if r != -1:
	s = 'HARD'
print(s)


n = input()
n = int(n)
mas = [int(a) for a in input().split()]
for i in range(n):
	if mas[i] == 1:
		print('HARD')
		exit()
print('EASY')


input()
s = input().split(' ')
sum = False
for i in s:
	sum = int(i) or sum
if sum:
	print('HARD')
else:
	print('EASY')


inp = input()
n = int(inp)
X = input()
x = X.split(' ')
x.sort()
if int(x[-1]) == 1:
	print('HARD')
else:
	print('EASY')


import math
import re
a = input()
b = list(map(int, input().split(' ')))
print(['EASY', 'HARD'][1 in b])


number_of_people = int(input())
control = False
input_2 = input()
raw_input = input_2.split(' ')
for index in range(number_of_people):
	if int(raw_input[index]) == 1:
		control = True
if control:
	print('HARD')
elif not control:
	print('EASY')


n = int(input())
nums = list(map(int, input().strip().split()))
if 1 in nums:
	print('HARD')
else:
	print('EASY')


a = str(input())
if a == '0':
	print('EASY')
a = input().split()
if '1' in a:
	print('HARD')
else:
	print('EASY')


m = []
s = int(input())
k = 0
c = 1
a = list(map(int, input().split()))
for x in a:
	if x == 1:
		c = 0
if c == 0:
	print('HARD')
else:
	print('EASY')


NoOfPeople = input()
EasyHardResponses = list(map(int, input().split()))
if sum(EasyHardResponses) > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
votes = [int(x) for x in input().split()]
easy = True
for vote in votes:
	if vote:
		easy = False
		break
print('EASY' if easy else 'HARD')


n = int(input())
res = sum((int(i) for i in input().split()))
print('HARD') if res else print('EASY')


surveyors = input()
surveyResults = input().split(' ')
if '1' in surveyResults:
	print('HARD')
else:
	print('EASY')


y = input()
boo = False
x = [int(i) for i in input().split()]
for y in x:
	if y == 1:
		print('HARD')
		boo = True
		break
if boo == False:
	print('EASY')


n = int(input())
asked = input().split(' ')
if '1' in asked:
	print('HARD')
else:
	print('EASY')


bla = int(input())
s = str(input())
if '1' in s:
	print('HARD')
else:
	print('EASY')


n = int(input())
result_line = input()
result_line_list = result_line.split()
if n != len(result_line_list):
	raise ValueError('Incorrect Number of participants')
for entry in result_line_list:
	if int(entry) != 0:
		print('HARD')
		break
else:
	print('EASY')


t = int(input())
a = [int(x) for x in input().split()]
if len(set(a)) == 1 and a[0] == 0:
	print('EASY')
else:
	print('HARD')


count = int(input())
numbers = list(map(int, input().split()))
if int(1) in numbers:
	print('HARD')
else:
	print('EASY')


s = int(input())
n = [int(i) for i in input().split(maxsplit=s)]
if 1 in n:
	print('HARD')
else:
	print('EASY')


n = int(input())
estimates = input().split()
print('HARD') if '1' in estimates else print('EASY')


a = int(input())
print(['HARD', 'EASY'][input().split().count('1') == 0])


numpeople = int(input())
difficulty = [int(i) for i in input().split()]
isdifficult = 0
for i in range(numpeople):
	if difficulty[i] == 1:
		isdifficult = 1
if isdifficult == 1:
	print('HARD')
else:
	print('EASY')


numPeople = int(input())
diff = list(input().split(' '))
single = ''.join(diff)
tempList = set(single)
if len(tempList) == 1:
	if '1' in tempList:
		print('HARD')
	else:
		print('EASY')
elif len(tempList) > 1:
	print('HARD')


n = int(input())
k = 0
l = [str(s) for s in input().split()]
for i in range(len(l)):
	if int(l[i]) == 1:
		k = 1
print('HARD' if k == 1 else 'EASY')


a = int(input())
b = [int(inp) for inp in input().split()]
res = 0
for i in b:
	if i == 0:
		continue
	else:
		res += 1
if res > 0:
	print('HARD')
else:
	print('EASY')


def run_alg():
	count = int(input())
	opinions = input().split(' ')
	for i in range(count):
		opinion = int(opinions[i])
		if opinion == 1:
			print('HARD')
			break
	else:
		print('EASY')
run_alg()


def result(people):
	for c in people:
		if c == 1:
			return 'HARD'
	return 'EASY'
n = input()
people = [int(i) for i in input().split(' ')]
print(result(people))


import time
import collections

class Time_test:

	def __enter__(self):
		self.enter_time = time.time()

	def __exit__(self, exc_type, exc_val, exc_tb):
		print('Command was executed in', time.time() - self.enter_time)
n = int(input())
ipt = [int(x) for x in input().split()]
if any(ipt):
	print('HARD')
else:
	print('EASY')


n = int(input())
l = input().split()
e = 0
h = 0
for i in l:
	if i == '0':
		e += 1
if e == n:
	print('EASY')
else:
	print('HARD')


from collections import Counter
n = int(input())
a = list(map(int, input().split()))
d = Counter(a)
if d[1] > 0:
	print('HARD')
else:
	print('EASY')


def read_array():
	x = []
	x1 = []
	x = input()
	x = x.split(' ')
	for r in range(len(x)):
		x1.append(int(x[r]))
	return x1
input()
x = read_array()
if 1 in x:
	print('HARD')
else:
	print('EASY')


n = int(input())
person = []
people = list(input().split(' '))
for p in people:
	person.append(int(p))
if sum(person) >= 1:
	print('HARD')
else:
	print('EASY')


k = 0
n = int(input())
problem = input()
for i in problem:
	if i == '1':
		k = 1
	else:
		k = k
if k == 1:
	print('HARD')
else:
	print('EASY')


from sys import stdin, stdout

def main():
	n = stdin.readline()
	arr = [int(x) for x in stdin.readline().split()]
	if 1 in arr:
		stdout.write(str('HARD'))
	else:
		stdout.write(str('EASY'))
main()


_ = input()
x = input().split()
for a in x:
	if a == '1':
		print('HARD')
		break
else:
	print('EASY')


def solve():
	n = int(input().strip())
	nums = [x for x in input().strip().split(' ') if x == '1']
	print('EASY' if not nums else 'HARD')
solve()


(a, b) = (input(), list(map(int, input().strip().split())))
a = sum(b)
if a:
	print('HARD')
else:
	print('EASY')


def easytask(arr):
	for a in arr:
		if a == 1:
			return 'HARD'
	return 'EASY'
n = input()
arr = list(map(int, input().rstrip().split()))
print(easytask(arr))


a = int(input())
c = 0
c1 = 0
arr = input().split()
for i in arr:
	if i == '0':
		c = c + 1
	else:
		c1 = c1 + 1
if c1 >= 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
stroka = input()
f = 0
sp = stroka.split()
for i in range(n):
	if sp[i] == '1':
		f = 1
if f == 1:
	print('HARD')
else:
	print('EASY')


n = int(input())
l = list(map(int, input().split()))
z = 0
o = 0
for i in l:
	if i == 0:
		z += 1
	else:
		o += 1
if o > 0:
	print('HARD')
else:
	print('EASY')


import sys
isEasy = True
length = input()
array = input().split(' ')
for (i, val) in enumerate(array):
	array[i] = int(val)
for elem in array:
	if elem > 0:
		isEasy = False
		break
if isEasy:
	print('EASY')
else:
	print('HARD')


n = int(input())
kol = 0
t = [int(s) for s in input().split()]
for i in range(len(t)):
	if t[i] == 1:
		kol += 1
if kol > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
X = input().split(' ')[:n]
s = 0
for i in X:
	if i == '1':
		print('HARD')
		s = 1
		break
if s == 0:
	print('EASY')


a = input()
b = input()
c = b.split()
if '1' in c:
	print('HARD')
else:
	print('EASY')


number_of_people = int(input())
difficulty = input().split()
if '1' in difficulty:
	print('HARD')
else:
	print('EASY')


n = int(input())
answer = 0
temp = 0
answer = input()
if '1' in answer:
	temp += 1
if temp == 1:
	print('HARD')
else:
	print('EASY')


n = int(input(), base=10)
check = 'EASY'
li = list(map(int, input().split()))
for i in range(len(li)):
	if li[i] == 1:
		check = 'HARD'
		break
	else:
		check = 'EASY'
print(check)


import re
n = int(input())
s = input()
if re.search('1', s):
	print('HARD')
else:
	print('EASY')


n = int(input())
i_s = [int(i) for i in input().split()]
is_easy = True
for i in i_s:
	if i == 1:
		is_easy = False
		break
if is_easy:
	print('EASY')
else:
	print('HARD')


n = int(input())
values = [int(d) for d in input().split(' ', n)]
count = 0
for i in values:
	if i == 0:
		count += 1
isEasy = ('HARD', 'EASY')[count == n]
print(isEasy)


number_of_people = int(input())
a = [int(value) for value in input().split()]
if a.count(1) > 0:
	print('HARD')
else:
	print('EASY')


num = int(input())
lst = list(map(int, input().rstrip().split()))
if lst.count(1):
	print('HARD')
else:
	print('EASY')


n = int(input())
m = [int(n) for n in input().split()]
r = list(m)
len(r) == n
if 1 in r:
	print('HARD')
else:
	print('EASY')


n = input()
op = map(int, input().split())
flag = False
for i in op:
	if i == 1:
		flag = True
if flag is True:
	print('HARD')
else:
	print('EASY')


num = input()
lis = list(map(int, input().strip().split()))
if 1 in lis:
	print('HARD')
else:
	print('EASY')


x = int(input())
y = input()
if y.count('0') == x:
	print('EASY')
else:
	print('HARD')


local = False
if local:
	file = open('A.txt', 'r')

def inp():
	if local:
		return file.readline().rstrip()
	else:
		return input().rstrip()

def ints():
	return [int(_) for _ in inp().split()]
n = int(inp())
arr = ints()
if any(arr):
	print('HARD')
else:
	print('EASY')


x = input()
numbers = list(map(int, input().split()))
for i in numbers:
	if i == 1:
		print('HARD')
		exit()
print('EASY')


n = input()
list_answ = input().split(' ')
if list_answ.count('1') == 0:
	print('EASY')
else:
	print('HARD')


input()
a = list(map(int, input().split()))
for i in range(len(a)):
	if a[i] == 1:
		print('HARD')
		exit()
	else:
		continue
print('EASY')


num1 = eval(input())
opinion = list(map(int, input().split()))
if opinion.count(1) > 0:
	print('HARD')
else:
	print('EASY')


import sys
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())

def foo():
	n = inp()
	op = inlt()
	for item in op:
		if item == 1:
			return 'HARD'
	return 'EASY'
print(foo())


s = int(input())
x = sum([int(i) for i in input().split()])
if x > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
k = input().split()
g = max(k)
if int(g) == 1:
	print('HARD')
elif int(g) == 0:
	print('EASY')


input_list = []
line = True
count = 1
while line:
	line = input().split()
	if count == 2 and line.count('1') == 0:
		print('EASY')
		break
	elif count == 2 and line.count('1') >= 1:
		print('HARD')
		break
	count += 1


input()
(*s,) = input().split()
print(['EASY', 'HARD']['1' in s])


kol = int(input())
dif = list(map(int, input().split()))
if 1 in dif:
	print('HARD')
else:
	print('EASY')


n = int(input())
s = list(map(int, input().split()))
for i in s:
	if i > 0:
		print('HARD')
		exit(0)
print('EASY')


n = int(input())
hs = input()
hs = hs.split()
flag = False
for ele in hs:
	if ele == '1':
		flag = True
if flag == True:
	print('HARD')
else:
	print('EASY')


n = int(input())
input_2 = input()
input_2_list = map(int, input_2.split(' '))
res = sum(input_2_list)
if res > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
a = list(map(int, input().strip().split()))
if 1 not in a:
	print('EASY')
else:
	print('HARD')


def solve(b):
	for a in b:
		if a == 1:
			return 'HARD'
	return 'EASY'
n = int(input())
b = map(int, input().split(' '))
print(solve(b))


n = int(input())
arr = list(map(int, input().split()))
difficulty = 'EASY'
for elem in arr:
	if elem == 1:
		difficulty = 'HARD'
		break
print(difficulty)


n = int(input())
opinions = input().split()

def main():
	for op in opinions:
		if op == '0':
			continue
		else:
			print('HARD')
			return
	print('EASY')
	return
main()


n = input()
l = input().split()
for i in range(0, len(l)):
	if l[i] == '1':
		print('HARD')
		exit()
print('EASY')


numPeople = int(input())
isHards = input()
isHardsList = isHards.split()
for i in range(numPeople):
	if int(isHardsList[i]) == 1:
		print('HARD')
		exit()
print('EASY')


from math import *
sInt = lambda : int(input())
mInt = lambda : map(int, input().split())
lInt = lambda : list(map(int, input().split()))
n = sInt()
a = input()
if a.find('1') == -1:
	print('EASY')
else:
	print('HARD')


n = int(input())
judgments = [int(j) for j in input().split()]
if any(judgments):
	print('HARD')
else:
	print('EASY')


n = int(input())
li = list(map(int, input().split()))
res = 0
c = 1
if c in li:
	res = 1
if res == 1:
	print('HARD')
else:
	print('EASY')


(n, res) = (int(input()), 'EASY')
a = list(map(int, input().split()))
for i in a:
	if i:
		res = 'HARD'
		break
print(res)


input()
x = list(map(str, input().split()))
if '1' in x:
	print('HARD')
else:
	print('EASY')


from functools import reduce
_ = int(input())
print('HARD' if reduce(lambda acc, elem: max(acc, elem), map(int, input().split())) else 'EASY')


n = int(input())
li = list(map(int, input().split()))
e = 0
h = 0
for i in li:
	if i == 0:
		e = e + 1
	else:
		h = h + 1
if h > 0:
	print('HARD')
else:
	print('EASY')


n = int(input())
li = [int(i) for i in input().split()]
li.sort()
if li[len(li) - 1] == 1:
	print('HARD')
else:
	print('EASY')


from sys import stdin, stdout
num = int(stdin.readline())
choices = [int(i) for i in stdin.readline().split()]
if 1 in choices:
	print('HARD')
else:
	print('EASY')


n = int(input())
win = str(input())
uber = len(win)
gav = 0
armagedon = 0
for i in range(uber):
	if win[armagedon] == '1':
		gav = 1
	armagedon += 1
if gav == 1:
	print('HARD')
elif gav == 0:
	print('EASY')