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