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