#include <bits/stdc++.h>
using namespace std;
const int maxn = 1010;
const int inf = 1e9;
const int mod = 1e9 + 7;
template <typename T>
inline void getint(T* _num) {
  (*_num) = 0;
  int _op = 1;
  bool _ok = 0;
  char _c;
  while (1) {
    _c = getchar();
    if (_c == '-') _op = -1;
    if (_c <= 57 && _c >= 48) {
      _ok = 1;
      (*_num) = (*_num) * 10 + _c - 48;
    } else if (_ok)
      if (_ok) {
        (*_num) *= _op;
        return;
      }
  }
}
template <typename T>
void outint(T _out) {
  if (_out >= 10) outint(_out / 10);
  putchar(_out % 10 + 48);
}
int main() {
  int n;
  getint(&n);
  printf("I hate ");
  n--;
  int i = 1;
  while (i <= n) {
    if (i <= n) printf("that I love "), i++;
    if (i <= n) printf("that I hate "), i++;
  }
  printf("it");
  return 0;
}
