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