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