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