#include #include #include #include #include #include #include using namespace std; typedef long long ll; const int MOD=1e9+7; int main() { int y,m,d; cin >> y >> m >> d; if(y>=1990&&y<=2018) { cout << "Heisei" << endl; } else if((y==1989&&(m>=2||d>=8))||(y==2019&&m<=4)) { cout << "Heisei" << endl; } else { cout << "No" << endl; } }