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