package readability;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

	        Scanner sc = new Scanner(System.in);
	        String word = sc.nextLine();
	        String[] nums = word.split(" ");
	        //System.out.println(nums.length); // total words
	        int allWords = nums.length;

	        int sentences =  word.split("[!.,]+[//?]*").length; //number of sentences

	        //System.out.println(sentences);

	        if (allWords/sentences <= 10) {
	        System.out.println("EASY");
	        }
	        else if (allWords/sentences > 10) {
	        System.out.println("HARD");
	        }
			sc.close();
    }
}        /*
 This text is simple to read! It has on average less than 10 words per sentence.
 This text is hard to read. It contains a lot of sentenses as well as a lot of words in each sentence
  > 12, 12 13 14 14 14, 12 21 23 89! 75 12, 134 241 123, 123 123 123, 123 123 123? 123, 123 123 123 23 123 213 123 123 123.
		 */