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