fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n, k=0;
  6. cin>>n;
  7. for(int i=0; i<n; i++){
  8. int x;
  9. cin>>x;
  10. if(x==1) {
  11. k++;
  12. }
  13. }
  14. if(k>0) cout<<"HARD";
  15. else cout<<"EASY";
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5320KB
stdin
3
0 0 1
stdout
HARD