#include <cstddef>
#include <iostream>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;
int happy,nohappy;
string s;
string s1 = ":-(";
string s2 = ":-)";
int main()
{
getline(cin ,s);
size_t pos = 0;
while((pos = s.find(s2 , pos)) != string::npos)
{
happy++;
pos += s2.length();
}
pos = 0;
while((pos = s.find(s1 , pos)) != string::npos)
{
nohappy++;
pos += s1.length();
}
if(happy == 0 && nohappy == 0)
{
cout << "None" << endl;
}
else if(happy > nohappy)
{
cout << "Happy" << endl;
}
else if(happy == nohappy)
{
cout << "Just so so" << endl;
}
else if(nohappy > happy)
{
cout << "Sad" << endl;
}
}
// 64 位输出请用 printf("%lld")