#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  string s[2] = {"hate", "love"};
  string last;
  cin >> n;
  if (n == 1) {
    cout << "I hate it";
  } else {
    cout << "I ";
    for (int i = 0; i < n - 1; i++) {
      cout << s[i % 2] << " that I ";
    }
    n % 2 == 0 ? last = "love" : last = "hate";
    cout << last << " it";
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  solve();
  return 0;
}
