#include <bits/stdc++.h>
using namespace std;
long long int max1(long long int a, long long int b) { return (a > b ? a : b); }
long long int min1(long long int a, long long int b) { return (a > b ? b : a); }
long long int gcd(long long int a, long long int b) {
  if (a == 0)
    return b;
  else {
    return gcd(b % a, a);
  }
}
int main() {
  int n;
  string s1 = "I hate";
  string s2 = "I love";
  cin >> n;
  int state = 0;
  int c = 1;
  for (int i = 0; i < n; i++) {
    if (state == 0) {
      cout << s1;
      if ((n - c) >= 1) cout << " that ";
      state = 1;
      c++;
    } else if (state == 1) {
      cout << s2;
      if ((n - c) >= 1) cout << " that ";
      state = 0;
      c++;
    }
  }
  cout << " it" << endl;
  return 0;
}
