#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s1 = "I hate ";
  string s2 = "I love ";
  while (n > 0) {
    cout << s1;
    n = n - 1;
    if (n == 0) {
      break;
    }
    cout << "that ";
    cout << s2;
    n = n - 1;
    if (n == 0) {
      break;
    }
    cout << "that ";
  }
  cout << "it";
  return 0;
}
