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