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