#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, num, cnt = 1;
  scanf("%d", &num);
  for (i = 0; i < num; i++, cnt++) {
    if (cnt == 1)
      printf("I hate ");
    else if (cnt == 2) {
      printf("I love ");
      cnt = 0;
    }
    if (i != num - 1)
      printf("that ");
    else
      printf("it\n");
  }
  return 0;
}
