#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int a;
  cin >> a;
  string k = "";
  if (a == 1) {
    cout << "I hate it";
    return 0;
  }
  for (int i = 0; i < a; i++) {
    if (i % 2 == 1) {
      k += "I love ";
      if (i == (a - 1)) {
        k += "it";
      } else
        k += "that ";
    } else {
      k += "I hate ";
      if (i == (a - 1)) {
        k += "it";
      } else
        k += "that ";
    }
  }
  cout << k;
}
