#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string m1 = "I hate ", m2 = " I love ";
  cin >> n;
  while (n) {
  ss:
    cout << m1;
    n--;
    if (n == 0) {
      cout << "it";
      break;
    }
    cout << "that" << m2;
    n--;
    if (n == 0) {
      cout << "it";
      break;
    } else {
      cout << "that ";
      goto ss;
    }
  }
}
