문제
풀이
#include <iostream>
#include <vector>
using namespace std;
void solve(void) {
int n; cin >> n;
vector<int> a(n);
for (int i=0; i<n; i++) cin >> a[i];
int ans = 0;
for (int i=0; i<n; i++) ans += (a[i] % 2 ? -1 : 1);
cout << (ans > 0 ? "Happy" : "Sad");
}
int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}