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