fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. long long n;
  8. cin >> n;
  9. bool cheak=0;
  10. for (int i=0 ;i<n ;i++)
  11. {
  12. cin>> i;
  13. if (i==1)
  14. {
  15. cheak=1;
  16. break;
  17. }
  18.  
  19. }
  20. if (cheak==1)
  21. {
  22. cout <<"HARD";
  23. }
  24. else
  25. {
  26. cout <<"EASY";
  27. }
  28. }
  29.  
Success #stdin #stdout 0s 5516KB
stdin
Standard input is empty
stdout
HARD