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