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