#include <bits/stdc++.h>
using namespace std;
int i, n;
string a;
int main() {
  cin >> n;
  a = a + "I hate";
  if (n == 1)
    cout << a + " it";
  else {
    for (i = 1; i < n; i++) {
      if (i % 2 != 0)
        a = a + " that I love";
      else
        a = a + " that I hate";
    }
    cout << a + " it";
  }
}
