#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  int m = a;
  for (int i = 1; i <= a; i += 0) {
    if (i % 2 != 0 && i <= a) cout << "I hate";
    if (m == 1)
      cout << " it";
    else if (m > 1) {
      cout << " that ";
    }
    m--;
    i++;
    if (i % 2 == 0 && i <= a) cout << "I love";
    if (m == 1)
      cout << " it";
    else if (m > 1)
      cout << " that ";
    m--;
    i++;
  }
}
