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