#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define fi first
#define se second
typedef pair<ll,ll> P;
#define Mod 1000000007
using VP = vector<P>; using VVP = vector<VP>;
using VI = vector<ll>; using VVI = vector<VI>; using VVVI = vector<VVI>;
#define INF 1ll<<59


int main(){
  ll i,j;
  ll a,b,c;
  cin>>a>>b>>c;
  ll cnt=0;
  if(a%2==1) cnt++;
  if(b%2==1) cnt++;
  if(c%2==1) cnt++;
  if(cnt>=2) cout<<"Hom"<<endl;
  else cout<<"Tem"<<endl;
  
  return 0;
}
