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