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