Dr. Bruce Banner hates his enemies (like others don't). As we all know, he can barely talk when he turns into the incredible Hulk. That's why he asked you to help him to express his feelings.

Hulk likes the Inception so much, and like that his feelings are complicated. They have n layers. The first layer is hate, second one is love, third one is hate and so on...

For example if n = 1, then his feeling is "I hate it" or if n = 2 it's "I hate that I love it", and if n = 3 it's "I hate that I love that I hate it" and so on.

Please help Dr. Banner.


-----Input-----

The only line of the input contains a single integer n (1 ≤ n ≤ 100) — the number of layers of love and hate.


-----Output-----

Print Dr.Banner's feeling in one line.


-----Examples-----
Input
1

Output
I hate it

Input
2

Output
I hate that I love it

Input
3

Output
I hate that I love that I hate it

Difficulty: EASY
Tags: Implementation

Starter code:

Solutions:
s = 'I hate it'
n = int(input())
flag = 0
for i in range(1, n):
	s = s[:-3]
	if flag == 0:
		s += ' that I love it'
		flag = 1
	else:
		s += ' that I hate it'
		flag = 0
print(s)


n = int(input())
t = ''
for i in range(0, n):
	if i % 2 != 0:
		t += 'I love'
	else:
		t += 'I hate'
	if i < n - 1:
		t += ' that '
t += ' it'
print(t)


a = int(input())
for i in range(a - 1):
	if i % 2 == 0:
		print('I hate that', end=' ')
	else:
		print('I love that', end=' ')
if a % 2 == 0:
	print('I love it')
else:
	print('I hate it')


n = int(input())
tab = ['I hate that', 'I love that']
s = ''
i = 0
while n > 0:
	s += tab[i % 2] + ' '
	i += 1
	n -= 1
print(s[:-5] + 'it')


x = int(input())
n = 0
lt = []
for i in range(x):
	n += 1
	if n % 2 == 1:
		lt.append('I hate')
	else:
		lt.append('I love')
	lt.append('that')
del lt[-1]
lt.append('it')
print(' '.join(lt))


layers = int(input())
counter = 1
it = ' it'
hate = 'I hate'
love = 'I love'
that = ' that '
sentence = ''
switch = False
if layers > 0:
	while True:
		if switch:
			sentence = sentence + love
		else:
			sentence = sentence + hate
		switch = switch ^ True
		if counter == layers:
			sentence = sentence + it
			break
		else:
			sentence = sentence + that
		counter += 1
print(sentence)


h = 'I hate'
l = 'I love'
n = int(input())
k = []
for i in range(1, n + 1):
	if i % 2 == 1:
		k.append(h)
	else:
		k.append(l)
print(' that '.join(k) + ' it')


n = int(input())
l1 = 'I love it '
l2 = 'I love that '
h1 = 'I hate it '
h2 = 'I hate that '
ans = ''
for i in range(n):
	i += 1
	if i == n and n % 2 == 0:
		ans += l1
	elif i == n and n % 2 != 0:
		ans += h1
	elif i % 2 == 0:
		ans += l2
	else:
		ans += h2
print(ans)


n = int(input())
a = ''
s1 = 'I hate that '
s2 = 'I love that '
la = ' it'
if n == 1:
	print('I hate it')
elif n == 2:
	print(s1 + 'I love it')
else:
	for i in range(0, n - 1):
		if i % 2 == 0:
			a += s1
		else:
			a += s2
	if n % 2 != 0:
		print(a + 'I hate it')
	else:
		print(a + 'I love it')


n = int(input())
s = ''
a = ' I hate '
b = ' I love '
s = s + a
for i in range(1, n):
	if i % 2 == 1:
		s = s + 'that' + b
	else:
		s = s + 'that' + a
print(s.lstrip() + 'it')


operations_list = []
first_line = 'I hate'
second_line = 'that I love'
third_line = 'that I hate'
n = int(input())
i = 0
while i <= n:
	operations_list.append(first_line)
	i += 1
	if i == n:
		break
	operations_list.append(second_line)
	i += 1
	if i == n:
		break
	operations_list.append(third_line)
	i += 1
	if i == n:
		break
	operations_list.append(second_line)
	i += 1
	if i == n:
		break
	operations_list.append('that')
operations_list.append('it')
print(*operations_list)


import sys
for line in sys.stdin:
	n = int(line)
	s = ''
	for i in range(n):
		if i % 2 == 0:
			s += 'I hate '
		else:
			s += 'I love '
		if i == n - 1:
			s += 'it'
		else:
			s += 'that '
	print(s)


n = int(input())
if n % 2 != 0:
	print('I hate' + (n - 1) // 2 * ' that I love that I hate' + ' it')
if n % 2 == 0:
	print('I hate' + (n - 1) // 2 * ' that I love that I hate' + ' that I love it')


n = int(input(''))
i = 0
s = int()
a = 'I hate it'
while i < n:
	b = s % 2
	if s == 0:
		d = a
	elif b == 0:
		d = a.replace('it', 'that I hate it')
		a = d
	else:
		d = a.replace('it', 'that I love it')
		a = d
	s += 1
	i += 1
print(d)


n = int(input())

def solve(i, n):
	s = 'I love' if i % 2 == 0 else 'I hate'
	if i == n:
		return s + ' it'
	else:
		return s + ' that ' + solve(i + 1, n)
print(solve(1, n))


n = int(input())
arr = ['hate', 'love'] * n
print('I', ' that I '.join(arr[:n]), 'it')


x = int(input())
s = ''
for i in range(1, x + 1):
	if i % 2 != 0:
		if i != 1:
			s = s + ' '
		s = s + 'I hate'
	else:
		s = s + ' I love'
	if i < x:
		s = s + ' that'
print(s + ' it')


a = int(input())
b = a
str = ''
while b > 0:
	if b > 1:
		if (a - b) % 2 == 0:
			str += 'I hate that '
			b -= 1
		else:
			str += 'I love that '
			b -= 1
	elif (a - b) % 2 == 0:
		str += 'I hate it '
		b -= 1
	else:
		str += 'I love it '
		b -= 1
print(str)


n = eval(input())
for i in range(1, n + 1):
	if i == n:
		if i % 2 == 0:
			print('I love it ')
		else:
			print('I hate it ')
	elif i % 2 == 0:
		print('I love that ', end='', sep='', flush=True)
	else:
		print('I hate that ', end='', sep='', flush=True)


n = int(input())
result = ''
odd_text = 'I hate'
even_text = 'I love'
special_text1 = 'that'
special_text2 = 'it'
for i in range(1, n + 1):
	if i % 2 == 1 and i != n:
		result += odd_text + ' ' + special_text1
	elif i % 2 == 0 and i != n:
		result += even_text + ' ' + special_text1
	elif i % 2 == 0:
		result += even_text + ' ' + special_text2
	else:
		result += odd_text + ' ' + special_text2
	result += ' '
print(result.strip())


n = int(input())
hate = 'I hate'
love = 'I love'
that = 'that'
s = ''
for i in range(n):
	if i % 2 == 0 and i != n - 1:
		s += hate + ' ' + that + ' '
	if i % 2 != 0 and i != n - 1:
		s += love + ' ' + that + ' '
if (n - 1) % 2 == 0:
	s += hate + ' it'
if (n - 1) % 2 != 0:
	s += love + ' it'
print(s)


n = int(input())
x = ''
for i in range(1, n + 1):
	y = 'I'
	if i % 2 == 0:
		y += ' love'
	else:
		y += ' hate'
	y += ' that '
	x += y
x = x[:-5]
x += ' it'
print(x)


c = int(input())
s = 'I hate it'
s1 = 'I love it'
s2 = 'I hate that'
s3 = 'I love that'
for i in range(1, c + 1):
	if i != c:
		if i % 2 == 0:
			print(s3, end=' ')
		else:
			print(s2, end=' ')
	elif i % 2 == 0:
		print(s1)
	else:
		print(s)


n = int(input())
a = 'I hate that'
b = 'I love that'
c = 'I hate it'
d = 'I love it'
s = ''
for i in range(1, n):
	if i % 2 != 0:
		s = s + ' ' + a
	if i % 2 == 0:
		s = s + ' ' + b
if n % 2 == 0:
	s = s + ' ' + d
else:
	s = s + ' ' + c
print(s)


s = int(input())
a = 'I hate '
b = 'I love '
c = 'that '
x = ''
for i in range(s):
	if i == 0:
		x = a
	elif i % 2 != 0:
		x = x + c + b
	elif i % 2 == 0:
		x = x + c + a
print(x + 'it')


n = int(input())
A = ['I hate that ', 'I love that ']
k = n // 2
ans = A * k
if n % 2 == 1:
	ans.append('I hate it')
	print(''.join(ans))
else:
	ans.pop()
	ans.append('I love it')
	print(''.join(ans))


num = int(input())
feel = 'I hate '
for _ in range(num - 1):
	if _ % 2 == 0:
		feel += 'that I love '
	else:
		feel += 'that I hate '
feel += 'it'
print(feel)


n = int(input())
ch = ''
i = 1
ch1 = ''
while i <= n:
	if i % 2 != 0:
		ch = ch + 'I hate that '
		i += 1
	else:
		ch = ch + 'I love that '
		i += 1
	ch1 = ch[:len(ch) - 5]
	ch1 = ch1 + 'it'
print(ch1)


def hulk(n):
	x1 = 'I hate'
	x = ' I hate '
	y = ' I love '
	z = ' it'
	w = ' that'
	if n == 1:
		c = x1 + z
		return c
	elif n == 2:
		c = x + w + y + z
		return c
	else:
		i = 0
		while i != n:
			if n % 2 != 0 and n != 1:
				d = n // 2 * (x1 + w + y + w + ' ') + x1 + z
			else:
				d = (n // 2 - 1) * (x1 + w + y + w + ' ') + x + w + y + z
			i += 1
		return d
n = int(input())
res = hulk(n)
print(res)


n = int(input())
for x in range(1, n + 1):
	if x % 2 != 0:
		print('I hate ', sep=' ', end='')
	else:
		print('I love ', sep=' ', end='')
	if n == 1:
		print('it ', sep=' ', end='')
	elif x != n:
		print('that ', sep=' ', end='')
	else:
		print('it ', sep=' ', end='')


n = int(input())
hate = 'I hate'
love = 'I love'
for i in range(n):
	if i % 2 == 0 or i == 0:
		print(hate, end=' ')
		if i == n - 1:
			print('it')
			break
		elif i < n - 1:
			print('that', end=' ')
	elif i % 2 != 0:
		print(love, end=' ')
		if i == n - 1:
			print('it')
			break
		elif i < n - 1:
			print('that', end=' ')


a = int(input())
x = 'I hate '
y = 'I love '
z = 'it'
w = 'that '
if a == 1:
	print(x + z)
elif a % 2 == 0:
	print(((x + w + y + w) * (a // 2))[:-5] + z)
else:
	print((x + w + y + w) * (a // 2) + x + z)


n = int(input())
s = 'I hate that'
s1 = 'I love that'
r = ''
for i in range(n - 1):
	if i % 2 == 0:
		r += s + ' '
	else:
		r += s1 + ' '
if n % 2 == 1:
	r += 'I hate it'
else:
	r += 'I love it'
print(r)


a = int(input())
d = ''
for i in range(1, a + 1):
	if i % 2 == 1:
		d += ' I hate'
		if i != a:
			d += ' that'
	elif i % 2 == 0:
		d += ' I love'
		if i != a:
			d += ' that'
d += ' it'
print(d)


n = int(input())
f = False
for i in range(n):
	if not f:
		print('I hate ', end='')
	else:
		print('I love ', end='')
	if i == n - 1:
		print('it')
	else:
		print('that ', end='')
	f = not f


num = int(input())
res = ''
value = 0
for i in range(num):
	if value % 2 == 0:
		if value == num - 1:
			res += 'I hate it'
		else:
			res += 'I hate that '
	elif value == num - 1:
		res += 'I love it'
	else:
		res += 'I love that '
	value += 1
print(res)


def print_s(s):
	m = 'I hate it'
	n = 'I love it'
	o = 'I hate that'
	p = 'I love that'
	if s % 2 == 0:
		for i in range(0, s // 2 - 1):
			print(o + ' ' + p, end=' ')
		print(o + ' ' + n)
	else:
		for i in range(0, s // 2):
			print(o + ' ' + p, end=' ')
		print(m)
s = int(input())
m = 'I hate it'
n = 'I love it'
o = 'I hate that'
p = 'I love that'
if s == 1:
	print(m)
elif s == 2:
	print(o + ' ' + n)
else:
	print_s(s)


n = int(input())
A = ['I hate ']
if n > 1:
	for i in range(1, n):
		if i % 2 != 0:
			A.append('that I love ')
		else:
			A.append('that I hate ')
A.append('it')
print(''.join(A))


n = int(input())
l = []
for i in range(1, n):
	if i % 2 != 0:
		l.append('I hate that')
	else:
		l.append('I love that')
if n % 2 == 0:
	l.append('I love it')
else:
	l.append('I hate it')
print(*l, sep=' ')


l = int(input())
print('I hate ', end='')
for f in range(l - 1):
	if f % 2 == 0:
		print('that I love ', end='')
	else:
		print('that I hate ', end='')
print('it')


q = int(input())
a = ['hate ', 'love ']
ans = 'I hate '
for i in range(1, q):
	ans += 'that I '
	ans += a[i % 2]
ans += 'it'
print(ans)


n = int(input())
p = 0
for i in range(1, n + 1):
	if i == 1:
		p = 'I hate it'
	elif i % 2 == 0:
		p = p.split()
		d = 'that I love it'
		d = d.split()
		p = p[0:-1]
		p = p + d
		p = ' '.join(p)
	else:
		p = p.split()
		f = 'that I hate it'
		f = f.split()
		p = p[0:-1]
		p = p + f
		p = ' '.join(p)
print(p)


def hulk():
	n = int(input())
	feelings = ['I hate ', 'I love ']
	var = 0
	risultato = ''
	while n > 1:
		if var == 0:
			risultato += feelings[var] + 'that '
			var = 1
		else:
			risultato += feelings[var] + 'that '
			var = 0
		n -= 1
	risultato += feelings[var] + 'it'
	print(risultato)
hulk()


n = int(input())
l = ['I hate', 'I love'] * n
print(' that '.join(l[:n]), 'it')


n = int(input())
hate_end = 'I hate it '
love_end = 'I love it '
hate = 'I hate that '
love = 'I love that '
s = ''
for i in range(0, n - 1):
	if i % 2 == 1:
		s += love
	elif i % 2 == 0:
		s += hate
if n % 2 == 0:
	s += love_end
else:
	s += hate_end
print(s)


n = int(input())
x = ['I hate']
q = 'that I love'
w = 'that I hate'
if n > 1:
	for i in range(2, n + 1):
		if i % 2 == 0:
			x.append(q)
		else:
			x.append(w)
print(*x, 'it')


def main(n):
	ht_it = 'I hate'
	lv_it = 'I love'
	k = ''
	for i in range(0, n - 1):
		if i % 2 == 0:
			k += f'{ht_it} that '
		else:
			k += f'{lv_it} that '
	if n % 2 == 0:
		return f'{k} {lv_it} it'.strip(' ')
	return f'{k} {ht_it} it'.strip(' ')
n = int(input().strip(' '))
print(main(n))


n = int(input())
l = ['I hate ']
feel = ['that I love ', 'that I hate ']
for i in range(n - 1):
	l.append(feel[i % 2])
l.append('it')
for i in range(len(l)):
	print(l[i], end='')
print()


from sys import stdin
_input = stdin.readline
_int = int

def solution():
	n = _int(_input())
	if n == 1:
		print('I hate it')
	elif n == 2:
		print('I hate that I love it')
	else:
		s = 'I hate that I love that ' * (n // 2)
		if n % 2 == 0:
			print(s[:-5] + 'it')
		else:
			print(s + 'I hate it')
solution()


L = []
s = int(input())
odd = 'I hate it'
even = 'I love it'
for i in range(s):
	if len(L) < s:
		L.append('I hate that')
		L.append('I love that')
if s % 2 == 0:
	L[-1] = even
if s % 2 != 0:
	L.pop()
	L[-1] = odd
print(' '.join(L))


print(' that '.join(map(lambda x: 'I love' if x % 2 else 'I hate', range(0, int(input())))), end=' it')


n = input()
n = int(n)
a = 'I hate '
while n > 0:
	n = n - 1
	if n != 0:
		a = a + 'that I love '
		n = n - 1
	if n != 0:
		a = a + 'that I hate '
a = a + 'it'
print(a)


n = int(input())
i = n
if n == 1:
	print('I hate it')
else:
	a = 'I hate that'
	n -= 1
	while n > 0:
		if i % 2 == 0 and n == 1:
			a = a + ' I love it'
		elif i % 2 != 0 and n == 1:
			a = a + ' I hate it'
		elif n != 1 and (i - n) % 2 == 0:
			a += ' I hate that'
		elif n != 1 and (i - n) % 2 != 0:
			a += ' I love that'
		n -= 1
	print(a)


a = int(input())
len = a + 1
for i in range(1, len):
	if i % 2 == 0 and i != a:
		print('I love that ', end='')
	elif i % 2 == 0 and i == a:
		print('I love it ', end='')
	elif i % 2 != 0 and i != a:
		print('I hate that ', end='')
	elif i % 2 != 0 and i == a:
		print('I hate it ', end='')
	else:
		pass


n = int(input())
t = ['I hate', 'I love']
(i, s, c, e) = (0, '', ' that ', ' it')
while i < n:
	s += t[i % 2]
	i += 1
	s += c if i < n else e
print(s)


N = int(input())
s1 = ['I', 'hate']
s2 = ['I', 'love']
ans = []
for i in range(N):
	if i % 2 == 0:
		ans += s1
	else:
		ans += s2
	if i != N - 1:
		ans += ['that']
	else:
		ans += ['it']
print(' '.join(ans))


def hulk():
	times = input()
	output = 'I hate'
	if int(times) == 1:
		print(output + ' it')
		return
	while True:
		for i in range(int(times) - 1):
			if i == 0:
				output += ' that I love'
				check = True
			elif i == 1:
				output += ' that I hate'
				check = True
			elif i == 2:
				times = int(times) - 2
				check = False
				break
		if int(times) <= 3 and check:
			break
	output += ' it'
	print(output)
	return
hulk()


layers = int(input())
result = ''
for i in range(layers - 1):
	if i % 2 == 0:
		result += 'I hate '
	else:
		result += 'I love '
	result += 'that '
if layers % 2 == 0:
	result += 'I love it'
else:
	result += 'I hate it'
print(result)


n = int(input())
s1 = 'I hate '
s2 = 'I love '
s3 = 'that'
s4 = 'it'
s5 = ''
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
else:
	for i in range(n - 1):
		print(s5.join(s1 + s3) if i % 2 == 0 else s5.join(s2 + s3), end=' ')
	print(s5.join(s2 + s4) if n % 2 == 0 else s5.join(s1 + s4))


n = int(input())
sh = str()
if n == 1:
	print('I hate it')
elif n % 2 == 0:
	for i in range(n // 2):
		sh = sh + 'I hate . I love . '
	sh = sh.strip('. ')
	sh = sh.replace('.', 'that')
	sh = sh + ' it'
	print(sh)
else:
	for i in range(n // 2):
		sh = sh + 'I hate . I love . '
	sh = sh.strip('. ')
	sh = sh.replace('.', 'that')
	sh = sh + ' that I hate it'
	print(sh)


n = int(input())
word = []
for i in range(1, n + 1):
	if i % 2 == 1:
		word.append('I hate')
	else:
		word.append('I love')
ans = ' that '.join(word)
print(ans + ' it')


n = int(input())
a = ['I hate', 'I love'] * n
print(' that '.join(a[None:n]), 'it')


n = int(input())
s = ('I hate', 'I love') * n
print(' that '.join(s[:n]), ' it ')


n = int(input())
q = 'I hate it '
p = 'I love it '
string1 = ''
for i in range(1, n + 1):
	if i % 2 != 0:
		string1 = string1 + q
	else:
		string1 = string1 + p
string1 = string1.replace('it', 'that', n - 1)
print(string1.strip())


n = int(input())
while n >= 0:
	if n == 1:
		print('I hate it', end=' ')
		break
	if n == 2:
		print('I hate that I love it', end=' ')
		break
	print('I hate that', end=' ')
	print('I love that', end=' ')
	n = n - 2
	if n == 1:
		print('I hate it', end=' ')
		break
	if n == 2:
		print('I hate that I love it', end=' ')
		break


inp = int(input())
s1 = 'I hate that '
s2 = 'I love that '
s3 = 'I love it'
s4 = 'I hate it'
ret = []
for i in range(1, inp):
	if i % 2 == 1:
		ret.append(s1)
	else:
		ret.append(s2)
if inp % 2 == 0:
	ret.append(s3)
else:
	ret.append(s4)
print(''.join(ret))


e1 = 'I hate that'
e2 = 'I love that'
n = int(input())
li = ['null'] * n
for i in range(n):
	if i % 2 == 0:
		li[i] = e1
	else:
		li[i] = e2
li.pop()
if n == 1:
	print('I hate it')
elif n % 2 == 0:
	print(' '.join(li) + ' I love it')
else:
	print(' '.join(li) + ' I hate it')


n = int(input())
if n == 1:
	print('I hate it')
elif n % 2 == 0:
	x = 'I hate that I love that '
	print((x * (n // 2))[:-5] + 'it')
else:
	n = n - 1
	x = 'I hate that I love that '
	y = x * (n // 2) + 'I hate it'
	print(y)


n = int(input())
t = ['I hate', 'I love'] * n
print(' that '.join(t[:n]) + ' it')


def main():
	n = int(input())
	print('I', end=' ')
	for i in range(1, n):
		if i % 2 == 1:
			print('hate that I', end=' ')
		else:
			print('love that I', end=' ')
	if n % 2 == 1:
		print('hate it')
	else:
		print('love it')
main()


n = int(input())
cnt = n // 2
s = cnt * 'I hate that I love that '
if n % 2 == 0:
	s = s[:-5] + 'it'
else:
	s += 'I hate it'
print(s)


layers_num = int(input())
love = 'I love'
hatred = 'I hate'
it = 'it'
while True:
	if layers_num == 1:
		print(hatred + ' ' + it)
		break
	elif layers_num == 2:
		print(hatred + ' that ' + love + ' ' + it)
		break
	elif layers_num % 2 == 0:
		res = 'I hate that I love that ' * int(layers_num / 2) + it
		res = list(res.split(' '))
		del res[-2]
		res = ' '.join(res)
		print(res)
		break
	elif layers_num % 2 != 0:
		res = 'I hate that I love that ' * int(layers_num / 2) + hatred + ' ' + it
		res = list(res.split(' '))
		res = ' '.join(res)
		print(res)
		break


n = int(input())
odd = 'I hate that'
even = 'I love that'
last_odd = 'I hate it'
last_even = 'I love it'
op = ''
for i in range(1, n + 1):
	if i == n:
		if i % 2 == 0:
			op += last_even
		else:
			op += last_odd
	elif i % 2 == 0:
		op += even + ' '
	else:
		op += odd + ' '
print(op)


n = int(input())
a = 'I hate'
b = 'it'
c = ' '
d = 'that I love'
e = 'that I hate'
for i in range(n):
	if i == 0:
		a = a
	elif i % 2 != 0:
		a = a + c + d
	else:
		a = a + c + e
print(a + c + b)


def hulk(n):
	feeling = 'I hate'
	while n != 0:
		n = n - 1
		if n != 0:
			feeling = feeling + ' that I love'
			n = n - 1
		if n != 0:
			feeling = feeling + ' that I hate'
	feeling = feeling + ' it'
	return feeling
n = int(input())
result = hulk(n)
print(result)


n = int(input())
ans = 'I hate'
x = 1
while x < n:
	x += 1
	ans += ' that I ' + ['love', 'hate'][x & 1]
ans += ' it'
print(ans)


n = int(input())
halk = 2
y = 'I hate'
y = 'I hate'
while halk < n + 1:
	if halk % 2 == 0:
		y += ' that I love'
	if halk % 2 != 0:
		y += ' that I hate'
	halk += 1
y += ' it'
print(y)


n = int(input())
hate = 'I hate '
love = 'I love '
that = 'that '
it = 'it'
feeling = ''
if n == 1:
	feeling += str(hate + it)
else:
	for i in range(n):
		if i % 2 == 0:
			if i != n - 1:
				feeling += str(hate + that)
			else:
				feeling += str(hate + it)
		elif i != n - 1:
			feeling += str(love + that)
		else:
			feeling += str(love + it)
print(feeling)


n = int(input())
Ih = 'I hate'
Il = 'I love'
mas = []
for i in range(n):
	if i % 2 == 0:
		mas.append(Ih)
	else:
		mas.append(Il)
mas = ' that '.join(mas)
print(mas + ' it')


n = int(input())
l = 'I love'
h = 'I hate'
t = 'that'
it = 'it'
check = 0
for i in range(n):
	if check == 0:
		print(h, end=' ')
		check += 1
	elif check == 1:
		print(l, end=' ')
		check -= 1
	if i == n - 1:
		print(it)
	else:
		print(t, end=' ')


n = int(input())
saida = ''
alt = True
for i in range(1, n + 1):
	if i == n:
		if alt:
			saida += 'I hate it'
		else:
			saida += 'I love it'
	elif alt:
		saida += 'I hate that '
	else:
		saida += 'I love that '
	alt = not alt
print(saida)


n = int(0)
flag = False
n = int(input())
while int(n) > int(0):
	if flag == False:
		print('I hate', end=' ')
		flag = True
	else:
		print('I love', end=' ')
		flag = False
	n = n - 1
	if n != 0:
		print('that', end=' ')
print('it')


n = int(input())
s = ''
a = True
while n > 0:
	if a == False:
		s += 'I love'
	else:
		s += 'I hate'
	if n - 1 == 0:
		s += ' it '
	else:
		s += ' that '
	n -= 1
	a = not a
print(s)


n = int(input())
if n == 1:
	print('I hate it')
else:
	s = []
	while n > 1:
		if n % 2 != 0:
			s.append('that I hate ')
			n = n - 1
		else:
			s.append('that I love ')
			n = n - 1
	sn = list(reversed(s))
	snn = ''.join(sn)
	print('I hate {}it'.format(snn))


a = int(input())
b = ['I hate it', 'I love it']
c = ['I hate that', 'I love that']
for i in range(0, a - 1, 1):
	print(c[i % 2], end=' ')
print(b[(a + 1) % 2])


n = int(input())
s = (n + 1) // 2 * 'I hate that I love that '
if n % 2 == 0:
	print(s[:-5] + 'it')
else:
	print(s[:-17] + 'it')


n = int(input(''))
e = 'I hate '
f = 'I love '
for i in range(1, n + 1):
	if i % 2 == 1:
		print(e, end='')
		if i != n:
			print('that ', end='')
	if i % 2 == 0:
		print(f, end='')
		if i != n:
			print('that ', end='')
print('it')


n = int(input())
s = str('')
for i in range(n):
	if i % 2:
		s = s + 'I love '
	else:
		s = s + 'I hate '
	if i == n - 1:
		s = s + 'it'
	else:
		s = s + 'that '
print(s)


number = input()
number = int(number) - 1
str1 = 'I hate'
n = number // 2
str1 += ' that I love that I hate' * n
if number % 2 == 1:
	str1 += ' that I love'
str1 += ' it'
print(str1)


n = int(input())
feelings = []
for i in range(n):
	if i % 2 == 0:
		feelings.append('I hate')
	else:
		feelings.append('I love')
result = ' that '.join(feelings)
print(f'{result} it')


x = int(input())
stroka = ''
for y in range(x):
	if (y + 1) % 2 == 0:
		stroka += 'I love '
	else:
		stroka += 'I hate '
	if y == x - 1:
		stroka += 'it'
	else:
		stroka += 'that '
print(stroka)


x = int(input())
evnstr = 'I love'
oddstr = 'I hate'
output = ''
for i in range(0, x):
	if i == x - 1 and i % 2 == 1:
		output += evnstr + ' it'
		break
	elif i == x - 1 and i % 2 == 0:
		output += oddstr + ' it'
		break
	if i % 2 == 1:
		output += evnstr + ' that '
	else:
		output += oddstr + ' that '
print(output)


n = int(input())
ih = 'I hate '
th = 'I hate that I love'
t = ' it'
s = ''
if n == 1:
	print(ih + t)
if n == 2:
	print(th + t)
if n >= 3:
	if n % 2 == 0:
		n = n // 2
		while n > 0:
			s = s + th
			n = n - 1
			if n > 0:
				s = s + ' that '
		print(s + t)
	else:
		n = n - 1
		n = n // 2
		while n > 0:
			s = s + th
			n = n - 1
			if n >= 0:
				s = s + ' that '
		print(s + ih + 'it')


n = int(input(''))
f = 'I hate that'
g = 'I love that'
h = 'I hate it'
j = 'I love it'
for i in range(1, n):
	if i % 2 != 0:
		print(f, end=' ')
	else:
		print(g, end=' ')
if n % 2 != 0:
	print(h, end=' ')
else:
	print(j, end=' ')


k = ''
b = int(input())
for i in range(1, b + 1):
	if i % 2 != 0:
		k += 'I hate'
	else:
		k += 'I love'
	if b > 1 and i != b:
		k += ' that '
	else:
		k += ' it'
print(k)


l = [' I love', ' I hate']
n = int(input())
str = ''
for i in range(1, n + 1):
	str += l[i % 2] + ' that'
print(str[:len(str) - 5] + ' it')


n = int(input())
a = 'I hate'
b = 'I love'
ans = ''
while n:
	if n > 1:
		ans = ans + 'I hate that I love '
		n = n - 2
	else:
		ans = ans + 'I hate '
		n = n - 1
	if n > 0:
		ans = ans + 'that '
print(ans + 'it')


a = int(input())
b = 'I hate'
c = 'I love'
d = 'that'
e = 'it'
for i in range(1, a + 1):
	if i % 2 == 1:
		if i == 1:
			print(b, end=' ')
		else:
			print(d + ' ' + b, end=' ')
	if i % 2 == 0:
		print(d + ' ' + c, end=' ')
	if i == a:
		print(e)


n = int(input())
s1 = ' I hate it'
s2 = ' I love it'
s3 = ' I hate that'
s4 = ' I love that'
fin = ''
if n == 1:
	print(s1[1:])
else:
	for i in range(0, n - 1):
		if i % 2 == 1:
			fin = fin + s4
		else:
			fin = fin + s3
	if n % 2 == 1:
		fin = fin + s1
	else:
		fin = fin + s2
	print(fin[1:])


n = int(input())
start = 'I hate it'
even = 'that I love it'
uneven = 'that I hate it'
if n == 1:
	print('I hate it')
else:
	for i in range(1, n):
		if i % 2 == 1:
			start = start[:-2] + even
		else:
			start = start[:-2] + uneven
	print(start)


n = int(input())
k = 'I hate'
for q in range(1, n):
	if q < n:
		if q % 2 == 1:
			k += ' that I love'
		else:
			k += ' that I hate'
k += ' it'
print(k)


n = int(input())
a = []
a_h = 'I hate'
a_l = 'I love'
for i in range(n):
	if i % 2 == 0:
		a.append(a_h)
	else:
		a.append(a_l)
	if i != n - 1:
		a.append('that')
a.append('it')
for i in range(len(a)):
	print(a[i], end=' ')


n = int(input())
hate = 'I hate that'
love = 'I love that'
hateend = 'I hate it'
loveend = 'I love it'
for i in range(n - 1):
	if i % 2 != 0:
		print(love, end=' ')
	else:
		print(hate, end=' ')
if n % 2 != 0:
	print(hateend)
else:
	print(loveend)


def main():
	x = int(input())
	msg = ''
	hate = True
	while x > 0:
		if hate:
			msg += 'I hate that '
		else:
			msg += 'I love that '
		hate = not hate
		x -= 1
	msg = msg[:-5]
	msg += 'it'
	print(msg)
main()


n = int(input())
m = ['I hate', 'I love']
s = ''
for i in range(1, n + 1):
	if i % 2 == 1:
		s += m[0] + ' that '
	elif i % 2 == 0:
		s += m[1] + ' that '
s = s[0:-5]
s += 'it'
print(s)


n = int(input())
li = []
li2 = []
li3 = []
for i in range(1, n + 1):
	if i % 2 == 1:
		li.append('I hate')
	else:
		li.append('I love')
for i in range(n - 1):
	li2.append(' that ')
li2.append(' it')
for i in range(n):
	li3.append(li[i])
	li3.append(li2[i])
j = ''.join(li3)
print(j)


n = int(input())
a = str('')
for i in range(n):
	if i % 2 != 0 and i != n and (n != 1):
		a = a + ' I hate that'
	if i % 2 == 0 and i != 0 and (i != n):
		a = a + ' I love that'
if n % 2 != 0:
	a = a + ' I hate it'
else:
	a = a + ' I love it'
if n == 1:
	a = 'I hate it'
print(a.lstrip())


n = int(input())
ans = 'I hate'
for i in range(n - 1):
	if i & 1 ^ 1:
		ans += ' that I love'
	else:
		ans += ' that I hate'
ans += ' it'
print(ans)


feelings = ['I hate', 'I love']
n = int(input())
i = 0
ans = ''
while i < n:
	if len(ans) != 0:
		ans = ans + ' that '
	f = i % 2
	ans = ans + feelings[f]
	i = i + 1
ans = ans + ' it'
print(ans)


n = int(input())
layer1 = 'I hate'
split = 'that'
layer2 = 'I love'
t = layer1
if n > 1:
	contador = n
	while 1:
		if n % 2 == 0:
			t += ' that ' + layer2
			contador -= 2
			if contador > 0:
				t += ' that ' + layer1
				continue
			else:
				break
		else:
			contador -= 2
			if contador > 0:
				t += ' that ' + layer2
				t += ' that ' + layer1
				continue
			else:
				break
print(t + ' it')


a = int(input())
b1 = 'I hate it '
b2 = 'I love it '
b3 = 'I hate that '
b4 = 'I love that '
if a == 1:
	print(b1)
	exit()
for i in range(a - 1):
	if i % 2 == 0:
		print(b3, end='')
	else:
		print(b4, end=' ')
if a % 2 == 0:
	print(b2)
else:
	print(b1)


n = int(input())
s = 1
while s != n:
	s += 1
	if s % 2 == 0:
		print('I hate that', end=' ')
	else:
		print('I love that', end=' ')
if n % 2 == 1:
	print('I hate it', end=' ')
else:
	print('I love it', end=' ')


def notfunc(num):
	if num == 0:
		return 1
	else:
		return 0
n = int(input())
case = 0
cases = ['I hate that ', 'I love that ', 'I hate it', 'I love it']
for i in range(n, 0, -1):
	if i == 1:
		print(cases[case + 2] + '')
	else:
		print(cases[case], end='')
	case = notfunc(case)


n = int(input())
res = 'I hate that '
for i in range(2, n + 1):
	if i % 2 == 0:
		res += 'I love that '
	else:
		res += 'I hate that '
res2 = res[:-5] + 'it'
print(res2)


h = int(input())
print('I hate ', end='')
for retry in range(h - 1):
	if retry % 2 == 0:
		print('that I love ', end='')
	else:
		print('that I hate ', end='')
print('it')


n = int(input())
s = 'I hate it'
t = 'I love it'
p = 'I hate that '
q = 'I love that '
if n % 2 == 0:
	ans = (p + q) * ((n - 1) // 2) + p + t
	print(ans)
else:
	ans = (p + q) * (n // 2) + s
	print(ans)


from __future__ import print_function
hate = 'I hate'
love = 'I love'
that = 'that'
it = 'it'
n = int(input())
if n == 1:
	print('I hate it')
else:
	for i in range(n):
		if i % 2 == 0:
			print(hate, end=' ')
			if i < n - 1:
				print(that, end=' ')
		else:
			print(love, end=' ')
			if i < n - 1:
				print(that, end=' ')
	print(it)


n = int(input())
for i in range(1, n + 1):
	if i == n and i % 2 != 0:
		print('I hate it')
	elif i == n and i % 2 == 0:
		print('I love it')
	elif i % 2 == 0:
		print('I love that', end=' ')
	else:
		print('I hate that', end=' ')


i = int(input())
n = 1
while n <= i:
	if i == n:
		if n % 2 == 1:
			print('I hate it')
		if n % 2 == 0:
			print('I love it')
	elif n % 2 == 1:
		print('I hate that ', end='')
	elif n % 2 == 0:
		print('I love that ', end='')
	n = n + 1


n = int(input())
print(''.join([''.join(list('II  lhoavtee  iitt  ')[j + 1 & 1:20:2]) for j in range(n)]).replace('it', 'that', n - 1), sep='')


inp = int(input())
l = list()
for i in range(inp):
	if i % 2 == 0 and i < inp - 1:
		l.append('I hate that ')
	elif i % 2 != 0 and i < inp - 1:
		l.append('I love that ')
	elif i % 2 != 0 and i == inp - 1:
		l.append('I love it')
	else:
		l.append('I hate it')
print(''.join(l))


n = int(input())
options = ['I hate ', 'I love ']
for i in range(1, n + 1):
	if i % 2 == 0:
		baseline = options[1]
	else:
		baseline = options[0]
	if i == n:
		baseline += 'it'
	else:
		baseline += 'that'
	print(baseline, end=' ')


n = int(input())
if n == 1:
	print('I hate it')
	exit(0)
if n == 2:
	print('I hate that I love it')
	exit(0)
r = 'I hate that I love that ' * ((n - 1) // 2)
if n % 2 == 1:
	r += 'I hate it'
else:
	r += 'I hate that I love it'
print(r)


t = int(input())
hate = 'hate'
love = 'love'
ans = ''
flipper = [hate, love]
index = 0
while t > 0:
	if t == 1:
		ans += 'I ' + flipper[index] + ' it'
		break
	ans += 'I ' + flipper[index] + ' that '
	index = 1 - index
	t -= 1
print(ans)


n = int(input())
(a, b, c) = ('I hate', 'I love', ' that ')
if n % 2 == 1:
	print((a + c + b + c) * (n // 2) + a + ' it')
else:
	print((a + c + b + c) * (n // 2 - 1) + a + c + b + ' it')


n = int(input())
s1 = 'I hate '
s2 = 'I love '
b = []
if n == 1:
	print('I hate it')
else:
	b = []
	for h in range(n // 2):
		b.append(s1)
		b.append(s2)
	if n % 2 == 1:
		b.append(s1)
	s3 = 'that '.join(b)
	s3 = s3 + 'it'
	print(s3)


n = int(input())
a = ''
for i in range(n):
	a += ['I hate that ', 'I love that '][i % 2 != 0]
print(a[:-5] + 'it')


n = int(input())
a = 'I hate it'
cb = 'I hate that I love it'
cd = 'I hate that I love that '
if n == 1:
	print(a)
elif n == 2:
	print(cb)
elif n % 2 == 0:
	print(cd * ((n - 2) // 2) + cb)
else:
	print(cd * ((n - 1) // 2) + a)


x = input('')
x = int(x)
hate = ' I hate it'
love = ' I love it'
lovethat = ' I love that'
hatethat = ' I hate that'
counter = 0
sentence = ''
if x == 1:
	print('I hate it')
elif x % 2 == 0:
	while counter < x - 1:
		if counter % 2 == 0:
			sentence += hatethat
		else:
			sentence += lovethat
		counter += 1
	sentence += love
else:
	while counter < x - 1:
		if counter % 2 == 0:
			sentence += hatethat
		else:
			sentence += lovethat
		counter += 1
	sentence += hate
print(sentence)


n = int(input())
first = True
for i in range(n):
	if first:
		s = 'I hate it'
		first = False
	elif i % 2 != 0:
		s = s.replace('it', '')
		s += 'that I love it'
	else:
		s = s.replace('it', '')
		s += 'that I hate it'
print(s.strip())


n = int(input())
hate = 'I hate it'
love = 'I love it'

def compute(level, result):
	if level == n:
		return result
	elif level % 2 == 1:
		return compute(level + 1, result.replace(' it', ' that ' + love))
	else:
		return compute(level + 1, result.replace(' it', ' that ' + hate))
print(compute(1, 'I hate it'))


string = ''
for i in range(int(input())):
	if i % 2 == 0:
		string += 'I hate that '
	else:
		string += 'I love that '
print(string[0:-5] + 'it')


num = int(input())
print(('I hate that I love that ' * (num // 2))[:-5 if not num % 2 else None] + ('I hate it' if num % 2 else 'it'))


even = 'I love'
odd = 'I hate'
mid = 'that'
end = 'it'
result = ''
n = int(input().strip())
for i in range(1, n + 1):
	if i % 2 == 0:
		result += even + ' '
	else:
		result += odd + ' '
	if i == n:
		result += end + ' '
	else:
		result += mid + ' '
print(result)


import sys
input = sys.stdin.readline

def main():
	n = int(input())
	odd_str = 'I hate it'
	even_str = 'I love it'
	final_str = ''
	for i in range(n):
		if (i + 1) % 2 == 0 and final_str != '':
			final_str = final_str.replace('it', 'that ' + even_str)
		if (i + 1) % 2 != 0 and final_str != '':
			final_str = final_str.replace('it', 'that ' + odd_str)
		if final_str == '':
			final_str = odd_str
	print(final_str)
main()


import sys
n = int(sys.stdin.readline().split()[0])
hate = 'I hate'
love = 'I love'
result = ''
i = 0
while i < n:
	if i % 2 == 0:
		if i == 0:
			result += hate
		else:
			result += ' that ' + hate
	else:
		result += ' that ' + love
	i += 1
result += ' it'
print(result)


n = int(input())
s = 'I hate'
for i in range(1, n):
	s += [' that I hate', ' that I love'][i % 2 == 1]
s += ' it'
print(s)


n = int(input())
a1 = 'I hate that '
a2 = 'I love that '
f1 = 'I love it'
f2 = 'I hate it'
ans = ''
for i in range(1, n + 1):
	if i == n:
		if i % 2 == 1:
			ans += f2
		else:
			ans += f1
		break
	elif i % 2 == 1:
		ans += a1
	else:
		ans += a2
print(ans)


n = int(input())
s1 = 'I hate that '
s2 = 'I love that '
if n % 2 != 0:
	print((s1 + s2) * ((n - 1) // 2) + 'I hate it')
else:
	s = (s1 + s2) * (n // 2)
	print(s[:-5] + 'it')


n = int(input())
h = 'I hate '
l = 'I love '
t = 'that '
res = ''
x = 0
while n - 1 != x:
	x += 1
	if x % 2 != 0:
		res += h + t
	else:
		res += l + t
if n % 2 == 0:
	res += l + 'it'
else:
	res += h + 'it'
print(res)


x = int(input())
s = ''
t = 'I hate it'
p = 'I love it'
if x == 1:
	print(t)
else:
	for i in range(1, x + 1):
		if i == 1:
			s = s + t
		elif i % 2 == 0:
			s = s.replace('it', 'that') + ' ' + p
		elif i % 2 != 0:
			s = s.replace('it', 'that') + ' ' + t
print(s)


from math import *
x = input()
x = int(x)
s = ''
for i in range(x):
	if i < x - 1 and i % 2 == 0:
		s = s + 'I hate that '
	elif i < x - 1 and i % 2 == 1:
		s = s + 'I love that '
	elif i == x - 1 and i % 2 == 0:
		s = s + 'I hate it'
	else:
		s = s + 'I love it'
print(s)


n = int(input().strip())
res = []
for i in range(n):
	res.append('I hate')
for i in range(1, len(res), 2):
	res[i] = 'I love'
print(' that '.join(res) + ' it')


x = int(input())
answer = 'I hate'
for n in range(0, x - 1):
	if n % 2 == 0:
		answer += ' that I love'
	else:
		answer += ' that I hate'
answer += ' it'
print(answer)


r = ['I hate' if i % 2 == 0 else 'I love' for i in range(int(input()))]
print(' that '.join(r) + ' it')


args = input()
a = int(args)
result = ''
i = 1
while i < a:
	if i % 2 == 0:
		result += 'I love that '
	else:
		result += 'I hate that '
	i += 1
if a % 2 == 1:
	result += 'I hate it'
else:
	result += 'I love it'
print(result)


import sys
n = int(input())
hate = 'I hate'
love = 'I love'
output = ''
for i in range(n):
	if i >= 1:
		output = output + ' that '
	if i % 2:
		output = output + love
	else:
		output = output + hate
output = output + ' it'
print(output)


feeling = 'I hate it'
parity = 0
n = int(input())
while n > 1:
	if parity == 0:
		feeling = feeling[:len(feeling) - 3] + ' that I love it'
		parity = 1
	else:
		feeling = feeling[:len(feeling) - 3] + ' that I hate it'
		parity = 0
	n -= 1
print(feeling)


def solve(n):
	odd_phrase = 'I hate'
	even_phrase = 'I love'
	connector = ' that '
	finisher = ' it'
	result = odd_phrase
	for i in range(2, n + 1):
		result += connector
		if i % 2 == 0:
			result += even_phrase
		else:
			result += odd_phrase
	result += finisher
	return result
n = int(input())
print(solve(n))


n = int(input())
hate = 'that I hate'
love = 'that I love'
out = 'I hate '
add = ''
if n >= 4:
	add = (love + ' ' + hate + ' ') * (n // 2 - 1)
	if n % 2 == 0:
		add += love + ' '
	else:
		add += love + ' ' + hate + ' '
	print(out + add + 'it')
elif n == 1:
	print(out + 'it')
elif n == 2:
	print(out + love + ' it')
else:
	print(out + love + ' ' + hate + ' it')


layers = int(input())
placeholderString = 'I {place} '
prefixString = []
last = ''
while layers > 0:
	if last == 'hate':
		prefixString.append('I love')
		last = 'love'
	else:
		prefixString.append('I hate')
		last = 'hate'
	layers -= 1
print(' that '.join((words for words in prefixString)) + ' it')


n = int(input())
count = 1
if n == 1:
	print('I hate it ')
if n > 1:
	while count < n:
		if count % 2 != 0:
			print('I hate that ', end='')
		elif count % 2 == 0:
			print('I love that ', end='')
		count += 1
	if count % 2 != 0:
		print('I hate it ', end='')
	else:
		print('I love it ', end='')


n = int(input())

def banner(n):
	if n == 1:
		return ''
	elif n % 2 == 0:
		return banner(n - 1) + 'that I love '
	elif n % 2 == 1:
		return banner(n - 1) + 'that I hate '
string = 'I hate ' + banner(n) + 'it'
print(string)


numLayer = int(input())
finalString = ''
for i in range(0, numLayer):
	if finalString == '':
		finalString += 'I hate it'
	elif finalString.endswith('love it'):
		finalString = finalString[:-2]
		finalString += 'that I hate it'
	elif finalString.endswith('hate it'):
		finalString = finalString[:-2]
		finalString += 'that I love it'
print(finalString)


a = int(input())
str1 = ''
if a % 2 == 1:
	if a == 1:
		print('I hate it')
	if a > 1:
		b = a // 2
		str1 = 'I hate that I love that ' * b
		str1 = str1 + 'I hate it'
if a % 2 == 0:
	if a == 2:
		print('I hate that I love it')
	if a > 2:
		c = a / 2 - 1
		str1 = 'I hate that I love that ' * int(c)
		str1 = str1 + 'I hate that I love it'
print(str1)


n = int(input())
th = 'that'
it = 'it'
hate = 'I hate that '
luv = 'I love that '
ans = ''
for i in range(n - 1):
	if i % 2 == 0:
		ans = ans + hate
	else:
		ans = ans + luv
if n % 2 == 0:
	ans = ans + 'I love it'
else:
	ans = ans + 'I hate it'
print(ans)


a = input()
x = 'I hate'
y = 'I love'
s = ' that '
e = ' it'
a = int(a)
a -= 1
b = 0
r = 'I hate'
while a > 0:
	if b == 0:
		r += s
		r += y
		b = 1
	else:
		r += s
		r += x
		b = 0
	a -= 1
r += e
print(r)


def chaine():
	n = int(input())
	ch1 = ' I hate that '
	ch2 = ' I hate that I love that'
	sh = ''
	if n == 1:
		print('I hate it')
	elif n % 2 == 0:
		for i in range(n // 2 - 1):
			sh += ch2
		k = sh + ch1[:7] + ' that I love it'
		print(k)
	else:
		for j in range(n // 2):
			sh += ch2
		k = sh + ch1[:7] + ' it'
		print(k)
chaine()


n = int(input())
odd = 'I hate'
last = ' it'
even = 'I love'
if n == 1:
	result = odd + last
else:
	result = odd + ' that'
	for i in range(2, n + 1):
		if i % 2 == 0 and i == n:
			result += ' I love it'
		elif i % 2 == 0:
			result += ' I love that'
		elif i % 2 == 1 and i == n:
			result += ' I hate it'
		else:
			result += ' I hate that'
print(result)


n = int(input())
j = 0
sen = ''
while j < n:
	if j % 2 == 0:
		sen += 'I hate '
		if j == n - 1:
			sen += 'it'
		else:
			sen += 'that '
	else:
		sen += 'I love '
		if j == n - 1:
			sen += 'it'
		else:
			sen += 'that '
	j += 1
print(sen)


str1 = ''
n = int(input())
for x in range(1, n):
	if x % 2 == 1:
		str1 += ' I hate that'
	else:
		str1 += ' I love that'
if n % 2 == 1:
	print(str1, 'I hate it', sep=' ')
else:
	print(str1, 'I love it', sep=' ')


num = int(input())
a = 1
p = 'I hate'
q = 'I love'
while a < num:
	p = p + ' that ' + q
	if a % 2 == 1:
		q = 'I hate'
	if a % 2 == 0:
		q = 'I love'
	a = a + 1
p = p + ' it'
print(p)


n = int(input())
s1 = 'I hate it'
s2 = 'I love it'
s = s1
for i in range(n - 1):
	if (i + 1) % 2:
		s = s.replace('it', 'that ') + s2
	else:
		s = s.replace('it', 'that ') + s1
print(s)


n = int(input())
s = 'I hate'
con1 = ' that I love'
con2 = ' that I hate'
if n == 1:
	print('I hate it')
	exit()
if n % 2 == 1:
	for i in range(int((n - 1) / 2)):
		s += con1 + con2
	s += ' it'
	print(s)
	exit()
if n % 2 == 0:
	for i in range(1, int(n / 2)):
		s += con1 + con2
	s += ' that I love it'
	print(s)
	exit()


n = int(input())
a = 'I hate '
b = 'I love '
s = ''
for i in range(n):
	if i < n - 1:
		if i % 2 == 0:
			s = s + a + 'that '
		else:
			s = s + b + 'that '
	elif i % 2 == 0:
		s = s + a
	else:
		s = s + b
	final = s + 'it'
print(final)


n = int(input())
t = 0
ans = ''
while n > 1:
	if t % 2 == 0:
		ans += ''.join('I hate that ')
	else:
		ans += ''.join('I love that ')
	t += 1
	n -= 1
if t % 2 == 0:
	ans += ''.join('I hate it')
else:
	ans += ''.join('I love it')
print(ans)


n = int(input())
lis = []
h = 'I hate '
l = 'I love '
for i in range(1, n + 1):
	if i % 2 == 0:
		lis.append(l)
	else:
		lis.append(h)
ans = 'that '.join(lis)
print(ans + 'it')


kr2 = 'I love it'
kr1 = 'I hate it'
c1 = 'I hate that '
c2 = 'I love that '
s = ''
n = int(input())
if n == 1:
	print(kr1)
else:
	for i in range(n - 1):
		if (i + 1) % 2 == 1:
			s += c1
		else:
			s += c2
	if n % 2 == 0:
		s += kr2
	else:
		s += kr1
	print(s)


n = int(input())

def layer(i):
	result = 'I love that '
	if i % 2 == 0:
		result = 'I hate that '
	return result
ans = ''
for i in range(n):
	ans = ans + layer(i)
ans = ans[:-5] + 'it'
print(ans)


n = int(input())
strEnd1 = 'I love it'
strEnd2 = 'I hate it'
result = ''
if n == 1:
	print(strEnd2)
elif n == 2:
	print('I hate that I love it')
else:
	for i in range(0, n - 1):
		if i % 2 != 0:
			result = result + 'I love that '
		else:
			result = result + 'I hate that '
	if n % 2 == 0:
		result = result + strEnd1
	else:
		result = result + strEnd2
	print(result)


import sys
wtf = sys.stdin.read()
wtf = wtf.strip()
wtf = wtf.split('\n')
wtf = int(wtf[0])
ans = []
for i in range(wtf):
	if i % 2 == 0:
		ans.append('I hate')
	else:
		ans.append('I love')
	if i + 1 == wtf:
		ans.append('it')
	else:
		ans.append('that')
print(' '.join(ans))


n = [int(i) for i in input().split()][0]
word = 'hate'
while n > 1:
	print('I', word, 'that', end=' ')
	if word == 'hate':
		word = 'love'
	else:
		word = 'hate'
	n -= 1
print('I', word, 'it')


n = int(input())
s = []
i = 1
while i <= n:
	if i == 1:
		s.append('I hate')
	elif i % 2 == 0:
		s.append('that I love')
	else:
		s.append('that I hate')
	i += 1
s.append('it')
print(' '.join(s))


love = 'I love '
hate = 'I hate '
out_str = hate
number_int = int(input())
if number_int == 1:
	pass
else:
	for a in range(1, number_int):
		if a % 2 == 0:
			out_str += 'that '
			out_str += hate
		if a % 2 == 1:
			out_str += 'that '
			out_str += love
print(out_str + 'it')


inp = input()
n = int(inp)
even = 'I hate'
odd = 'I love'
ret = ''
for i in range(0, n):
	if i % 2 == 0:
		ret += even
	else:
		ret += odd
	ret += ' '
	if i + 1 != n:
		ret += 'that '
	else:
		ret += 'it'
print(ret, end='')


def program():
	string = ''
	for i in range(1, n + 1):
		if i == n:
			if i % 2 == 0:
				string += 'I love it'
			else:
				string += 'I hate it '
			break
		if i % 2 == 0:
			string += 'I love that '
		else:
			string += 'I hate that '
	return string
n = int(input())
print(program())


n = int(input())
s = ['I hate', 'I love']
c = 0
res = ''
for i in range(n):
	if i == 0:
		res += s[c]
	else:
		res += ' ' + s[c]
	if i == n - 1:
		res += ' it'
	else:
		res += ' that'
	if i % 2 == 0:
		c = 1
	else:
		c = 0
print(res)


n = int(input())
x = 'I hate'
for i in range(n - 1):
	if i % 2 == 0:
		x = x + ' that I love'
	elif i % 2 != 0:
		x = x + ' that I hate'
print(x, 'it')


n = int(input())
str1 = 'I hate it'
str2 = 'I love it'
str = 'I hate that I love it'
if n == 1:
	print(str1)
elif n == 2:
	print(str)
else:
	i = 3
	while i <= n:
		if i % 2 != 0:
			str = str[:-2] + 'that ' + str1
		else:
			str = str[:-2] + 'that ' + str2
		i = i + 1
	print(str)


cnt = int(input().strip())
(mood_bool, str_out) = (0 if cnt % 2 else 1, 'I hate it' if cnt % 2 else 'I love it')
for x in range(cnt - 1):
	str_out = ('I hate that ' if mood_bool else 'I love that ') + str_out
	mood_bool = 1 - mood_bool
print(str_out)


def read_int():
	return int(input())

def solve():
	choice_dict = {0: 'I love ', 1: 'I hate '}
	answer = ''
	layer = read_int()
	for index in range(1, layer + 1):
		answer += choice_dict[index % 2].__add__('it' if index == layer else 'that ')
	print(answer)
solve()


n = int(input())
l = n - 1
s1 = 'I hate it'
s2 = 'I love it'
s = 'I hate it'
i = 1
while n > 1:
	if i % 2 == 0:
		s = s + ' ' + s1
	else:
		s = s + ' ' + s2
	i += 1
	n -= 1
q = s.replace('it', 'that', l)
print(q)


n = int(input())
st = 'I '
out = ''
for i in range(n):
	if i > 0:
		out += 'that '
	out += st
	if i % 2 == 0:
		out += 'hate'
	else:
		out += 'love'
	out += ' '
out += 'it'
print(out)


n = int(input())
h = 'I hate'
l = 'I love'
lst = ['I hate', 'that', 'I love', 'that']
if n == 1:
	print(h + ' it')
elif n == 2:
	print(h + ' that ' + l + ' it')
else:
	for i in range(3, n + 1):
		if i % 2 != 0:
			lst.append(h)
		else:
			lst.append(l)
		if i != n:
			lst.append('that')
	lst.append('it')
	print(' '.join(lst))


count = int(input())
result = []
for i in range(count):
	if i % 2 == int(0):
		result.append('I hate')
	else:
		result.append('I love')
	if i == count - int(1):
		result.append('it')
	else:
		result.append('that')
print(' '.join(result))


def getfeelings(n, feelings):
	if n == 1:
		print(feelings[0])
	elif n == 2:
		print(feelings[0].replace('it', 'that') + ' ' + feelings[1])
	elif n % 2 == 0:
		div = int(n / 2)
		for i in range(div):
			if i == div - 1:
				print(feelings[0].replace('it', 'that') + ' ' + feelings[1], end=' ')
			else:
				print(feelings[0].replace('it', 'that') + ' ' + feelings[1].replace('it', 'that'), end=' ')
	else:
		div = int((n + 1) / 2)
		for i in range(div):
			if i == div - 1:
				print(feelings[0], end=' ')
			else:
				print(feelings[0].replace('it', 'that') + ' ' + feelings[1].replace('it', 'that'), end=' ')
n = int(input())
feelings = ['I hate it', 'I love it']
getfeelings(n, feelings)


a = int(input())
l = ['I love ', 'I hate ']
s = ''
for i in range(a - 1):
	s += l[(i + 1) % 2] + 'that '
s += l[a % 2] + 'it'
print(s)


s1 = ' that I hate'
s2 = ' that I love'
n = int(input())
print('I hate', end='')
for x in range(1, n):
	if x % 2 == 0:
		print(s1, end='')
	else:
		print(s2, end='')
print(' it')


x = int(input())
odds = 'I hate that'
evens = 'I love that'
string = [odds] * x
if x != 1:
	for word in range(1, x, 2):
		string[word] = evens
string = ' '.join(string)
print(string[:-4] + 'it')


n = int(input())
list1 = []
i = 1
a = 'I hate'
b = 'I love'
while i <= n:
	if i % 2 != 0:
		list1.append(a)
	else:
		list1.append(b)
	i = i + 1
x = ' that '.join(list1)
print(x + ' it')


n = int(input())
A = 'I hate '
B = 'that I love '
C = 'that I hate '
D = 'it'
if n == 1:
	print(A + D)
elif n == 2:
	print(A + B + D)
elif n % 2 == 0:
	m = (B + C) * int(n / 2 - 1)
	print(A + m + B + D)
else:
	n = (B + C) * int((n - 1) / 2)
	print(A + n + D)


def main():
	n = int(input())
	feelings = 'I hate that I love that '
	if n % 2 == 0:
		return str(feelings * (n // 2))[:-5] + 'it'
	else:
		return str(feelings * (n // 2) + feelings[:7] + 'it')
print(main())


NumeroDeSentimientosDeHulk = int(input())
Sentimientos = ['I hate', 'I love']
Oracion = ''
n = 0
for i in range(1, NumeroDeSentimientosDeHulk + 1):
	if i % 2 == 0:
		n = 1
	else:
		n = 0
	Oracion += Sentimientos[n]
	if i == NumeroDeSentimientosDeHulk:
		Oracion += ' it'
	else:
		Oracion += ' that '
print(Oracion)


import sys
n = int(input())
res = ''
for i in range(n):
	if i & 1 == 0:
		if i > 1:
			res += ' '
		res += 'I hate'
	else:
		res += ' I love'
	if i < n - 1:
		res += ' that'
res += ' it'
print(res)


n = int(input())
val = 'I hate that '
if n == 1:
	val = 'I hate it'
elif n % 2 == 0:
	m = n // 2
	val = 'I hate that I love that ' * m
	val = val[:-5] + 'it'
else:
	m = n // 2
	val += 'I love that I hate that ' * m
	val = val[:-5] + 'it'
print(val)


import itertools
n = int(input())
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n % 2 != 0:
	a = ['I hate', 'that', 'I love', 'that']
	b = itertools.cycle(a)
	for i in range(2 * n - 1):
		print(next(b), end=' ')
	print('it')
elif n % 2 == 0:
	c = ['I hate', 'that', 'I love', 'that']
	d = itertools.cycle(c)
	for i in range(2 * n - 2):
		print(next(d), end=' ')
	print('I love it')


n = int(input())
l = []
k = ('I hate', 'I love', 'it', 'that')
for i in range(0, n):
	if i == n - 1:
		if i % 2 == 0:
			l.append(k[0])
			l.append(k[2])
		else:
			l.append(k[1])
			l.append(k[2])
	elif i % 2 == 0:
		l.append(k[0])
		l.append(k[3])
	else:
		l.append(k[1])
		l.append(k[3])
for i in l:
	print(i, end=' ')


n = int(input())
res = ''
hate = 'I hate'
that = ' that '
love = 'I love'
it = ' it'
i = 1
while i < n + 1:
	if i % 2 == 0:
		res = res + love + that
	else:
		res = res + hate + that
	i = i + 1
res2 = res[:-6] + it
print(res2)


n = int(input())
h1 = 'I hate '
h2 = 'that I love '
h3 = 'that I hate '
for i in range(1, n):
	if (i + 1) % 2 == 0:
		h1 = h1 + h2
	else:
		h1 = h1 + h3
print(h1 + 'it')


num = int(input())
num2 = int(str(num)[:])
a = []
if num % 2 == 0:
	last = 'I love it'
else:
	last = 'I hate it'
a.append('I hate that')
while num2 - 1 > 1:
	if a[-1] == 'I hate that':
		a.append('I love that')
	else:
		a.append('I hate that')
	num2 -= 1
fin = ''
for i in a:
	fin = fin + i + ' '
if num == 1:
	print(last)
else:
	print(fin + last)


n = int(input())
retour = ''
l = 'I love '
h = 'I hate '
it = 'it'
retour = 'I hate '
if n == 1:
	print(retour + it)
else:
	for i in range(1, n):
		if i % 2 == 0:
			retour = retour + ' that ' + h
		else:
			retour = retour + ' that ' + l
	print(retour + it)


n = int(input())
b = True
s = ''
for i in range(1, n):
	if b == True:
		s += 'I hate that '
	else:
		s += 'I love that '
	b = not b
if b == True:
	s += 'I hate it'
else:
	s += 'I love it'
print(s)


try:
	n = int(input())
	s1 = 'I hate it'
	s2 = 'that I hate it'
	s3 = 'that I love it'
	temp = ''
	for i in range(0, n + 1):
		if i == 0:
			continue
		if i == 1:
			temp = s1
		if i % 2 == 0:
			temp = temp[:-2]
			temp += s3[:]
		if i != 1 and i % 2 != 0:
			temp = temp[:-2]
			temp += s2[:]
	print(temp)
except:
	pass


s1 = 'I hate'
s2 = 'I love'
end = 'it'
btwn = 'that'
n = int(input())
str = s1
for i in range(2, n + 1):
	if i % 2 != 0:
		str = str + ' ' + btwn + ' ' + s1
	else:
		str = str + ' ' + btwn + ' ' + s2
print(str, end)


n = int(input())
ans = map(lambda i: 'I love' if i & 1 else 'I hate', range(n))
print(' that '.join(ans) + ' it')


evenf = 'I love'
oddf = 'I hate'
mid = 'that'
end = 'it'
n = int(input())
result = ''
for i in range(1, n + 1):
	if i % 2 == 0:
		result += evenf + ' '
	else:
		result += oddf + ' '
	if i == n:
		result += ' ' + end + ' '
	else:
		result += ' ' + mid + ' '
print(result)


n = int(input())
ch = 'I hate'
ch1 = 'I love'
ch2 = ''
for i in range(n):
	if i % 2 == 0:
		ch2 = ch2 + ch
	else:
		ch2 = ch2 + ch1
	if i == n - 1:
		ch2 = ch2 + ' it'
	else:
		ch2 = ch2 + ' that '
print(ch2)


import sys
str = 'I hate'
n = int(input())
if n > 1:
	for i in range(1, n):
		str += ' that I'
		if i % 2 != 0:
			str += ' love'
		else:
			str += ' hate'
sys.stdout.write(str + ' it')


n = int(input())
a = 'I love'
b = 'I hate'
c = ' it'
d = ' that '
x = ''
for i in range(1, n + 1, 1):
	if i % 2 != 0 and i != 1:
		x = x + d + b
	elif i == 1:
		x = b
	elif i % 2 == 0:
		x = x + d + a
	if i == n:
		x = x + c
print(x)


i = input()
i2 = 0
e = 1
st = ''
st1 = 'that'
st2 = 'it'
for x in range(0, int(i)):
	if e == 1:
		st = st + 'I hate'
	elif e % 2 == 0:
		st = st + ' I love'
	else:
		st = st + ' I hate'
	e += 1
	i2 += 1
	if i2 == int(i):
		st = st + ' it'
	else:
		st = st + ' that'
print(st)


repetion = int(input())
str = ''
if repetion == 1:
	print('I hate it')
else:
	for i in range(repetion):
		if i % 2 == 0:
			str = str + 'I hate'
		else:
			str = str + 'I love'
		if i < repetion - 1:
			str = str + ' that '
	print(str + ' it')


n = int(input())
s = 'I hate that I love that ' * int((n - 1) / 2)
s = s + 'I hate it' * (n % 2) + 'I hate that I love it' * (1 - n % 2)
print(s)


n = int(input())
s = ''
for i in range(1, n + 1):
	if i % 2 is 0:
		s += 'I love that '
	else:
		s += 'I hate that '
print(s[0:-5] + 'it')


num = int(input())
for x in range(1, num + 1):
	if x % 2 == 0:
		print('I love ', end='')
	else:
		print('I hate ', end='')
	if x == num:
		print('it')
	else:
		print('that ', end='')


x = int(input())
vivod = 'I hate'
for c in range(1, x):
	vivod = vivod + ' that'
	if c % 2 == 0:
		vivod = vivod + ' I hate'
	else:
		vivod = vivod + ' I love'
vivod = vivod + ' it'
print(vivod)


n = int(input())
a = []
for i in range(n):
	if i % 2 == 1:
		a += ['I love']
		if i == n - 1:
			a[i] += ' it'
	else:
		a += ['I hate']
		if i == n - 1:
			a[i] += ' it'
print(*a, sep=' that ')


f = 0
n = int(input())
print('I hate ', end='')
n -= 1
while n != 0:
	if f == 0:
		print('that I love ', end='')
		f = 1
	else:
		print('that I hate ', end='')
		f = 0
	n -= 1
print('it')


n = int(input())
s = 'I hate that'
s1 = 'I love that'
a1 = 'I hate it'
a2 = 'I love it'
for i in range(n):
	if i == n - 1 and (i + 1) % 2 != 0:
		print(a1)
	elif i == n - 1 and (i + 1) % 2 == 0:
		print(a2)
	elif (i + 1) % 2 == 0:
		print(s1, end=' ')
	else:
		print(s, end=' ')


n = int(input())
s1 = 'I love'
s2 = 'I hate'
for i in range(n):
	if i % 2 == 1:
		print(s1, end=' ')
	elif i % 2 == 0:
		print(s2, end=' ')
	if i != n - 1:
		print('that ', end=' ')
print('it', end=' ')


def hulk(n):
	i = 1
	result = ''
	while i <= n:
		if i == n and i % 2 == 0:
			result += 'I love it'
			return result
		elif i == n and i % 2 != 0:
			result += 'I hate it'
			return result
		elif i % 2 != 0:
			result += 'I hate that '
		else:
			result += 'I love that '
		i += 1
n = int(input())
print(hulk(n))


def main():
	layer = int(input())
	s = ''
	for i in range(layer):
		s += 'I %s %s' % ('love' if i % 2 else 'hate', 'that ' if i != layer - 1 else 'it')
	print(s)
main()


Reader = lambda : list(map(int, input().split()))
n = Reader()[0]
s = ''
for i in range(0, n):
	if i % 2 == 0:
		s += 'I hate '
	else:
		s += 'I love '
	if i == n - 1:
		break
	s += 'that '
s += 'it'
print(s)


n = int(input())
msg = 'I hate'
verb1 = 'love'
verb2 = 'hate'
while n > 1:
	msg += ' that I ' + verb1
	tmp = verb1
	verb1 = verb2
	verb2 = tmp
	n -= 1
print(msg + ' it')


n = int(input())
a = 'I hate'
b = 'I love'
c = ' that '
d = ' it '
res = ''
for i in range(n):
	if i % 2 == 0:
		res = res + a
	elif i % 2 == 1:
		res = res + b
	if i == n - 1:
		res = res + d
		break
	res = res + c
print(res)


n = int(input())
straka = ''
i = 0
while i != n - 1:
	if i % 2 > 0:
		straka += 'I love that '
	else:
		straka += 'I hate that '
	i += 1
if n % 2 > 0:
	straka += 'I hate it'
else:
	straka += 'I love it'
print(straka)


from sys import stdin, stdout

def main():
	n = int(stdin.readline())
	prob = [''] * n
	for i in range(n - 1):
		if i % 2:
			prob[i] = 'I love that'
		else:
			prob[i] = 'I hate that'
	if n % 2:
		prob[-1] = 'I hate it'
	else:
		prob[-1] = 'I love it'
	stdout.write(' '.join(prob))
main()


h = ('hate', 'love')
n = int(input())
print('I ', end='')
for i in range(n):
	print(h[i % 2], end='')
	if i != n - 1:
		print(' that I ', end='')
print(' it', end='')


isDebug = False
n = int(input())
ls = []
for i in range(0, n):
	if i % 2 is 0:
		ls.append('I hate')
	else:
		ls.append('I love')
print(*ls, sep=' that ', end=' it\n')


n = int(input())
s2 = 'I hate that I love that '
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n > 3 and n % 2 == 0:
	str1 = s2 * int(n / 2)
	ind1 = str1.rfind('that ')
	string2 = str1[0:ind1]
	print(string2 + 'it')
elif n > 2 and n % 2 != 0:
	no = n // 2
	string3 = s2 * no
	print(string3 + 'I hate it')


n = int(input())
if n == 1:
	print('I hate it')
if n == 2:
	print('I hate that I love it')
if n > 2:
	ch = 'I hate'
	ch1 = ' that I love that I hate'
	if n % 2 != 0:
		print(ch + int((n - 1) / 2) * ch1 + ' it')
	if n % 2 == 0:
		print(ch + int((n - 2) / 2) * ch1 + ch1[0:12] + ' it')


n = int(input())
a = 'I hate that '
b = 'I love that '
str = ''
for i in range(n):
	if i % 2 == 0:
		str += a
	else:
		str += b
str = str[0:-5]
str += 'it'
print(str)


a = int(input())
f = 'I hate it'
s = 'I love it'
f1 = 'I hate that '
s1 = 'I love that '
if a == 2:
	print(f1 + s)
elif a % 2 == 0:
	print((f1 + s1) * (a // 2 - 1) + f1 + s)
else:
	print((f1 + s1) * (a // 2) + f)


N = int(input())
L = ['hate', 'love']
ch = 'hate'
if N == 1:
	print('I hate it')
else:
	for i in range(1, N):
		ch += ' that I ' + L[i % 2]
	print('I ' + ch + ' it')


n = int(input())
i = 1
s = ''
while i < n + 1:
	if i % 2 != 0:
		s += 'I hate'
	else:
		s += 'I love'
	s += ' that '
	i += 1
lst = s.split()
lst[-1] = 'it'
print(' '.join(lst))


n = int(input())
layer1 = 'that I hate '
layer11 = 'I hate '
layer2 = 'I love '
if n % 2 == 0:
	print('I hate that I love ' + (layer1 + 'that ' + layer2) * (n // 2 - 1) + 'it')
if n % 2 != 0:
	print('I hate ' + ('that ' + layer2 + 'that ' + layer11) * (n // 2) + 'it')


words = ['I love ', 'I hate ']
output = 'I hate '
for i in range(int(input()) - 1):
	output += 'that ' + words[i % 2]
print(output + 'it')


n = int(input())
s1 = 'I hate '
s2 = 'I love '
s = ''
if n > 1:
	for i in range(n):
		if i == n - 1 and i % 2 == 1:
			s = s + s2 + 'it'
		elif i == n - 1 and i % 2 == 0:
			s = s + s1 + 'it'
		elif i % 2 == 1:
			s = s + s2 + 'that' + ' '
		elif i % 2 == 0:
			s = s + s1 + 'that' + ' '
else:
	s = s + s1 + 'it'
print(s)


n = int(input())
feelings = ['hate', 'love']
statement = ''
f = 'I {} {} '
while n > 0:
	for i in range(len(feelings)):
		if n == 1:
			statement += f.format(feelings[i], 'it')
			n -= 1
			break
		else:
			statement += f.format(feelings[i], 'that')
			n -= 1
print(statement)


layers = input('')
feelingsRefined = list()

def listToString(s):
	str1 = ''
	for ele in s:
		str1 = str(str1) + str(ele)
	return str1
for layer in range(int(layers)):
	if int(layer) % 2 == 0:
		if layer == 0:
			feelingsRefined.append('I hate ')
		else:
			feelingsRefined.append('that I hate ')
	else:
		feelingsRefined.append('that I love ')
feelingsRefined.append('it')
feelingsRefined = listToString(feelingsRefined)
print(feelingsRefined)


n = int(input())
ans = ''
i = 1
while i <= n:
	if i == 1:
		ans += 'I hate'
	elif i % 2:
		ans += ' that I hate'
	else:
		ans += ' that I love'
	i += 1
ans += ' it'
print(ans)


a = int(input())
ans = 'I hate that I love that ' * ((a - 1) // 2)
if a % 2 == 0:
	print(ans + 'I hate that I love it')
else:
	print(ans + 'I hate it')


n = int(input())
ans = ''
for x in range(n):
	if x % 2:
		ans += 'I love that '
	else:
		ans += 'I hate that '
ans = ans[:-5]
ans += 'it'
print(ans)


layer = int(input())
if layer == 1:
	print(' I hate it')
else:
	feelings = {'hate': 'I hate ', 'love': 'I love '}
	op = []
	for i in range(layer):
		if i % 2 != 0:
			op.append(feelings['love'])
		else:
			op.append(feelings['hate'])
		op.append('that ')
	op.pop()
	op.append('it ')
	res = ''.join(map(str, op))
	print(res)


def fun(n):
	x = ''
	for i in range(1, n + 1):
		if i % 2 != 0:
			x += 'I hate '
		else:
			x += 'I love '
		if i != n:
			x += 'that '
	x += 'it'
	return x
n = int(input())
print(fun(n))


feelings = int(input())
hate = 'I hate '
love = 'I love '
that = 'that '
it = 'it'
string = ''
output = ''
for x in range(1, feelings + 1):
	if x % 2 == 0:
		string += love
		string += that
	else:
		string += hate
		string += that
string_fix = string.split(' ')
string_fix[-2] = it
for y in range(len(string_fix)):
	output += string_fix[y]
	output += ' '
print(output)


x = [' hate ', ' love ']
n = int(input())
res = ''
if n == 1:
	print('I hate it')
else:
	for i in range(n - 1):
		res = res + 'I' + x[i % 2] + 'that '
	print(res + 'I' + x[(i + 1) % 2] + 'it')


n = int(input())
v1 = 'I love'
v2 = 'I hate'
v3 = 'that'
v4 = 'it'
v5 = ''
for i in range(1, n + 1, 1):
	if i % 2 == 0:
		if n == 2:
			v5 += v3 + ' ' + v1 + ' '
		else:
			v5 += v3 + ' ' + v1 + ' ' + v3 + ' '
	elif n > 1:
		v5 += v2 + ' '
	else:
		v5 += v2 + ' '
if n >= 4 and n % 2 == 0:
	v5 = v5[:len(v5) - 5]
print(v5 + v4)


n = int(input())
even = 'I hate that I love that '
odd = 'I hate it'
love = 'I hate that I love it'
if n == 1:
	print(odd)
else:
	answer = (n // 2 - 1) * even
	if n % 2 == 0:
		answer += love
	else:
		answer += even + odd
	print(answer)


import sys
counter = 0
for line in sys.stdin:
	if counter == 0:
		a = int(line)
		break
	counter += 1
s = ''
for i in range(a):
	if i % 2 == 0:
		s += 'I hate that '
	else:
		s += 'I love that '
print(s[:-5] + 'it')


a = input()
a = int(a)
for i in range(a):
	if a == 1:
		print('I hate it')
		break
	if i == a - 1:
		if i // 2 == i / 2:
			s += 'I hate it'
			print(s)
			break
		else:
			s += 'I love it'
			print(s)
			break
	if i == 0:
		s = 'I hate that '
		continue
	if i / 2 != i // 2:
		s += 'I love that '
	else:
		s += 'I hate that '


n = int(input())
halk_say = []
steps = ['I hate', 'I love']
for i in range(n):
	say = steps.pop(0)
	steps.append(say)
	halk_say.append(say)
halk_say = ' that '.join(halk_say) + ' it'
print(halk_say)


x = int(input())
xl = ['I hate that ', 'I love that ']
pre_ans = ''.join(xl)
pre_ans *= x // 2
x = x % 2
if x != 0:
	pre_ans += xl[0]
pre_ans = pre_ans.split()
pre_ans[-1] = 'it'
pre_ans = ' '.join(pre_ans)
print(pre_ans)


a = int(input())
if 1 <= a and a <= 100:
	i = 1
	s = ''
	while i < a:
		i = i + 1
		if i % 2 == 1:
			s = s + 'I love that '
		elif i % 2 == 0:
			s = s + 'I hate that '
	while i == a:
		i = i + 1
		if i % 2 == 1:
			s = s + 'I love it'
		elif i % 2 == 0:
			s = s + 'I hate it'
	print(s)


n = int(input())
l = []
for i in range(n):
	if i % 2 == 0:
		l.append('I hate')
	if i % 2 == 1:
		l.append('I love')
s = ' that '.join((x for x in l))
m = s + ' it'
print(m)


n = int(input())
f1 = 'I hate '
t = 'that '
f2 = 'I love '
ft1 = t + f1
ft2 = t + f2

def fibuWord(n):
	if n == 1:
		return f1 + 'it'
	elif n % 2 == 0:
		st_func = fibuWord(n - 1)
		st_func = st_func.replace('it', '')
		return st_func + ft2 + ' it'
	else:
		st_func = fibuWord(n - 1)
		st_func = st_func.replace('it', '')
		return st_func + ft1 + ' it'
print(fibuWord(n))


def main():
	n = int(input())
	if 1 <= n <= 100:
		beginning = ''
		for i in range(n):
			if i % 2 != 0:
				if i == n - 1:
					beginning += 'I love it'
				else:
					beginning += 'I love that '
			elif i == n - 1:
				beginning += 'I hate it'
			else:
				beginning += 'I hate that '
	print(beginning)
main()


n = int(input())
p = 'I hate it'
q = 'I hate that I love it'
s = 'I hate that I love that'
if n == 1:
	print(p)
if n == 2:
	print(q)
if n > 2:
	if n % 2 == 1:
		print((s + ' ') * (n // 2) + p)
	else:
		print((s + ' ') * (n // 2 - 1) + q)


x = int(input())
li = ['I hate', 'I love'] * x
print(' that '.join(li[:x]), 'it')


n = int(input())
result = ''
for i in range(n):
	first = i % 2 != 0 and 'love' or 'hate'
	second = i + 1 < n and 'that' or 'it'
	result += ' '.join(('I', first, second)) + ' '
result = result.strip()
print(result)


l1 = ['I hate ', 'I love ']
l2 = ['that ', 'it ']
n = int(input())
print(''.join((l1[i % 2] + l2[i == n - 1] for i in range(n))))


levelh = int(input())
print('I hate ', end='')
for povtor in range(levelh - 1):
	if povtor % 2 == 0:
		print('that I love ', end='')
	else:
		print('that I hate ', end='')
print('it')


feelings = [['I hate'], ['I love']]
n = int(input())
for i in range(n - 1):
	print(*feelings[i % 2], end=' that ')
print(*feelings[(n - 1) % 2], 'it')


n = int(input())
x = 'I hate'
for y in range(n):
	if x[-2:] == 'it':
		x = x.replace(x[-3:], '')
		if x[-2:] == 'te':
			x += ' that I love it'
		if x[-2:] == 've':
			x += ' that I hate it'
	else:
		x += ' it'
print(x)


d = {'1': 'I hate', '2': 'I love'}
a = []
j = int(input())
for i in range(1, j + 1):
	if i > 1:
		a.append('that')
	if i % 2 == 0:
		a.append(d[str(2)])
	else:
		a.append(d[str(1)])
a.append('it')
print(' '.join(a))


n = int(input())
last_odd = 'I hate it'
odd = 'I love that'
even = 'I hate that'
last_even = 'I love it'
for x in range(1, n):
	print(even if x % 2 != 0 else odd, end=' ')
print(last_odd if n % 2 != 0 else last_even)


n = int(input())
sl = [' that I love', ' that I hate']
res = 'I hate'
for i in range(2, n + 1):
	res += sl[i % 2]
res += ' it'
print(res)


x = int(input())
for j in range(x):
	if j % 2 == 0:
		print('I hate', end=' ')
	if j == x - 1 and j % 2 == 0:
		break
	if j % 2 == 0:
		print('that', end=' ')
	if j % 2 != 0:
		print('I love', end=' ')
	if j == x - 1:
		break
	if j % 2 != 0:
		print('that', end=' ')
print('it')


n = int(input())
zero = 'hate'
one = 'love'
a = []
for i in range(n):
	if i % 2 == 0:
		a.append(zero)
	else:
		a.append(one)
print('I ' + ' that I '.join(a) + ' it')


lh = 'I hate it'
ll = 'I love it'
fh = 'I hate that'
fe = 'I love that'
n = int(input())
if n == 1:
	print(lh)
elif n & 1 == 0:
	last = ll
	f = 0
	a = ''
	while n != 1:
		if f == 0:
			a = a + ' ' + fh
			f = 1
		else:
			a = a + ' ' + fe
			f = 0
		n = n - 1
	a = a + ' ' + last
	print(a[1:])
else:
	last = lh
	f = 0
	a = ''
	while n != 1:
		if f == 0:
			a = a + ' ' + fh
			f = 1
		else:
			a = a + ' ' + fe
			f = 0
		n = n - 1
	a = a + ' ' + last
	print(a[1:])


def main():
	buf = input()
	n = int(buf)
	feeling = ''
	for i in range(n):
		if i % 2 == 0:
			feeling += 'I hate '
		else:
			feeling += 'I love '
		if i == n - 1:
			feeling += 'it'
		else:
			feeling += 'that '
	print(feeling)
main()


i = int(input())
if (i - 1) % 2 == 0 and i > 2:
	print('I hate that I love that ' * int((i - 1) / 2) + 'I hate it')
elif i == 1:
	print('I hate it')
elif i == 2:
	print('I hate that I love it')
else:
	print('I hate that I love that ' * int((i - 2) / 2) + 'I hate that I love it')


def ans(n):
	s1 = 'I love'
	s2 = 'I hate'
	s = ''
	if n == 1:
		return s2 + ' it'
	else:
		for i in range(n):
			if i & 1:
				s = s + s1 + ' '
			else:
				s = s + s2 + ' '
			if i != n - 1:
				s = s + 'that' + ' '
		s = s + 'it'
		return s
n = int(input())
print(ans(n))


a = int(input())
s = []
d = ''
if a > 1:
	for i in range(2, a + 1):
		if i % 2 == 0:
			s.append('that I love ')
		if i % 2 != 0:
			s.append('that I hate ')
	for i in range(0, len(s)):
		d = d + s[i]
	print('I hate' + ' ' + d + ' ' + 'it')
if a == 1:
	print('I hate it')


import sys

def main():
	n = int(sys.stdin.readline().strip())
	feel = ''
	for i in range(1, n + 1):
		if i % 2 == 1:
			feel += 'I hate '
		else:
			feel += 'I love '
		if i == n:
			feel += 'it'
		else:
			feel += 'that '
	print(feel)
main()


n = int(input())
s = ''
index = 1
while index <= n:
	if index & 1:
		s += 'I hate '
	else:
		s += 'I love '
	if index < n:
		s += 'that '
	index += 1
s += 'it'
print(s)


n = int(input())
hate = 'I hate'
love = 'I love'
that = 'that'
str = ''
for num in range(n):
	if num % 2 == 0:
		str += hate
	else:
		str += love
	if num == n - 1:
		str += ' it'
	else:
		str += ' that '
print(str)


feeling_number = int(input().strip())
even = 'I hate'
odd = 'I love'
final_feeling = ' '
for i in range(feeling_number):
	if i == 0:
		final_feeling = even
	elif i % 2 != 0:
		final_feeling = final_feeling + ' that ' + odd
	elif i % 2 == 0:
		final_feeling = final_feeling + ' that ' + even
final_feeling = final_feeling + ' it'
print(final_feeling)


n = int(input())
m = n
s = []
while n > 1 and m % 2 != 0:
	if n % 2 == 0:
		s.append('I love that')
	elif n % 2 != 0:
		s.append('I hate that')
	n -= 1
while n > 1 and m % 2 == 0:
	if n % 2 != 0:
		s.append('I love that')
	elif n % 2 == 0:
		s.append('I hate that')
	n -= 1
if m % 2 == 0:
	s.append('I love it')
else:
	s.append('I hate it')
print(*s)


n = int(input())
li = ['I hate ', 'I love '] * n
print('that '.join(li[:n]) + 'it')


n = int(input())
hate = 'I hate '
love = 'I love '
join = 'that '
end = 'it'
final = hate
for i in range(n - 1):
	final = final + join
	if i % 2 == 0:
		final = final + love
	else:
		final = final + hate
final = final + end
print(final)


import sys

def main():
	n = int(sys.stdin.readline())
	al = []
	for i in range(int(n / 2)):
		al.append('I hate ')
		al.append('I love ')
	if n % 2 == 1:
		al.append('I hate ')
	print('that '.join(al) + 'it')
main()


X = int(input())
R = ''
if X == 1:
	print('I hate it')
else:
	for i in range(X):
		if i % 2 == 0:
			R += ' I hate that '
		else:
			R += 'I love that'
	else:
		R = R.strip()
		R = R[:-4] + 'it'
print(R)


a = int(input())
lst = []
for i in range(1, a + 1):
	if i == 1:
		lst.append(' hate')
	elif i % 2 == 0:
		lst.append(' that I love')
	elif i % 2 != 0:
		lst.append(' that I hate')
d = ''
s = d.join((j for j in lst))
print('I' + s + ' it')


n = int(input())
l = []
for i in range(n):
	if i % 2 == 0:
		l.append('I hate')
	else:
		l.append('I love')
print(' that '.join(l), end=' it')


n = int(input())
h = 'hate '
l = 'love '
t = 'that '
s = ''
for i in range(1, n + 1):
	if i % 2 == 1 and i != n:
		s += 'I ' + h + t
	elif i % 2 == 0 and i != n:
		s += 'I ' + l + t
	elif i == n and n % 2 == 0:
		s += 'I ' + l + 'it'
	else:
		s += 'I ' + h + 'it'
print(s)


x = int(input())
t = x
statement = ''
while x > 0:
	if x != t:
		statement += ' that '
	if x == t:
		statement += 'I hate'
		x -= 1
	elif (t - x) % 2 == 0:
		statement += 'I hate'
		x -= 1
	else:
		statement += 'I love'
		x -= 1
statement += ' it'
print(statement)


str = ''
n = int(input())
for i in range(n):
	str = str + ['I hate that ', 'I love that '][i % 2]
print(str[:-5] + 'it')


n = int(input())
(k, a) = (0, '')
for i in range(1, n + 1):
	if i % 2 == 1 and k == 0:
		a = a + 'I hate '
		k = k + 1
		continue
	if i % 2 == 1 and k > 0:
		a = a + 'that I hate '
	if i % 2 == 0 and k == 0:
		a = a + 'I love '
		k = k + 1
		continue
	if i % 2 == 0 and k > 0:
		a = a + 'that I love '
print(a, end='')
print('it')


feelings = ['I hate ', 'I love ']
layers = int(input())
string = ''
for x in range(layers):
	string += feelings[x % 2]
	if x == layers - 1:
		string += 'it'
	else:
		string += 'that '
print(string)


n = int(input())
lvl = ''
for i in range(1, n + 1):
	if i < 3:
		if i % 2 == 1:
			lvl += 'I hate'
		elif i % 2 == 0:
			lvl += ' that I love'
	elif i % 2 == 1:
		lvl += ' that I hate'
	else:
		lvl += ' that I love'
print(lvl, 'it')


arr = ['I hate', 'I love']
a = int(input())
v = 'I hate that I love it'
if a == 1:
	print('I hate it')
elif a == 2:
	print('I hate that I love it')
else:
	for i in range(2, a):
		p = arr[i % 2]
		f = v[:-2] + 'that ' + p + ' it'
		v = f
	print(v)


a = int(input())
b = 'I hate it'
c = 'I love it'
d = 'that I'
e = ''
for i in range(a):
	if i % 2 == 0:
		e = e + b
	else:
		e = e + c
e = e.replace('itI', d)
print(e)


n = int(input())
string1 = 'I hate it'
string2 = 'I love it'
str = 'I hate it'
for i in range(2, n + 1):
	if i % 2 == 0:
		str = str.strip('it')
		str = str + 'that ' + string2
	else:
		str = str.strip('it')
		str = str + 'that ' + string1
print(str)


x = int(input())
y = ''
a = ' that I hate'
x = x - 1
while x >= 1:
	if a == ' that I love':
		a = ' that I hate'
	else:
		a = ' that I love'
	y = y + a
	x = x - 1
print('I hate' + y + ' it')


n = eval(input())
i = 1
hate = 'I hate that '
love = 'I love that '
love_it = 'I love it'
hate_it = 'I hate it'
sentence = ''
if n == 1:
	sentence = hate_it
elif n == 2:
	sentence = hate + love_it
else:
	while i < n:
		if i % 2 == 1:
			sentence = sentence + hate
		elif i % 2 == 0:
			sentence = sentence + love
		i += 1
	if i % 2 == 0:
		sentence = sentence + love_it
	else:
		sentence = sentence + hate_it
print(sentence)


n = int(input())
str1 = 'I love '
str2 = 'I hate '
i = 1
str3 = ''
while i <= n:
	if i % 2 != 0 and i != n:
		str3 = str3 + str2 + 'that '
		i = i + 1
	elif i % 2 != 0 and i == n:
		str3 = str3 + str2 + 'it '
		i = i + 1
	elif i % 2 == 0 and i != n:
		str3 = str3 + str1 + 'that '
		i = i + 1
	elif i % 2 == 0 and i == n:
		str3 = str3 + str1 + 'it '
		i = i + 1
print(str3)


n = int(input())
x = 'I hate'
y = 'I love'
z = 'that'
l = []
for i in range(1, n):
	if i % 2 == 0:
		l.append(y)
		l.append(' that ')
	else:
		l.append(x)
		l.append(' that ')
if n % 2 == 0:
	l.append(y)
else:
	l.append(x)
l.append(' it')
s = ''.join(l)
print(s)


n = int(input())
a = 'I love'
b = 'I hate'
c = ' that '
d = ' it'
e = ''
for i in range(1, n + 1):
	if i != n:
		f = a + c
		g = b + c
	elif i == n:
		f = a + d
		g = b + d
	if i % 2 == 0:
		e = e + f
	if i % 2 != 0:
		e = e + g
print(e)


from sys import stdin
N = int(stdin.readline())
hate = True
love = False
for i in range(N - 1):
	if hate:
		love = True
		hate = False
		print('I hate that', end=' ')
	elif love:
		love = False
		hate = True
		print('I love that', end=' ')
if love:
	print('I love it')
else:
	print('I hate it')


data = int(input())
sentence = 'I hate'
love = True
for i in range(data - 1):
	sentence += ' that '
	if love:
		sentence += 'I love'
		love = False
	else:
		sentence += 'I hate'
		love = True
print(sentence + ' it')


def print_it(n):
	if n == 1:
		ans = 'I hate it'
	else:
		ans = 'I hate that '
		for x in range(1, n - 1):
			if x & 1:
				ans += 'I love that '
			else:
				ans += 'I hate that '
		if n % 2:
			ans += 'I hate it'
		else:
			ans += 'I love it'
	return ans
print(print_it(int(input())))


n = int(input())
h = 'I hate '
l = 'I love '
e = ''
z = n
if n == 1:
	print('I hate it')
else:
	while n != 1:
		if n % 2 != 0:
			e = e + h
		elif n % 2 == 0:
			e = e + l
		e = e + 'that '
		n -= 1
	if z % 2 != 0:
		print(e + h + 'it')
	else:
		print(h + 'that ' + e[:-5] + 'it')


n = int(input())
first = ['I hate']
last = ['it']
template = ['that I love', 'that I hate']
(d, r) = divmod(n - 1, 2)
print(' '.join(first + template * d + template[:r] + last))


hate = True
x = input()
for i in range(int(x)):
	if hate:
		print('I hate ', end='')
	else:
		print('I love ', end='')
	hate = not hate
	if i != int(x) - 1:
		print('that ', end='')
print('it')


n = int(input())
st1 = 'I hate it'
st2 = 'I love it'
st3 = 'I hate that'
st4 = 'I love that'
res = ''
for i in range(1, n):
	if i % 2 == 0:
		res = res + st4 + ' '
	else:
		res = res + st3 + ' '
if n % 2 == 0:
	res = res + st2
else:
	res = res + st1
print(res)


n = int(input())
res = ''
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
else:
	if n % 2 == 1:
		n -= 1
		x = n // 2
		while x > 0:
			res += 'I hate that I love that '
			x -= 1
		res += 'I hate it'
	else:
		n -= 2
		x = n // 2
		while x > 0:
			res += 'I hate that I love that '
			x -= 1
		res += 'I hate that I love it'
	print(res)


N = int(input())
feelings = []
for i in range(N):
	if i % 2 == 0:
		feelings.append('I hate')
	else:
		feelings.append('I love')
print(' that '.join(feelings) + ' it')


hulk = int(input(''))
hulk_say = 'I hate'
ch = 'it'
if hulk <= 1:
	print(hulk_say, ch)
else:
	for i in range(0, hulk):
		print(hulk_say, end=' ')
		if i < hulk - 1:
			print('that', end=' ')
		if i % 2 == 0:
			hulk_say = 'I love'
		else:
			hulk_say = 'I hate'
	print('it')


a = int(input())
x = 'I hate'
y = 'I love'
i = 'it'
j = 'that'
k = a - 1
for p in range(a):
	if p % 2 == 0:
		print(x, end=' ')
	else:
		print(y, end=' ')
	if k > 0:
		print(j, end=' ')
		k = k - 1
print(i, end=' ')


n = int(input())
s = ' I love'
s1 = ' I hate'
s2 = ' it'
s3 = ' that'
ans = ''
for i in range(n):
	if i % 2 == 0:
		if i != n - 1:
			ans += s1 + s3
		else:
			ans += s1 + s2
	elif i != n - 1:
		ans += s + s3
	else:
		ans += s + s2
print(ans.strip())


a = ['I hate it', 'I love it']
n = int(input())
if n == 1:
	print('I hate it')
else:
	st = ''
	c = 0
	i = 0
	while c < n:
		st = st + ' ' + a[i]
		i = (i + 1) % 2
		c = c + 1
	ans = st.split()
	c = ans.count('it')
	c = c - 1
	x = 0
	for i in range(2, len(ans), 3):
		if x < c:
			ans[i] = 'that'
			x = x + 1
		else:
			break
	print(' '.join(ans))


def codeforces(n):
	result = ''
	k = 1
	while n > 0:
		if k % 2 != 0:
			result += 'I hate '
		else:
			result += 'I love '
		if n - 1 > 0:
			result += 'that '
		k += 1
		n -= 1
	result += 'it '
	return result
n = int(input())
cd = codeforces(n)
print(cd)


n = int(input().strip())
feeling = 'I hate'
for i in range(n - 1):
	if i % 2:
		feeling += ' that I hate'
	else:
		feeling += ' that I love'
feeling += ' it'
print(feeling)


s = int(input())
a = ['I hate', 'I love'] * s
print(' that '.join(a[:s]), 'it')


get = int(input())
odd = 'I hate '
even = 'I love '
mystr = ''
if 1 <= get <= 100:
	for x in range(1, get + 1):
		if x % 2 == 1:
			mystr += odd
		else:
			mystr += even
		if x != get:
			mystr += 'that '
mystr += 'it'
print(mystr)


def layers(num):
	string = ''
	for i in range(1, num + 1):
		if i % 2 == 1:
			string = string + 'I hate '
		else:
			string = string + 'I love '
		if i == num:
			string = string + 'it'
		else:
			string = string + 'that '
	return string
print(layers(int(input())))


n = int(input())
l = [' that I love', ' that I hate']
for i in range(n):
	i = i * l
	i = i[:n - 1]
	s = ''.join(i)
print('I hate' + s + ' it')


n = int(input())
sentiments = ['I hate', 'I love']
s = []
for i in range(n):
	s.append(sentiments[i % 2])
print(' that '.join(s) + ' it')


n = int(input())
d = {True: 'I hate', False: 'I love'}
r = 'I hate'
for i in range(2, n + 1):
	r += ' that ' + d[i & 1]
r += ' it'
print(r)


n = int(input())
loveit = 'I love it'
love = 'I love that'
hateit = 'I hate it'
hate = 'I hate that'
rez = []
if n == 1:
	rez.append(hateit)
elif n % 2 != 0:
	while len(rez) != n - 1:
		rez.append(hate)
		rez.append(love)
		continue
	rez.append(hateit)
else:
	while len(rez) != n - 2:
		rez.append(hate)
		rez.append(love)
		continue
	rez.append(hate)
	rez.append(loveit)
print(*rez)


n = int(input())
c = n
n -= 1
x = 'I hate'
a = 'I hate'
b = 'I love'
while n >= 0:
	if n == 0:
		x += ' it'
	elif c % 2 == 0:
		if n % 2 == 1:
			x += ' that ' + b
		else:
			x += ' that ' + a
	elif n % 2 == 1:
		x += ' that ' + a
	else:
		x += ' that ' + b
	n -= 1
print(x)


import os
import sys
a = int(input())
for x in range(0, a - 1):
	if x % 2 == 0:
		print('I hate that ', end='')
	else:
		print('I love that ', end='')
if a % 2 == 1:
	print('I hate it')
else:
	print('I love it')


n = int(input())
endLove = 'I love it'
endHate = 'I hate it'
midLove = 'I love that'
midHate = 'I hate that'
sentence = ''
layerNr = 0
for i in range(n):
	if layerNr == 0:
		layerNr = 1
	elif layerNr == 1:
		layerNr = 0
	if i + 1 == n:
		if layerNr == 1:
			if i == 0:
				sentence += endHate
			else:
				sentence += ' ' + endHate
			break
		elif layerNr == 0:
			sentence += ' ' + endLove
			break
	if layerNr == 1:
		if i == 0:
			sentence += midHate
		else:
			sentence += ' ' + midHate
	elif layerNr == 0:
		sentence += ' ' + midLove
print(sentence)


n = eval(input())
s = ''
for i in range(n):
	if i & 1:
		s += 'I love '
	else:
		s += 'I hate '
	if i != n - 1:
		s += 'that '
print(s + 'it')


x = int(input())
a = 'I hate '
b = 'I love '
flag = True
for i in range(x, 0, -1):
	if i == 1 and flag == True:
		print(a + 'it', end=' ')
		flag = False
	elif i == 1 and flag == False:
		print(b + 'it', end=' ')
		flag = True
	elif i != 1 and flag == True:
		print(a + 'that', end=' ')
		flag = False
	else:
		print(b + 'that', end=' ')
		flag = True


a = int(input())
b = 1
while b <= a:
	if b % 2 == 1 and b < a:
		print('I hate that', end=' ')
	if b % 2 == 0 and b < a:
		print('I love that', end=' ')
	if b % 2 == 1 and b == a:
		print('I hate it')
	if b % 2 == 0 and b == a:
		print('I love it')
	b = b + 1


first = 'I hate'
last = 'it'
sentences = ['that I love', 'that I hate']
text = ''
index = 0
counter = 0
n = int(input())
if n == 1:
	text = first + ' ' + last
else:
	while True:
		text = text + ' ' + sentences[index]
		counter += 1
		if counter == n - 1:
			break
		if index == 1:
			index = 0
		else:
			index += 1
	text = first + text + ' ' + last
print(text)


m = int(input())
i = 1
while i < m:
	if i % 2 == 1:
		print('I hate that ', end='')
	else:
		print('I love that ', end='')
	i += 1
if m % 2 == 0:
	print('I love it')
else:
	print('I hate it')


n = int(input())
l = ['I hate'] * n
for i in range(len(l)):
	if i % 2 != 0:
		l[i] = 'I love'
for i in range(len(l) - 1):
	l[i] = l[i] + ' ' + 'that'
l[-1] = l[-1] + ' ' + 'it'
print(*l)


def function1():
	pass

def main():
	n = int(input())
	f1 = 'hate'
	f = 'love'
	k = ''
	for i in range(n):
		(f, f1) = (f1, f)
		k = k + ' I ' + f + ' that'
	print(k[1:-4] + 'it')
main()


n = int(input())
p = 'I hate '
q = 'I love '
s = ''
for i in range(n):
	if i % 2 == 0:
		s = s + p
		s = s + ' '
		if i == n - 1:
			s += 'it '
		else:
			s += 'that '
	else:
		s = s + q
		s = s + ' '
		if i == n - 1:
			s += 'it '
		else:
			s += 'that '
print(s)


n = int(input())
lst1 = []
lst = []
for l in range(n):
	lst.append('I hate that')
	lst.append('I love that')
w = lst[:n]
for j in w:
	w = j.split()
	for k in w:
		lst1.append(k)
lst1.pop()
lst1.append('it')
for z in lst1:
	print(z, end=' ')


def hulk(lay):
	msg = ''
	for x in range(1, lay + 1):
		if x == 0 or x % 2 > 0:
			msg = msg + 'I hate '
		else:
			msg = msg + 'I love '
		if lay - x == 0:
			msg = msg + 'it'
		else:
			msg = msg + 'that '
	return msg
lay = int(input())
print(hulk(lay))


n = int(input())
o = str()
for i in range(1, n + 1):
	a = 'hate' if i % 2 == 1 else 'love'
	b = 'that ' if i < n else 'it'
	o += 'I ' + a + ' ' + b
print(o)


n = int(input())
hateT = 'I hate that'
loveT = 'I love that'
result = [hateT if v & 1 else loveT for v in range(1, n + 1)]
if result[-1] == hateT:
	result[-1] = 'I hate it'
else:
	result[-1] = 'I love it'
print(' '.join(result))


s1 = 'I hate that'
s2 = 'I love that'
n = int(input())
i = 0
while i < n - 2:
	print(s1, end=' ')
	print(s2, end=' ')
	i += 2
if n % 2:
	print('I hate it')
else:
	print('I hate that I love it')


a = int(input())
b = ''
c = 0
d = 'it'
for x in range(a):
	if a == 1:
		print('I hate it')
		break
	elif a == 2:
		print('I hate that I love it')
		break
	elif c == 0:
		b += 'I hate that '
		c = 1
	elif c == 1:
		b += 'I love that '
		c = 0
if a > 2:
	print(b[0:len(b) - 5] + 'it')


n = int(input())
string = 'I hate '
a = 'that I love '
b = 'that I hate '
for i in range(n - 1):
	if i % 2 == 0:
		string += a
	else:
		string += b
print(string + 'it')


n = int(input())
a = 'I hate it'
e = 'I hate that I love that '
d = 'I hate that I love it'
if n == 1:
	print(a)
elif n == 2:
	print(d)
elif n % 2 == 0:
	print(e * (n // 2 - 1) + d)
else:
	print(e * (n // 2) + a)


n = int(input())
l = ['I hate', 'I love']
a = []
for i in range(n):
	a.append(l[i % 2])
ret = ' that '.join(a) + ' it'
print(ret)


n = int(input())
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n % 2 == 1:
	s = 'I hate that I love that ' * (n // 2) + 'I hate it'
	print(s)
else:
	s = 'I hate that ' + 'I love that I hate that ' * (n // 2 - 1) + 'I love it'
	print(s)


def func(x):
	i = 1
	while i < x:
		if i % 2 != 0:
			print('I hate that', end=' ')
		else:
			print('I love that', end=' ')
		i += 1
	if x % 2 is not 0:
		print('I hate it')
	else:
		print('I love it')
x = int(input())
func(x)


import math
import os
import random
import re
import sys
n = int(input())
s = 'I hate'
for x in range(1, n):
	if x % 2 == 0:
		s = s + ' that I hate'
	elif x % 2 != 0:
		s = s + ' that I love'
print(s + ' it')


layers = int(input())
feelings = []
i = 1
while i <= layers:
	if i % 2 == 1:
		feelings.append('I hate ')
	else:
		feelings.append('I love ')
	if i == layers:
		feelings.append('it')
	else:
		feelings.append('that ')
	i = i + 1
print(''.join(feelings))


n = int(input())
output = ''
for i in range(n):
	if i % 2 == 1:
		output += 'I love that '
	else:
		output += 'I hate that '
print(output[:len(output) - 5] + 'it')


try:
	n = int(input())
	s1 = 'I hate it'
	s2 = 'I hate that'
	s3 = 'I love it'
	s4 = 'I love that'
	if n == 1:
		print(s1, end=' ')
	else:
		for i in range(1, n):
			if i % 2 == 0:
				print(s4, end=' ')
			else:
				print(s2, end=' ')
		if n % 2 == 0:
			print(s3, end=' ')
		else:
			print(s1, end=' ')
except:
	pass


n = int(input())
if n < 1 or n > 100:
	raise ValueError('Number must be between 1 and 100 inclusively')
else:
	str = ''
	for i in range(1, n + 1):
		if i % 2 == 0:
			str += 'I love '
		else:
			str += 'I hate '
		if i == n:
			str += 'it'
		else:
			str += 'that '
print(str)


hit = input()
ans = ''
flag = 0
if int(hit) % 2 == 0:
	for i in range(int(int(hit) / 2)):
		if int(int(hit) / 2) > 1:
			if int(i) == int(int(hit) / 2 - 1):
				ans = ans + ' ' + 'I hate that I love it'
			elif flag == 1:
				ans = ans + ' ' + 'I hate that I love that'
			else:
				flag = 1
				ans = ans + 'I hate that I love that'
		else:
			ans = ans + 'I hate that I love it'
	print(ans)
elif int(hit) % 2 != 0:
	if int((int(hit) - 1) / 2) != 0:
		for i in range(int((int(hit) - 1) / 2)):
			if flag == 1:
				ans = ans + ' ' + 'I hate that I love that'
			else:
				flag = 1
				ans = ans + 'I hate that I love that'
		print(ans, 'I hate it')
	else:
		print('I hate it')


input_counter = int(input())
counter = 0
start = 'I hate'
space = ' '
feel = ''
evenfeel = 'that I love'
oddfeel = 'that I hate'
end = 'it'
if input_counter == 1:
	pass
else:
	while input_counter != counter + 1:
		if counter % 2 == 0:
			feel = feel + space + evenfeel
		else:
			feel = feel + space + oddfeel
		counter += 1
print(start + feel + space + end)


a = 'I hate '
b = 'I love '
c = 'it '
d = 'that '
l = []
result = ''
n = int(input())
for i in range(1, int(n) + 1):
	if i % 2 == 0:
		result = str(result) + b
	elif i % 2 == 1:
		result = str(result) + a
	if i == n:
		result = str(result) + c
	else:
		result = str(result) + d
result = result.strip()
print(result)


num = int(input())
s = ''
one = 'I hate it'
two = 'I hate that I love it'
three = 'I hate that I love that '
four = 'I love it'
if num == 1:
	print(one)
elif num == 2:
	print(two)
else:
	if num % 2 != 0:
		for i in range(1, num // 2 + 1):
			s += three
		s += one
	else:
		for i in range(1, num // 2):
			s += three
		s += two
	print(s)


n = int(input())
if 1 <= n <= 100:
	s = 'I hate'
	options = ['I hate', 'I love']
	for i in range(1, n):
		s += ' that ' + options[i % 2]
	s += ' it'
	print(s)


import sys
layers = int(sys.stdin.readline())
answer = 'I'
hate = True
for i in range(layers - 1):
	if hate:
		answer += ' hate that I'
	else:
		answer += ' love that I'
	hate = not hate
if hate:
	answer += ' hate it'
else:
	answer += ' love it'
print(answer)


n = int(input())
s = 'I hate '
ss = 'I love '
sss = 'it'
s4 = 'that '
cnt = n - 1
for i in range(n):
	if i % 2 == 0:
		print(s, end='')
	else:
		print(ss, end='')
	if cnt > 0:
		print(s4, end='')
		cnt -= 1
print(sss)


one = ['I hate that', 'I love that']
two = ['I hate that', 'I love that']
n = int(input())

def stat_odd(one, n):
	if n == 3:
		one.extend(['I hate it'])
		weird1 = ' '.join(one)
		return weird1
	else:
		while len(one) < n - 1:
			one.extend(two)
		one.extend(['I hate it'])
		weird = ' '.join(one)
		return weird

def stat_even(one, n):
	while len(one) < n - 1:
		one.extend(two)
	one.pop()
	one.extend(['I love it'])
	weird = ' '.join(one)
	return weird
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n % 2 != 0:
	print(stat_odd(one, n))
else:
	print(stat_even(one, n))


from sys import stdin
n = int(input())
s = 'I hate'
switch = True
while n > 1:
	n -= 1
	s += ' that'
	if switch:
		s += ' I love'
		switch = False
	else:
		s += ' I hate'
		switch = True
s += ' it'
print(s)


a = int(input())
ar = 'I hate that I love that '
cr = 'I hate it'
if a % 2 != 0:
	print(ar * int(a / 2) + cr)
else:
	print(ar * (int(a / 2) - 1) + 'I hate that I love it')


LEVELS = ('hate', 'love')
try:
	while True:
		n = int(input())
		s = []
		for i in range(n):
			if i:
				s += ['that']
			s += ['I', LEVELS[i & 1]]
		print(' '.join(s + ['it']))
except EOFError:
	pass


a = input()
n = int(a)
word = ''
for x in range(1, n + 1):
	if x % 2 == 1 and x != n:
		word = word + 'I hate that '
	elif x % 2 == 0 and x != n:
		word = word + 'I love that '
	elif x % 2 == 1 and x == n:
		word = word + 'I hate it '
	elif x % 2 == 0 and x == n:
		word = word + 'I love it '
print(word)


def hulk(n):
	if n == 0:
		return 0
	elif n == 1:
		n = n - 1
		print('I hate it')
	elif n == 2:
		print('I hate that I love it')
	elif n > 2 and n % 2 == 0:
		print('I hate that I love that ' * (int(n / 2) - 1) + 'I hate that I love ' + 'it')
	elif n > 2 and n % 2 != 0:
		print('I hate that I love that ' * int(n / 2) + 'I hate it')
n = int(input())
hulk(n)


import sys
from random import choice, randint
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def MI():
	return map(int, sys.stdin.readline().strip().split())

def LI():
	return list(map(int, sys.stdin.readline().strip().split()))

def LLI():
	return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().strip().split()]

def LF():
	return [float(x) for x in sys.stdin.readline().strip().split()]

def LS():
	return sys.stdin.readline().strip().split()

def I():
	return int(sys.stdin.readline().strip())

def F():
	return float(sys.stdin.readline().strip())

def S():
	return sys.stdin.readline().strip()

def pf(s):
	return print(s, flush=True)

def pe(s):
	return print(str(s), file=sys.stderr)

def JA(a, sep):
	return sep.join(map(str, a))

def JAA(a, s, t):
	return s.join((t.join(map(str, b)) for b in a))
inp = sys.stdin.readline
out = sys.stdout.write

def main():
	n = I()
	s = ''
	for i in range(n - 1):
		if (i + 1) % 2 == 0:
			s += 'I love that '
		else:
			s += 'I hate that '
	if n % 2 == 0:
		s += 'I love it'
	else:
		s += 'I hate it'
	pf(s)
main()


n = int(input())
s = 'I hate'
s1 = 'I love'
a = 'that'
a1 = 'it'
p = n
while n > 1:
	print(s, a, end=' ')
	if n != 2:
		print(s1, a, end=' ')
	n -= 2
if p % 2 == 0:
	print(s1, a1)
else:
	print(s, a1)


bir = 'I hate'
iki = 'I love'
that = ' that '
it = ' it'
line = bir
a = int(input())
for i in range(0, a - 1):
	line += that
	if i % 2 == 0:
		line += iki
	else:
		line += bir
line = line + it
print(line)


n = int(input())
par = 'I hate '
impar = 'I love '
mais = 'that '
fim = 'it'
frase = 'I hate '
for i in range(1, n):
	if i % 2 == 0:
		frase = frase + mais + par
	elif i % 2 != 0:
		frase = frase + mais + impar
frase = frase + fim
print(frase)


a = int(input())
x = ''
while a:
	if a % 2:
		x = 'that I hate ' + x
	else:
		x = 'that I love ' + x
	a -= 1
print(x[5:] + 'it')


def bb(n):
	a = 'I hate '
	b = 'I love '
	c = 'it'
	d = 'that'
	i = 1
	sum = ''
	while i < n:
		if i % 2 != 0:
			sum = sum + a + d + ' '
			i = i + 1
		else:
			sum = sum + b + d + ' '
			i = i + 1
	if n % 2 == 0:
		sum = sum + b + c
	else:
		sum = sum + a + c
	print(sum)
n = int(input())
bb(n)


n = int(input())
ch = ''
for i in range(n):
	if i % 2 == 0:
		ch += 'I hate that '
	else:
		ch += 'I love that '
ch = ch[:len(ch) - 5]
ch += 'it'
print(ch)


n = int(input())
i = 1
ans = []
while i <= n:
	if i % 2 == 0:
		ans.append('I love')
	else:
		ans.append('I hate')
	i += 1
y = ' that '.join(ans)
print(y + ' it')


import math
n = int(input())
S = 'I hate it'
ss = 'I love it'
S1 = 'I hate that'
ss1 = 'I love that'
if n == 1:
	print(S)
else:
	for i in range(1, n):
		if i % 2 == 0:
			print(ss1, end=' ')
		else:
			print(S1, end=' ')
	if n % 2 == 0:
		print(ss)
	else:
		print(S)


n = int(input())
s = []
q = 1
while q <= n:
	if q == 1:
		s.append('I hate')
		if q == n:
			s.append(' it')
		elif q <= n:
			s.append(' that')
		q = q + 1
		continue
	if q % 2 != 0:
		s.append(' I hate')
		if q == n:
			s.append(' it')
		elif q <= n:
			s.append(' that')
	elif q % 2 == 0:
		s.append(' I love')
		if q == n:
			s.append(' it')
		elif q <= n:
			s.append(' that')
	q = q + 1
for i in s:
	print(i, end='')


n = int(input())
tab = []
for _ in range(n):
	tab.append('I ')
	tab.append('hate ')
	tab.append('that ')
for i in range(4, len(tab), 6):
	tab[i] = 'love '
tab[-1] = 'it'
print(''.join(tab))


n = eval(input())
i = 2
x = str('I hate ')
while i <= n:
	if n == 1:
		break
	if i % 2 == 0:
		x = x + 'that I love '
	else:
		x = x + 'that I hate '
	i += 1
print(x + 'it')


n = int(input())
lst = ['I hate it', 'I hate that ', 'I love it', 'I love that ']
n1 = n
flag = True
st = ''
while n > 0:
	if n == 1 and n1 % 2 == 0:
		st = st + ' ' + lst[2]
		n -= 1
	elif n == 1 and n1 % 2 != 0:
		st = st + ' ' + lst[0]
		n -= 1
	elif flag:
		st = st + lst[1]
		n -= 1
		flag = False
	else:
		st = st + lst[3]
		flag = True
		n -= 1
print(st)


n = int(input())
st = ['I hate', 'I love', 'that', 'it']
answ = ''
f = 0
for i in range(n):
	answ += st[f]
	f = 0 if f == 1 else 1
	if i != n - 1:
		answ += ' that '
	else:
		answ += ' it'
print(answ)


nums = input().split(' ')
nums = int(nums[0])
s_1 = 'I hate that I love that '
s = ''
s_2 = 'I hate that I love it'
x = range(1, nums, 1)
if nums <= 1:
	print('I hate it')
elif nums > 1:
	ks = nums // 2
	if nums % 2 == 1:
		for i in range(ks):
			s += s_1
		print(s + 'I hate it')
	elif nums % 2 == 0:
		for i in range(ks - 1):
			s += s_1
		print(s + s_2)


def hulk_expression(n):
	layer = {0: 'I love', 1: 'I hate'}
	hulk_feels = ''
	for i in range(1, n + 1):
		hulk_feels += layer[i % 2] + ' '
		hulk_feels += 'that ' if i != n else 'it'
	return hulk_feels

def main():
	n = int(input())
	print(hulk_expression(n))
main()


n = int(input())
x = 'I love '
y = 'I hate '
z = 'that '
s = ''
while True:
	s = s + y + z
	n -= 1
	if n == 0:
		break
	s = s + x + z
	n -= 1
	if n == 0:
		break
s = s[:len(s) - 6]
print(s + ' it ')


str_2 = 'I hate'
str_1 = 'I love'
string = ''
n = int(input())
for i in range(0, n):
	if i % 2 != 0:
		string = string + str_1
	elif i % 2 == 0:
		string = string + str_2
	if i == n - 1:
		string = string + ' it '
	else:
		string = string + ' that '
print(string)


inputt = int(input())
k = 2
c = 'I hate'
if input == 1:
	print('I hate it')
else:
	while k <= inputt:
		if k % 2 == 0:
			c = c + ' that I love'
		if k % 2 != 0:
			c = c + ' that I hate'
		k += 1
c = c + ' it'
print(c)


b = int(input())
a = 'hate'
l = []
c = 0
while b > 0:
	if b == 1:
		l.append('I ' + a + ' it')
	else:
		l.append('I ' + a + ' that')
	if c == 1:
		a = 'hate'
		c = 0
	else:
		a = 'love'
		c = 1
	b -= 1
print(' '.join(l))


sh = 'I hate it'
sl = 'I love it'
s = 'I hate that I love that '
n = int(input())
if n % 2 != 0:
	print(s * (n // 2) + sh)
	exit()
else:
	n -= 2
	print(s * (n // 2) + 'I hate that ' + sl)
	exit()


n = int(input())
ans = ''
for i in range(n):
	if i is not n - 1:
		if i % 2 == 0:
			ans += 'I hate that '
		else:
			ans += 'I love that '
	elif i % 2 == 0:
		ans += 'I hate it'
	else:
		ans += 'I love it'
print(ans)


n = int(input())
a = 'I hate that '
b = 'I love that '
x = 1
s = ''
while x < n:
	s = s + a
	x += 1
	if x == n:
		break
	else:
		s = s + b
		x += 1
if n % 2 == 0:
	print(s + 'I love it')
else:
	print(s + 'I hate it')


n = int(input())
i = n - 1
s = 'I hate it'
m = 'I love it'
x = ''
while i >= 0:
	x = x + s + ' '
	i = i - 1
	if i >= 0:
		x = x + m + ' '
		i = i - 1
m = x.replace('it', 'that')
print(m[:len(m) - 6] + ' ' + 'it')


n = int(input())
s = 'I hate'
if n == 1:
	s += ' it'
	print(s)
else:
	n -= 1
	while n > 0:
		s += ' that'
		if s.count('hate') > s.count('love'):
			s += ' I love'
		else:
			s += ' I hate'
		n -= 1
	s += ' it'
	print(s)


def layer(i):
	if i % 2 is 0:
		print('I love', end=' ')
	else:
		print('I hate', end=' ')
a = int(input())
for j in range(1, a + 1):
	layer(j)
	if j is a:
		print('it', end=' ')
	elif j < a:
		print('that', end=' ')


n = int(input())
if n == 1:
	print('I hate it')
else:
	s = 'I hate that I love that '
	final = s * (n // 2)
	if n % 2 != 0:
		final = final + 'I hate it'
	else:
		final = ' '.join(final.split()[:-1]) + ' it'
	print(final)


i = input()
i = int(i)
h = ['I hate ', 'I love ']
f = ''
w = 2
for x in range(0, i):
	ww = w % 2
	if x > 0:
		f = f + ' that '
	f = f + h[ww]
	w = w + 1
f = f + ' it'
print(f)


n = int(input())
h = 'I hate'
l = 'I love'
a = h + 'that '
s = h
if n > 1:
	s = ''
	for i in range(0, n):
		s = s + h
		t = l
		l = h
		h = t
		if i != n - 1:
			s = s + ' that '
print(s + ' it')


layers = int(input())
res = []
for x in range(layers):
	if x % 2 == 0:
		res.append('I')
		res.append('hate')
		res.append('that')
	else:
		res.append('I')
		res.append('love')
		res.append('that')
res[-1] = 'it'
print(*res)


str1 = 'I hate it'
str2 = 'that I love it'
str4 = 'that I hate it'
str3 = str1
n = int(input())
for i in range(n):
	if i == 0:
		str3 = str3
	elif i % 2 == 0:
		str3 = str3[0:-2] + str4
	else:
		str3 = str3[0:-2] + str2
print(str3)


n = int(input())
feel = ['I hate', 'I love']
L = []
for i in range(0, n):
	L.append(feel[i % 2])
print(' that '.join(L) + ' it')


n = int(input())
f = ['I hate', 'I love'] * n
print(' that '.join(f[:n]), 'it')


hate = ['I hate that', 'I love that']
ans = ''
n = int(input())
for i in range(n):
	ans += ' ' + hate[i & 1]
ans = ans[1:-4] + 'it'
print(ans)


a = int(input())
b = ['I love that ', 'I hate that ']
d = []
c = ''
if a % 2 == 0:
	i = 0
	while i < a - 1:
		d.append(b[(i - 1) % 2])
		i += 1
else:
	i = 0
	while i < a + 1:
		d.append(b[(i - 1) % 2])
		i += 1
if a % 2 == 1:
	p = 1
	while p < a:
		c += b[p % 2]
		p += 1
	print(c + 'I hate it')
else:
	l = 0
	while l < len(d):
		c += d[l]
		l += 1
	print(c + 'I love it')


n = int(input())
answer = ''
flag = 0
for i in range(n):
	if flag == 0:
		answer += 'I hate '
		flag = 1
	elif flag == 1:
		answer += 'I love '
		flag = 0
	if i == n - 1:
		answer += 'it'
	else:
		answer += 'that '
print(answer)


n = input()
n = int(n)
word = ''
set = ['I hate', 'I love']
i = 0
while i < n:
	word += set[i % 2]
	word += ' that '
	i += 1
word = word[0:-5]
word += 'it'
print(word)


n = int(input())
ans = 'I hate'
if n == 1:
	pass
else:
	pointer = 2
	n = n - 1
	while n > 0:
		if pointer % 2 == 0:
			ans = ans + ' that I love'
		else:
			ans = ans + ' that I hate'
		n -= 1
		pointer += 1
ans = ans + ' it'
print(ans)


n = int(input())
x = ' '
i = 0
Odd = 'I love'
Even = 'I hate'
First = 'it'
Middle = 'that'
Result = ''
for i in range(n):
	if i % 2 == 0:
		Result = Result + Even + x
	else:
		Result = Result + Odd + x
	if i == n - 1:
		Result = Result + First + x
	else:
		Result = Result + Middle + x
print(Result, end='')


n = int(input())
l1 = 'I hate'
l2 = 'I love'
print('I hate', end=' ')
for i in range(1, n + 1):
	if i % 2 == 0:
		print('that I love', end=' ')
	elif i % 2 != 0 and i > 2:
		print('that ' + l1.lstrip('\n'), end=' ')
	if i == n:
		print('it')


def get_hulk_feeling(n):
	expression = ''
	for i in range(n):
		if (i + 1) % 2 != 0:
			if i != n - 1:
				expression += 'I hate that '
			else:
				expression += 'I hate it'
		elif i != n - 1:
			expression += 'I love that '
		else:
			expression += 'I love it'
	return expression

def main():
	n = int(input())
	feeling_expression = get_hulk_feeling(n)
	print(feeling_expression)
main()


n = 2
x = 'that I love'
y = 'that I hate'
max = int(input())
print('I hate', end=' ')
while n <= max:
	if n % 2 == 0:
		print(x, end=' ')
	elif n % 2 != 0:
		print(y, end=' ')
	n += 1
print('it')


n = int(input())
text_hate = 'I hate'
text_love = 'I love'
text = text_hate
if n == 1:
	pass
else:
	for i in range(1, n):
		if i % 2 == 1:
			text += ' that ' + text_love
		else:
			text += ' that ' + text_hate
print(text + ' it')


x = int(input())
p = x
if p % 2 == 0:
	while p != 0:
		if p % 2 != 0:
			print('I love', end=' ')
		else:
			print('I hate', end=' ')
		if p > 1:
			print('that', end=' ')
		else:
			print('it', end=' ')
		p -= 1
else:
	while p != 0:
		if p % 2 == 0:
			print('I love', end=' ')
		else:
			print('I hate', end=' ')
		if p > 1:
			print('that', end=' ')
		else:
			print('it', end=' ')
		p -= 1


i = int(input())
inception = []
for layers in range(i):
	layers += 1
	if layers % 2 != 0:
		inception.append('I hate that')
	elif layers % 2 == 0:
		inception.append('I love that')
tbr = inception.pop()
if tbr == 'I hate that':
	inception.append('I hate it')
elif tbr == 'I love that':
	inception.append('I love it')
result = ' '.join(map(str, inception))
print(result)


n = int(input())
feelings = (['I hate', 'I love'] * ((n + 1) // 2))[:n]
print(' that '.join(feelings) + ' it')


zahl = int(input())
a = ['I hate', 'I love']
e = ' it'
k = 0
for i in range(0, zahl):
	if k == 2:
		k = 0
	else:
		pass
	if i != zahl - 1:
		print(''.join(a[k]), 'that ', end='')
	else:
		print(''.join(a[k]), end='')
	k += 1
print(e)


n = int(input())
output = []
for i in range(n):
	if i == 0 or i == 2 or (i % 2 == 0 and i > 1):
		output.append('I hate that')
	elif i % 2 != 0 and i > 1 or i == 1:
		output.append('I love that')
if n % 2 == 0 and n > 1:
	output[n - 1] = 'I love it'
elif n % 2 != 0 and n > 1 or n == 1:
	output[n - 1] = 'I hate it'
print(' '.join(map(str, output)))


n = int(input())
my_list = []
for i in range(1, n + 1):
	if n == 1:
		my_list.append('I hate it ')
	elif i == n and i % 2 != 0:
		my_list.append('I hate it ')
	elif i == n and i % 2 == 0:
		my_list.append('I love it ')
	elif i % 2 != 0:
		my_list.append('I hate that ')
	else:
		my_list.append('I love that ')
str1 = ''.join(my_list)
print(str1)


n = int(input(''))
output = ''
while n > 2:
	output += 'I hate that I love that '
	n -= 2
if n % 2 == 0 and n > 0:
	output += 'I hate that I love it'
if n % 2 != 0:
	output += 'I hate it'
print(output)


odd = 'I hate that '
even = 'I love that '
n = int(input())
out = ''
for i in range(n):
	if i == n - 1:
		if (i + 1) % 2 == 0:
			out += 'I love it'
		else:
			out += 'I hate it'
		break
	if (i + 1) % 2 == 0:
		out += even
	else:
		out += odd
print(out)


n = int(input())
result = ''
cnt = 1
while True:
	if cnt % 2:
		result += 'I hate'
	else:
		result += 'I love'
	if cnt == n:
		result += ' it'
		break
	else:
		result += ' that '
	cnt += 1
print(result)


a = int(input())
l = ['hate', 'love'] * a
print('I', ' that I '.join(l[:a]), 'it')


n = input()
odd = 'I hate'
even = 'I love'
string = ''
for i in range(int(n)):
	if i % 2 == 0:
		string = string + odd
	if i % 2 != 0:
		string = string + even
	if i != int(n) - 1:
		string = string + ' that '
print(string + ' it')


first = 'I hate that '
second = 'I love that '
line = ''
for i in range(int(input())):
	if i % 2 == 0:
		line += first
	else:
		line += second
print(line.strip().rstrip('that') + 'it')


n = int(input())
p1 = 'I hate'
p2 = ' that '
p3 = 'I love'
on = True
string = p1
for i in range(1, n):
	if on:
		string = string + p2 + p3
		on = False
	else:
		string = string + p2 + p1
		on = True
string += ' it'
print(string)


n = int(input())
if n == 1:
	print('I hate it')
else:
	a = 'I hate that'
	a1 = ' I hate that'
	b = ' I love that'
	oe = ' I hate it'
	ee = ' I love it'
	f = ''
	g = ''
	if n % 2 == 0:
		f = f + a
		flag1 = 0
		for i in range(n - 2):
			if flag1 == 0:
				f += b
				flag1 = 1
			else:
				f += a1
				flag1 = 0
		f += ee
		print(f)
	else:
		g = g + a
		flag1 = 0
		for i in range(n - 2):
			if flag1 == 0:
				g += b
				flag1 = 1
			else:
				g += a1
				flag1 = 0
		g += oe
		print(g)


n = int(input())
a = 'I hate'
print(a, end=' ')
b = 'it'
x = 1
for x in range(1, n):
	x = x + 1
	if x % 2 == 0:
		print('that I love', end=' ')
	else:
		print('that I hate', end=' ')
print(b, end=' ')


import sys
l = int(input())
love = 'I love'
hate = 'I hate'
final = ''
for i in range(1, l + 1):
	if len(list(final)) != 0:
		final += ' that '
	if i % 2 == 0:
		final += love
	else:
		final += hate
final += ' it'
print(final)


TN = 1

def solution():
	n = int(input())
	ans = []
	for i in range(n):
		if i % 2:
			ans.append('I love')
		else:
			ans.append('I hate')
	print(' that '.join(ans) + ' it')
while TN != 0:
	solution()
	TN -= 1


n = int(input())
a = 'I hate '
b = 'I love '
c = 'that '
ans = ''
for i in range(n):
	if n == 1:
		ans = a
	if n > 1 and i > 0:
		ans += c
	if n == 1:
		ans = a
	elif i % 2 == 0:
		ans += a
	else:
		ans += b
print(ans + 'it')


n = int(input())
f = 0
print('I hate', end='', flush=True)
for i in range(n - 1):
	print(' that ', end='', flush=True)
	if f == 1:
		print('I hate', end='', flush=True)
		f = 0
	else:
		print('I love', end='', flush=True)
		f = 1
print(' it', end='', flush=True)


def hulk(n):
	if n == 1:
		return ['I hate that']
	return ['I hate that '] + ['I love that' if element % 2 == 0 else ' I hate that ' for element in range(n - 1)]
n = int(input())
str_list = hulk(n)
str_list[-1] = str_list[-1].replace('that', 'it')
print(''.join(str_list))


n = int(input())
s = 'I hate that'
s2 = 'I love that'
ans = []
for i in range(1, n):
	if i % 2 == 0:
		ans.append(s2)
	else:
		ans.append(s)
if n % 2 == 1:
	ans.append('I hate it')
else:
	ans.append('I love it')
print(' '.join(ans))


a = int(input())
b = ['I hate ', 'I love ', 'that ', 'it']
c = ''
for x in range(1, a + 1):
	if x < a:
		if x % 2 == 0:
			c = c + b[1]
		else:
			c = c + b[0]
		c = c + b[2]
print(c + b[(a + 1) % 2] + b[3])


n = int(input())
b = True
a = ''
while n > 1:
	if b == True:
		a += 'I hate that '
		b = False
	else:
		a += 'I love that '
		b = True
	n -= 1
if b == True:
	a += 'I hate it '
else:
	a += 'I love it '
print(a)


n = int(input())
i = 1
str1 = 'I hate'
if n == 1:
	print(str1 + ' it')
else:
	while i < n:
		i += 1
		if i % 2 == 0:
			str1 += ' that I love'
		else:
			str1 += ' that I hate'
		str1.rstrip('it')
	print(str1 + ' it')


x = int(input())
k = x % 2
x = int(x / 2)
if k == 0:
	print((x - 1) * 'I hate that I love that ' + 'I hate that I love it')
else:
	print(x * 'I hate that I love that ' + 'I hate it')


try:
	n = int(input())
	for i in range(1, n):
		if i % 2 == 1:
			print('I hate that', end=' ')
		else:
			print('I love that', end=' ')
	if n % 2 == 1:
		print('I hate it')
	else:
		print('I love it')
except:
	pass


n = int(input())
odd = 'I hate that'
even = 'I love that'
odd_last = 'I hate it'
even_last = 'I love it'
op = ''
for i in range(1, n + 1):
	if i == n:
		if i % 2 == 0:
			op += even_last
		else:
			op += odd_last
	elif i % 2 == 0:
		op += even + ' '
	else:
		op += odd + ' '
print(op)


n = int(input())
a = 'I hate it '
b = 'I love it '
x = 'I hate that '
y = 'I love that '
for i in range(1, n + 1):
	if i == 1 and n == 1:
		print(a)
	elif i % 2 != 0 and i != n:
		print(x, end='')
	elif i % 2 == 0 and i != n:
		print(y, end='')
	elif i % 2 != 0 and i == n:
		print(a, end='')
	else:
		print(b, end='')


l = []
for i in range(1, int(input()) + 1):
	if i % 2 != 0:
		l.append('I hate')
	else:
		l.append('I love')
a = ' that '.join(l)
a += ' it'
print(a)


i = int(input())
stt = False
for a in range(i):
	if stt:
		print('I love ', end='')
	else:
		print('I hate ', end='')
	if a == i - 1:
		print('it', end='')
	else:
		print('that ', end='')
	stt = not stt


def function(x):
	if x == 1:
		return 'I hate it'
	result = 'I hate '
	end = 'it'
	for i in range(2, x + 1):
		if i % 2 == 0:
			result += 'that I love '
		else:
			result += 'that I hate '
	result += end
	return result
x = input()
x = int(x)
print(function(x))


n = int(input())
st = 'I hate '
n -= 1
while n >= 2:
	st += 'that I love that I hate '
	n -= 2
if n == 1:
	st += 'that I love '
st += 'it'
print(st)


x = int(input())
y = ['I hate that']
if x % 2 != 0:
	del y[0]
	while x > 0:
		if x == 0 or x == 1:
			pass
		elif x % 2 != 0:
			y.append('I hate that')
		else:
			y.append('I love that')
		x -= 1
	y.append('I hate it')
else:
	while x > 0:
		if x == 0 or x == 1:
			pass
		elif x % 2 != 0:
			y.append('I hate that')
		else:
			y.append('I love that')
		x -= 1
z = y[-1].split(' ')
z[2] = 'it'
y[-1] = ' '.join(z)
print(*y)


n = int(input())
w = ['I love {}', 'I hate {}']
s = ''
conn = 'that'
for i in range(n):
	if i == n - 1:
		conn = 'it'
	phrase = w[(i + 1) % 2].format(conn)
	if not s:
		s = phrase
	else:
		s = ' '.join([s, phrase])
print(s)


n = int(input())
s = 'that I '
a = ['hate ', 'love ']
f = ''
for i in range(n):
	f += s + a[i % 2]
f += 'it'
f = f[5:]
print(f)


x = input()
x = int(x)
out = ''
g = 1
if x == 1:
	out = 'I hate it'
else:
	while x:
		if g:
			out += 'I hate'
			g = 0
		else:
			out += 'I love'
			g = 1
		x -= 1
		if x:
			out += ' that '
	out += ' it'
print(out)


a = int(input())
b = ['I hate']
for i in range(a - 1):
	if i % 2 == 0:
		b.append('that I love')
	elif i % 2 != 0:
		b.append('that I hate')
b.append('it')
print(' '.join(b))


import math

def get_num():
	return list(map(int, input().rstrip().split()))

def rotate(list, num):
	return list[num:] + list[:num]

def main():
	num = int(input())
	if num == 1:
		print('I hate it')
	else:
		str = 'I hate that'
		for i in range(2, num + 1):
			if i % 2 and i != num:
				str += ' I hate that'
			if i % 2 == 0 and i != num:
				str += ' I love that'
			if i % 2 and i == num:
				str += ' I hate it'
			if i % 2 == 0 and i == num:
				str += ' I love it'
		print(str)
main()


n = int(input())
print('I hate ', end='')
for i in range(3, n + 2):
	print('that ', end='')
	if i % 2 == 0:
		print('I hate ', end='')
	else:
		print('I love ', end='')
print('it')


n = int(input()) - 1
f = True

def p(a):
	print(a, end=' ')
p('I hate')
while n:
	p('that')
	if f:
		p('I love')
	else:
		p('I hate')
	f = not f
	n -= 1
print('it')


n = int(input())
a1 = 'I hate it '
a2 = 'I love it '
a3 = 'I hate that '
a4 = 'I love that '
s = ''
for i in range(n - 1):
	if i % 2 == 0:
		s += a3
	else:
		s += a4
if n % 2 == 0:
	s += a2
else:
	s += a1
print(s)


s = ['I hate ', 'I love ']
n = int(input())
_ = -1
for _ in range(n - 1):
	print(s[_ % 2] + 'that', end=' ')
print(s[(_ + 1) % 2] + 'it')


num = int(input())
banner = 'I hate '
for i in range(1, num):
	if i % 2 != 0:
		banner += 'that I love '
	else:
		banner += 'that I hate '
banner += 'it'
print(banner)


n = int(input())
p = str('')
if 1 <= n <= 100:
	for i in range(1, n):
		if i % 2 == 0:
			p = p + ' I love that'
		else:
			p = p + ' I hate that'
		i = i + 1
	if n % 2 == 0:
		print(p + ' I love it')
	else:
		print(p + ' I hate it')


w = ''
n = int(input())
for i in range(n):
	if i == 0:
		w = w + 'I hate '
	elif i % 2 == 0:
		w = w + 'that I hate '
	else:
		w = w + 'that I love '
w = w + 'it'
print(w)


n = int(input())
s = ['I hate', 'I love']
kmp = 'that'
i = 0
while i < n:
	if i == n - 1:
		kmp = 'it'
	print(s[i % 2], kmp, end=' ')
	i += 1


n = int(input())
h = ' I hate that'
l = ' I love that'
res = ''
h1 = ' I hate it'
l1 = ' I love it'
if n == 1:
	print(h1)
elif n == 2:
	print(h + l1)
else:
	for i in range(1, n + 1):
		if i == n and i % 2 == 1:
			res += h1
		elif i == n and i % 2 == 0:
			res += l1
		elif i % 2 == 1:
			res += h
		elif i % 2 == 0:
			res += l
	print(res)


n = int(input())
b = []
for i in range(n):
	if n > i + 1:
		if i % 2 == 0:
			b.append('I hate that')
		else:
			b.append('I love that')
	elif i % 2 == 0:
		b.append('I hate it')
	else:
		b.append('I love it')
print(*b)


layers = int(input())
feelings = ''
for layer in range(1, layers + 1):
	if layer < layers:
		if layer % 2 == 1:
			feelings += 'I hate that '
		elif layer % 2 == 0:
			feelings += 'I love that '
	elif layer % 2 == 1:
		feelings += 'I hate it '
	else:
		feelings += 'I love it '
print(feelings)


l = int(input())
res = []
for i in range(l):
	if i % 2 == 0:
		t = 'I hate'
	else:
		t = 'I love'
	res.append(t)
res = ' that '.join(res) + ' it'
print(res)


n = int(input())
words = ['that I love ', 'that I hate ']
result = 'I hate '
for i in range(2, n + 1):
	result += words[i % 2]
print(result + 'it')


def compute(n):
	msg = ''
	for i in range(1, n + 1):
		if i % 2 != 0:
			msg += 'I hate '
		else:
			msg += 'I love '
		if i < n:
			msg += 'that '
	msg += 'it'
	return msg

def main():
	n = int(input())
	print(compute(n))
main()


n = int(input())
sw = True
for i in range(n):
	if sw:
		print('I hate', end='')
		sw = False
	else:
		print('I love', end='')
		sw = True
	if i == n - 1:
		print(' it', end='')
	else:
		print(' that ', end='')


HATE_THAT = 'I hate that'
HATE_IT = 'I hate it'
LOVE_THAT = 'I love that'
LOVE_IT = 'I love it'

def solve():
	feeling_lvl = int(input())
	feelings = []
	for i in range(1, feeling_lvl + 1):
		if i % 2 == 0:
			if i == feeling_lvl:
				feelings.append(LOVE_IT)
			else:
				feelings.append(LOVE_THAT)
		elif i == feeling_lvl:
			feelings.append(HATE_IT)
		else:
			feelings.append(HATE_THAT)
	print(' '.join(feelings))
solve()


n = int(input())
for i in range(1, n + 1):
	if i % 2 == 0:
		if i != n:
			print(str('I love that '), end='')
			continue
		print(str('I love it'), end='')
		break
	if i != n:
		print('I hate that ', end='')
		continue
	print('I hate it', end='')


a = input()
a = int(a)
a = int(a)
if a == 1:
	print('I hate it')
elif a == 2:
	print('I hate that I love it')
elif a % 2 == 0:
	print(str('I hate that' + (' I love that ' + 'I hate that') * int(a / 2 - 1)) + ' I love it')
elif a == 3:
	print('I hate that I love that I hate it')
else:
	print(str('I hate that ' + ('I love that ' + 'I hate that ') * int(a // 2 - 1)) + 'I love that I hate it')


def main():
	n = int(input())
	ans = 'I hate that I love that ' * (n // 2)
	if n % 2 == 0:
		ans = ans[:-5] + 'it'
	else:
		ans += 'I hate it'
	print(ans)
main()


def sol():
	n = int(input())
	ans = ''
	for i in range(n):
		if i != 0:
			ans += 'that '
		if i % 2 == 0:
			ans = ans + 'I hate '
		else:
			ans = ans + 'I love '
	return ans + 'it'
print(sol())


n = int(input())
a = ['I love', 'I hate']
i = 0
b = ['I hate']
while n - i > 1:
	b.append(a[i % 2])
	i += 1
print(*b, sep=' that ', end=' it')


n = int(input())
hateIt = 'I hate that '
loveIt = 'I love it '
rec = ''
for i in range(n):
	if i != n - 1:
		if i % 2 == 0:
			rec += 'I hate that '
		else:
			rec += 'I love that '
	elif i % 2 == 0:
		rec += 'I hate it '
	else:
		rec += 'I love it '
print(rec.strip())


n = int(input())
sp1 = 'I hate'
sp2 = 'I hate that I love'
sp3 = 'I hate that I love that I hate'
res = ''
while n != 0:
	if n >= 2:
		n -= 2
		res += ' that ' + sp2
	elif n == 1:
		n -= 1
		res += ' that ' + sp1
print(res[6:] + ' it')


def sort(strr):
	strr = strr.split()
	strr = strr[:-1]
	strr = ' '.join(strr)
	return strr

def getResult(n):
	if n == 1:
		return 'I hate it'
	elif n % 2 == 0:
		return sort(getResult(n - 1)) + ' that ' + 'I love it'
	else:
		return sort(getResult(n - 1)) + ' that ' + 'I hate it'
print(getResult(int(input())))


n = int(input())
ans = 'I hate '
mid = ''
an = 'it'
if n == 1:
	print('I hate it')
else:
	for i in range(2, n + 1):
		if i % 2 == 0:
			mid = 'that I love '
			ans = ans + mid
		else:
			mid = 'that I hate '
			ans = ans + mid
	ans = ans + an
	print(ans)


n = int(input())
s1 = 'I hate that'
s2 = ' I love that '
ans = ''
for i in range(n):
	if i % 2 != 0:
		ans += s2
		continue
	ans += s1
a = ans.split()
a[-1] = 'it'
print(' '.join(a))


times = int(input())
output = []
i = 1
while i < times:
	output.append('I hate that')
	i += 1
	if i < times:
		output.append('I love that')
		i += 1
	else:
		break
if times % 2 == 0:
	output.append('I love it')
else:
	output.append('I hate it')
display = ' '.join(output)
print(display)


var = [int(x) for x in input().split(' ')]
strr = 'I hate'
if var[0] > 1:
	for i in range(0, var[0] - 1):
		if i % 2 == 0 and i + 2 < var[0]:
			strr += ' that I love'
		elif i % 2 == 1 and i + 2 < var[0]:
			strr += ' that I hate'
		elif i % 2 == 0:
			strr += ' that I love it'
		else:
			strr += ' that I hate it'
else:
	strr += ' it'
print(strr)


n = int(input())
odd = 'I hate that'
even = 'I love that'
oddend = 'I hate it'
evenend = 'I love it'
for i in range(1, n + 1):
	if i == n:
		if i % 2 == 0:
			print(evenend)
		else:
			print(oddend)
	elif i % 2 == 0:
		print(even, end=' ')
	else:
		print(odd, end=' ')


s = ['I hate', 'I love']
st = ''
for i in range(int(input())):
	st += s[i % 2]
st = st.replace('eI', 'e that I')
print(st + ' it')


n = int(input())
a = 'that I hate that I love '
b = 'that I love that I hate '
if n == 1:
	s = 'I hate it'
elif n == 2:
	s = 'I hate that I love it'
elif n % 2 == 1 and n > 2:
	s = 'I hate ' + b * (n // 2) + 'it'
else:
	s = 'I hate that I love ' + a * (n // 2 - 1) + 'it'
print(s)


import sys
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
n = inp()
text = 'I hate'
for i in range(2, n + 1):
	if i % 2 == 0:
		text += ' that I love'
	else:
		text += ' that I hate'
print(text + ' it')


def main():
	n = int(input())
	a = ['hate', 'love'] * n
	print('I', ' that I '.join(a[:n]), 'it')
main()


n = int(input())
a = ['that I love ', 'that I hate ']
print('I hate ' + ''.join((a[i % 2] for i in range(n - 1))) + 'it')


def solve(num):
	return ' that '.join(map(lambda x: f'I {x}', [{0: 'hate', 1: 'love'}[i % 2] for i in range(num)])) + ' it'
assert solve(1) == 'I hate it'
assert solve(2) == 'I hate that I love it'
assert solve(3) == 'I hate that I love that I hate it'
num = int(input())
print(solve(num))


n = int(input())
hate = 'I hate it'
hatee = 'I hate that '
lovee = 'I love that '
love = 'I love it'
sep = 'that '
output = ''
for x in range(1, n):
	if x % 2 != 0:
		output = output + hatee
	else:
		output = output + lovee
if n % 2 == 0:
	output = output + love
else:
	output = output + hate
print(output)


s = int(input())
com = ['I hate', 'I love']
hold = []
index = 0
for ___ in range(s):
	if index == 0:
		hold.append(com[0])
		index = 1
	else:
		hold.append(com[1])
		index = 0
print(' that '.join(hold), 'it')


import sys
input = sys.stdin.readline

def main():
	n = int(input())
	s_s = ['I hate', 'I love']
	ans = ''
	for i in range(n - 1):
		ans += s_s[i % 2]
		ans += ' that '
	ans += s_s[(n - 1) % 2]
	ans += ' it'
	print(ans)
main()


n = int(input())
alt_check = True
for i in range(n):
	if i > 0:
		print('that', end=' ')
	if alt_check:
		print('I hate', end=' ')
		alt_check = False
	else:
		print('I love', end=' ')
		alt_check = True
print('it')


inp = int(input())
for i in range(1, inp + 1):
	if i % 2 != 0:
		x = 'I hate {}'
		if i != inp:
			print(x.format('that'), end=' ')
		else:
			print(x.format('it'), end=' ')
	else:
		x = 'I love {}'
		if i != inp:
			print(x.format('that'), end=' ')
		else:
			print(x.format('it'), end=' ')


n = int(input())
text = {0: 'I love', 1: 'I hate'}
result = ' that '.join([text[i % 2] for i in range(1, n + 1)])
result.strip()
result += ' it'
print(result)


n = int(input())
i = 0
s = str()
i = 1
s = 'I hate it'
if i == n:
	print(s)
else:
	s = s.split(' ')
	while i != n:
		i += 1
		if i % 2 == 0:
			s[-1] = 'that'
			k = ['I', 'love', 'it']
			s = s + k
		elif i != 1:
			s[-1] = 'that'
			k = ['I', 'hate', 'it']
			s = s + k
	print(*s, sep=' ')


n = int(input())
i = 1
while i <= n:
	if i % 2 == 1:
		print('I hate', end=' ')
		if n - i >= 1:
			print('that', end=' ')
		i = i + 1
	else:
		print('I love', end=' ')
		if n - i >= 1:
			print('that', end=' ')
		i = i + 1
print('it')


i = int(input())
o = 'I hate '
for i in range(i - 1):
	if i % 2:
		o += 'that I hate '
	else:
		o += 'that I love '
print(o + 'it')


n = int(input())
ans = ''
i = n
while True:
	if i == 1:
		if n % 2 != 0:
			ans += 'I hate it '
		else:
			ans += 'I love it '
		break
	if i == 2:
		if n % 2 != 0:
			ans += 'I love that I hate it '
		else:
			ans += 'I hate that I love it '
		break
	elif n % 2 != 0:
		for _ in range(n, 2, -2):
			ans += 'I hate that I love that '
		i = 1
	else:
		for _ in range(n, 3, -2):
			ans += 'I hate that I love that '
			i = 2
print(ans)


n = int(input())
words = ['I hate', 'it']
for i in range(n - 1):
	if i % 2 == 0:
		words.insert(-1, 'that I love')
	else:
		words.insert(-1, 'that I hate')
print(' '.join(words))


n = int(input())
str1 = ['I hate', 'I love']
str2 = ''
for i in range(1, n + 1):
	if i % 2:
		if i == 1:
			str2 = str2 + str1[i - 1]
		else:
			str2 = str2 + ' that ' + str1[(i - 1) % 2]
	else:
		str2 = str2 + ' that ' + str1[(i - 1) % 2]
print(str2 + ' it')


n = int(input())
H = 'I hate '
L = 'I love '
it = 'it '
that = 'that '
result = ''
if n == 1:
	print(H + it)
else:
	for i in range(n):
		if i % 2 != 0:
			result += L
		else:
			result += H
		if i + 1 == n:
			result += it
		else:
			result += that
	print(result)


a = int(input())
b = ''
for r in range(1, a + 1):
	if r == a and r % 2 == 1:
		b = b + 'I hate it'
	elif r == a and r % 2 == 0:
		b = b + 'I love it'
	elif r % 2 == 1:
		b = b + 'I hate that '
	else:
		b = b + 'I love that '
print(b)


n = int(input())
a = 'I hate '
b = 'I love '
c = 'that '
d = 'it '
t = n
liste = []
for x in range(n + 1):
	while t > 0:
		if t > 0:
			liste.append(a)
			if t != 1:
				if t > 0:
					liste.append(c)
		t -= 1
		if t > 0:
			liste.append(b)
			if t != 1:
				if t > 0:
					liste.append(c)
			t -= 1
		if t == 0:
			liste.append(d)
			result = ''.join(map(str, liste))
			print(result)
			break


layers = int(input())
feeling_list = ['I hate', 'I love'] * layers
feeling = ' that '.join(feeling_list[0:layers])
print(feeling + ' it')


n = int(input())
first = 'I hate'
second = 'I love'
l = []
for i in range(1, n + 1):
	if i % 2 != 0:
		l.append(first)
	else:
		l.append(second)
for i in range(len(l)):
	l[i] = l[i] + ' that'
p = l[-1].replace(l[-1][7:], 'it')
l[-1] = p
listToStr = ' '.join(map(str, l))
print(listToStr)


s = input()
n = int(s)
k = 1
res = ''
while k != n + 1:
	if k % 2 == 1:
		if k != n:
			res += 'I hate that '
		else:
			res += 'I hate it '
	elif k != n:
		res += 'I love that '
	else:
		res += 'I love it '
	k += 1
print(res.rstrip())


string = 'I hate'
for i in range(1, int(input())):
	string += [' that I love', ' that I hate'][i % 2 == 0]
print(string + ' it')


n = int(input())
a = 'I hate it'
b = ' I love it'
c = 'I hate that I love that'
d = 'I hate that'
if n == 1:
	print('I hate it')
elif n == 2:
	print(d + b)
elif n % 2 == 0 and n != 2:
	print(c + (n // 2 - 2) * (' ' + c) + ' ' + d + b)
elif n % 2 != 0:
	print(c + (n // 2 - 1) * (' ' + c) + ' ' + a)


n = int(input())
a = 'I hate it'
b = 'I love it'
x = [a, b]
cur = 0
while n > 1:
	print(x[cur][:-3], end=' that ')
	n -= 1
	cur = (cur + 1) % 2
print(x[cur])


import math
import collections
import bisect
import heapq
import time
import random
import itertools
import sys
N = int(input())
A = []
feels = ['hate', 'love']
for i in range(N):
	A.append(feels[i % 2])
ans = 'I ' + ' that I '.join(A) + ' it'
print(ans)


a = int(input())
s = ['I hate ', 'I love ', 'that ', 'it']
ans = ''
for i in range(a):
	ans += s[i % 2]
	if i < a - 1:
		ans += s[2]
ans += s[3]
print(ans)


import time
n = int(input())
start = time.time()
hate = 'I hate'
that = ' that '
love = 'I love'
ans = hate
flag = False
for i in range(1, n):
	ans += that
	if flag == False:
		ans += love
		flag = True
	else:
		ans += hate
		flag = False
ans += ' it'
print(ans)
finish = time.time()


n = int(input())
str1 = 'I hate '
str2 = 'I love '
ans = []
for i in range(n):
	if i % 2 == 0:
		ans.append(str1)
	else:
		ans.append(str2)
ans = 'that '.join(ans) + 'it'
print(ans)


n = int(input())
c = 1
e = ''
while c <= n:
	if c == 1:
		e += 'I hate'
		c += 1
		continue
	elif c % 2 != 0:
		e += ' that I hate'
		c += 1
		continue
	elif c % 2 == 0:
		e += ' that I love'
		c += 1
		continue
print(e + ' it')


import sys
n = int(input())
d = []
if n > 1:
	for i in range(1, n):
		if i % 2 != 0:
			d.append('I hate that')
		else:
			d.append('I love that')
	if n % 2 != 0:
		d.append('I hate it')
	else:
		d.append('I love it')
else:
	print('I hate it')
	sys.exit()
f = ' '.join(d)
print(f)


s = input()
a = 0
r = ''
for i in range(int(s)):
	if a:
		r += 'I love'
	else:
		r += 'I hate'
	if i != int(s) - 1:
		r += ' that '
	else:
		r += ' it'
	a ^= 1
print(r)


n = int(input())
gay = []
variable = 0
if n == 1:
	print('I hate it')
else:
	for i in range(n):
		if variable % 2 == 0:
			gay.append('I hate')
		else:
			gay.append('I love')
		variable = variable + 1
		gay.append('that')
	del gay[-1]
	gay.append('it')
	print(*gay)


hulk = int(input())
print('I hate ', end='')
for snova in range(hulk - 1):
	if snova % 2 == 0:
		print('that I love ', end='')
	else:
		print('that I hate ', end='')
print('it')


x = int(input())
y = []
i = 0
while i < x:
	if (i + 1) % 2 == 0 and i + 1 == x:
		y.append('I love it')
	elif (i + 1) % 2 == 0:
		y.append('I love that')
	elif (i + 1) % 2 != 0 and i + 1 == x:
		y.append('I hate it')
	else:
		y.append('I hate that')
	i += 1
g = ' '.join(y)
print(g)


n = int(input())
p1 = 'I hate it'
p2 = 'I hate that'
p3 = 'I love it'
p4 = 'I love that'
ls_main = []
count = n
if n == 1:
	print(p1)
else:
	while count != 0:
		if ls_main == []:
			print(p2, end=' ')
			ls_main.append(p2)
			count -= 1
		elif ls_main[-1] == 'I love that' and count > 1:
			print(p2, end=' ')
			ls_main.append(p2)
			count -= 1
		elif ls_main[-1] == 'I love that' and count == 1:
			print(p1)
			count -= 1
		elif ls_main[-1] == 'I hate that' and count > 1:
			print(p4, end=' ')
			ls_main.append(p4)
			count -= 1
		elif ls_main[-1] == 'I hate that' and count == 1:
			print(p3)
			count -= 1


n = int(input())
test = n % 2

def estPaire(n):
	i = 1
	while i <= n:
		if i % 2 != 0:
			print('I hate that ', end='')
			i += 1
		elif i % 2 == 0:
			if i != n:
				print('I love that ', end='')
				i += 1
			else:
				print('I love it ', end='')
				i += 1

def estImpaire(n):
	i = 1
	while i <= n:
		if i % 2 == 0:
			print('I love that ', end='')
			i += 1
		elif i % 2 != 0:
			if i != n:
				print('I hate that ', end='')
				i += 1
			else:
				print('I hate it ', end='')
				i += 1
if test == 0:
	estPaire(n)
else:
	estImpaire(n)


import sys
n = int(sys.stdin.readline())
a = 'I hate '
i = 1
while i < n:
	i += 1
	if i % 2:
		a += 'that I hate '
	else:
		a += 'that I love '
a += 'it'
print(a)


n = int(input())
for i in range(1, n):
	if n == 1:
		break
	if i & 1 == 1:
		print('I hate that', end=' ')
	else:
		print('I love that', end=' ')
if n & 1 == 1:
	print('I hate it')
else:
	print('I love it')


answers = ['I hate that', 'I love that']
answer = ['I love it', 'I hate it']
n = int(input())
for i in range(n - 1):
	print(answers[i & 1], end=' ')
print(answer[n & 1])


number = int(input())
string = 'I hate '
joiner = 'that '
list_of_feelings = ['I love ', 'I hate ']
for i in range(2, number + 1):
	string = joiner.join([string, list_of_feelings[i % 2]])
string = string + 'it'
print(string)


a = int(input())
b = 0
hat = ''
while b < a:
	b += 1
	if b % 2 == 0 and b < a:
		hat = hat + 'I love that '
	elif b % 2 == 1 and b < a:
		hat = hat + 'I hate that '
	elif b == a and b % 2 == 1:
		hat = hat + 'I hate it'
	elif b == a and b % 2 == 0:
		hat = hat + 'I love it'
print(hat)


c = input()
c = int(c)
b = 'I love'
d = 'I hate'
st = ''
for i in range(c):
	if i % 2 != 0:
		st = st + b
	if i % 2 == 0:
		st = st + d
	if i + 1 != c:
		st = st + ' that '
st = st + ' it'
print(st)


n = int(input())
s = ['I hate ', 'that I love ', 'that I hate ']
p = ''
i = 0
for _ in range(n):
	if i == 3:
		i = 1
	p += s[i]
	i += 1
print(p + 'it')


a = int(input())
b = ' that I love'
c = ' that I love that I hate'
d = 'I hate  it'
d = list(d)
if a % 2 == 1:
	d[6] = c * (a // 2)
	print(''.join(d))
else:
	d[6] = c * (a // 2 - 1) + b
	print(''.join(d))


def read_tokens():
	return input().strip().split(' ')

def read_ints():
	return [int(s) for s in read_tokens()]
(n,) = read_ints()

def solve(n) -> str:
	ans = ''
	l = 'I love'
	h = 'I hate'
	hate = True
	while n != 0:
		if hate:
			ans = ans + h
		else:
			ans = ans + l
		hate = not hate
		n -= 1
		if n != 0:
			ans = ans + ' that '
	return ans + ' it'
print(solve(n))


n = int(input())
lis = []
for i in range(1, n + 1):
	if i % 2 != 0:
		lis.append('I hate')
	else:
		lis.append('I love')
delim = ' that '
str1 = delim.join(lis)
print(str1 + ' it')


num = int(input())
ans = ''
hateit = 'I hate it '
loveit = 'I love it '
hatethat = 'I hate that '
lovethat = 'I love that '
value = 0
for i in range(num):
	if num == 1:
		ans += hateit
		break
	if value == 0 or (value % 2 == 0 and value < num - 1):
		value += 1
		ans += hatethat
	if value % 2 != 0 and value < num - 1:
		value += 1
		ans += lovethat
	if value == num - 1 and value % 2 != 0:
		value += 1
		ans += loveit
	if value == num - 1 and value % 2 == 0:
		value += 1
		ans += hateit
print(ans)


n = int(input())
hate = 'I hate that '
love = 'I love that '
hate1 = 'I hate it '
love1 = 'I love it '
count = 1
reply = ''
while count <= n:
	if count == n:
		if count % 2 == 0:
			reply += love1
		else:
			reply += hate1
		count += 1
	else:
		if count % 2 == 0:
			reply += love
		else:
			reply += hate
		count += 1
print(reply)


n_of_layers = int(input(''))
output = ''
for count in range(1, n_of_layers + 1):
	if count in range(1, n_of_layers + 1, 2):
		output += 'I hate '
	else:
		output += 'I love '
	if count == n_of_layers:
		output += 'it'
	else:
		output += 'that '
print(output)


n = int(input())
l = ['I hate' if x % 2 == 0 else 'I love' for x in range(n)]
print(' that '.join(l) + ' it')


n = int(input())
arr = ['I hate', 'I love']
days = []
for i in range(n):
	days.append(arr[i % 2])
print(' that '.join(days) + ' it')


a = int(input())
i = 1
g = []
while i < a + 1:
	if i % 2 == 1 and i != a:
		g.append('I hate that')
	if i % 2 == 1 and i == a:
		g.append('I hate it')
	if i % 2 == 0 and i != a:
		g.append('I love that')
	if i % 2 == 0 and i == a:
		g.append('I love it')
	i = i + 1
print(' '.join(g))


n = input()
i_hate = 'I hate'
i_love = 'I love'
that = ' that '
it = ' it'
answer = ''
for i in range(1, int(n) + 1):
	if i % 2 == 0:
		if answer != '':
			answer = answer + that + i_love
		else:
			answer = answer + i_love
	elif answer != '':
		answer = answer + that + i_hate
	else:
		answer = answer + i_hate
answer = answer + it
print(answer)


n = int(input())
str = ''
for i in range(n):
	if i % 2 == 0:
		str += 'I hate that '
	else:
		str += 'I love that '
list = str.split()
list[-1] = 'it'
print(' '.join(list))


wordlist = ['that I hate ', 'that I love ']
N = int(input())
ans = 'I hate '
for i in range(1, N):
	ans = ans + wordlist[i % 2]
ans = ans + 'it'
print(ans)


import sys
data = sys.stdin.readlines()
this = int(data[0]) - 1
answer = 'I hate'
for i in range(int(this)):
	if i % 2 == 0:
		answer += ' that I love'
	else:
		answer += ' that I hate'
print(answer + ' it')


n = int(input())
s1 = 'I hate that'
s2 = 'I love that'
res = ''
if n == 1:
	print('I hate it')
	exit(0)
for i in range(1, n):
	if i == 1:
		res += s1
		continue
	if i % 2 == 0:
		res += ' ' + s2
	else:
		res += ' ' + s1
if n % 2 != 0:
	res += ' I hate it'
else:
	res += ' I love it'
print(res)


n = int(input())
l = 'I love '
l1 = 'that I love '
h = 'I hate '
h1 = 'that I hate '
s = h
n = n - 1
c = 0
while n > 0:
	if c == 0:
		s = s + l1
		c = 1
	else:
		s = s + h1
		c = 0
	n = n - 1
print(s + 'it')


a = ' I hate that'
b = ' I love that'
s = ''
for i in range(int(input())):
	s += a
	(a, b) = (b, a)
s = s.split()
s.pop()
s.append('it')
for i in s:
	print(i, end=' ')


t = int(input())
s1 = 'I hate'
s2 = 'I love'
r = ''
for i in range(0, t):
	if i % 2 == 0:
		r = r + s1
		if i == t - 1:
			r = r + ' it' + ' '
		else:
			r = r + ' that' + ' '
	else:
		r = r + s2
		if i == t - 1:
			r = r + ' it' + ' '
		else:
			r = r + ' that' + ' '
print(r.rstrip())


N = int(input())
first_hate = 'I hate it'
two_hate = 'I hate that'
first_love = 'I love it'
two_love = 'I love that'
final = ''
for el in range(N):
	if el == N - 1:
		if el % 2 == 0:
			final += first_hate
		else:
			final += first_love
	elif el % 2 == 0:
		final += two_hate + ' '
	else:
		final += two_love + ' '
print(final)


l = int(input())
f = 'I '
i = 1
while i <= l:
	if i % 2 == 0:
		f += 'love'
	else:
		f += 'hate'
	i += 1
	if i <= l:
		f += ' that I '
f += ' it'
print(f)


n = int(input())
res = ''
flag = True
for i in range(n - 1):
	res += 'I hate that ' if flag else 'I love that '
	flag = not flag
res += 'I hate it' if flag else 'I love it'
print(res)


inp = int(input())
arr = []
if inp == 1:
	print('I hate it')
	exit()
i = 1
while i <= inp - 1:
	if i % 2 > 0:
		arr.append('I hate that')
	else:
		arr.append('I love that')
	i += 1
if inp % 2 > 0:
	arr.append('I hate it')
else:
	arr.append('I love it')
j = 0
b = ' '.join(arr)
print(b)


n = int(input())
s = ''
for x in range(1, n + 1):
	if x == n and x % 2 == 0:
		s += 'I love it '
	elif x == n and x % 2 != 0:
		s += 'I hate it '
	elif x % 2 == 0:
		s += 'I love that '
	else:
		s += 'I hate that '
print(s.strip())


n = int(input())
strings = ['that I love ', 'that I hate ']
print('I hate {0}it'.format(''.join([strings[m % 2] for m in range(n - 1)])))


p = int(input())
if p == 1:
	t = 'I hate it'
	print(t)
else:
	t = 'I hate'
	r = 2
	while r <= p:
		if r % 2 == 0:
			t = t + ' that I love'
		else:
			t = t + ' that I hate'
		r = r + 1
	print(t + ' it')


n = int(input())
i = 0
while i < 101 and i < n:
	if n == 1:
		print('I hate', end=' ')
		break
	if i % 2 == 0:
		print('I hate', end=' ')
	else:
		print('I love', end=' ')
	i += 1
	if i < n:
		print('that', end=' ')
print('it')


def hulk(n):
	s = ''
	for i in range(n):
		if i % 2 == 0:
			s = s + 'I hate that '
		else:
			s = s + 'I love that '
	s = s[:7 + 12 * (n - 1)] + 'it'
	print(s)
n = input()
n = int(n)
hulk(n)


n = int(input())
for nr in range(n):
	str1 = 'I hate ' if nr % 2 == 0 else 'I love '
	str2 = 'it' if nr == n - 1 else 'that '
	print(str1 + str2, end='')


a = 'I hate '
a1 = 'that I hate '
b1 = ' that I love '
n = int(input())
for i in range(1, n):
	if i % 2 != 0:
		a += b1
	else:
		a += a1
print(a + 'it')


def love_hate(num):
	sing = 'I hate that'
	words = 'I hate that I love that '
	hates = num % 2
	loves_hates = num // 2
	phrase = words * loves_hates
	if hates == 1:
		phrase += sing
		phrase = phrase[:-4]
		phrase += 'it'
	else:
		phrase = phrase[:-5]
		phrase += 'it'
	return phrase
num = int(input())
print(love_hate(num))


a = input()
a = int(a)
b = ['I hate ', 'I love ']
c = a
bb = 0
i = 0
v = ''
while True:
	if bb == c:
		v = v + 'it'
		break
	if i > 1:
		i = 0
	v = v + b[i]
	if c > 1 and bb != c - 1:
		v = v + 'that '
	i += 1
	bb += 1
print(v)


import sys

def main():
	line = input()
	n = int(line)
	for i in range(0, n):
		if i % 2 == 0:
			sys.stdout.write('I hate ')
		else:
			sys.stdout.write('I love ')
		if i != n - 1:
			sys.stdout.write('that ')
	sys.stdout.write('it')
main()


def solve():
	n = int(input())
	i = 0
	seq = []
	for _ in range(n):
		if i % 2 == 0:
			seq.append('I hate ')
		else:
			seq.append('I love ')
		i += 1
	last = seq.pop() + 'it'
	seq2 = []
	for _ in range(len(seq)):
		char = seq.pop(0) + 'that'
		seq2.append(char)
	seq2.append(last)
	d = [print(x, end=' ') for x in seq2]
	print('\n')
solve()


n = int(input())
(strHate, strLove) = ('I hate', 'I love')
strResult = ''
for i in range(n):
	strResult += strHate if not i % 2 else strLove
	strResult += ' it' if i == n - 1 else ' that '
print(strResult)


N = int(input())
k = 0
Mensaje = ''
while k < N:
	k += 1
	if k % 2 == 0:
		Mensaje = Mensaje + 'I love'
	else:
		Mensaje = Mensaje + 'I hate'
	if k != N:
		Mensaje = Mensaje + ' that '
	else:
		Mensaje = Mensaje + ' it'
print(Mensaje)


x = int(input())
y = 'I hate that '
z = 'I love that '
k = 'I hate it'
c = 1
if x == 1:
	print(k)
	exit()
elif x == 0:
	exit()
while c <= int(x) + 1:
	if c == int(x) + 1:
		print(' it', end='')
	elif c == x and c % 2 == 0:
		print('I love', end='')
	elif c == x and c % 2 != 0:
		print('I hate', end='')
	elif c % 2 == 0:
		print(z, end='')
	elif c % 2 != 0:
		print(y, end='')
	c += 1


def hulkSpeech(n):
	if n == 1:
		return 'I hate it'
	if n == 2:
		return 'I hate that I love it'
	prefix = ['I hate ', 'I love ']
	if n % 2 == 0:
		return 'that '.join(prefix * (n // 2)) + 'it'
	else:
		return 'that '.join(prefix * (n // 2)) + 'that I hate it'
n = int(input())
print(hulkSpeech(n))


from sys import stdin
n = int(stdin.read().rstrip())
result = ['I hate that I love that' for i in range((n - 1) // 2)]
result.append('I hate it' if n % 2 == 1 else 'I hate that I love it')
print(' '.join(result))


n = int(input())
s = 'I hate it'
t = 'I hate that I love it'
x = 'I hate that I love that '
if n == 1:
	print(s)
elif n == 2:
	print(t)
elif n % 2 == 0:
	print((n // 2 - 1) * x + 'I hate that I love it')
else:
	print((n - 1) // 2 * x + 'I hate it')


n = int(input())
sum = 1
x = 'I hate that'
y = 'I love that'
for i in range(n):
	if i == n - 1:
		if sum % 2 == 1:
			print(x[:-4] + 'it', end=' ')
			break
		else:
			print(y[:-4] + 'it', end=' ')
			break
	if sum % 2 == 1:
		print(x, end=' ')
	else:
		print(y, end=' ')
	sum += 1


def test():
	n = int(input())
	out = ['I', 'hate', 'it']
	if n == 1:
		print('I hate it')
		return
	n -= 1
	while n:
		out.insert(2, 'that I love' if n % 2 else 'that I hate')
		n -= 1
	print(' '.join(out))
test()


def layer(n):
	cont = 1
	a = ''
	while cont <= n:
		if cont < n:
			if cont % 2 != 0:
				a += 'I hate that '
			else:
				a += 'I love that '
		elif cont == n:
			if n % 2 != 0:
				a += 'I hate it '
			else:
				a += 'I love it '
		cont += 1
	return a
print(layer(int(input())))


n = int(input())
o = 'I hate it'
p = 'I love it'
op = 'I hate that'
po = 'I love that'
if n % 2 == 0 and n != 2:
	print(op + (n - 2) // 2 * (' ' + po + ' ' + op) + ' ' + p)
elif n % 2 != 0 and n != 1:
	print(op + (n - 2) // 2 * (' ' + po + ' ' + op) + ' ' + po + ' ' + o)
elif n == 2:
	print(op, p)
elif n == 1:
	print(o)


n = int(input())
a = 'I hate that '
b = 'I love that '
a1 = 'I hate it '
b1 = 'I love it '
for i in range(1, n + 1):
	if i != n:
		if i % 2 == 1:
			print(a, end='')
		else:
			print(b, end='')
	elif i % 2 == 1:
		print(a1, end='')
	else:
		print(b1, end='')


import math
s = int(input())
d = ''
for i in range(s):
	if i % 2 == 0:
		d += 'I hate '
	elif i % 2 == 1:
		d += 'I love '
	if i == s - 1:
		d += 'it'
	else:
		d += 'that '
print(d)


that = 'I hate that I love that '
love2 = 'I hate that I love it'
love = 'I love it'
hate = 'I hate it'
x = int(input())
rep = x // 2
if x == 1:
	print('I hate it')
elif x == 2:
	print('I hate that I love it')
elif x % 2 == 0 and x != 2:
	print(that * (rep - 1) + love2)
elif x % 2 and x != 1:
	print(that * rep + hate)


num = eval(input())
it = 'it'
answer = ''
if num == 1:
	print('I hate it')
else:
	i = 1
	while i <= num:
		if i % 2 != 0 and i == 1:
			answer += 'I hate that'
		if i % 2 != 0 and i > 1 and (i != num):
			answer += ' I hate that'
		if i % 2 == 0 and i != num:
			answer += ' I love that'
		if i % 2 != 0 and i == num:
			answer += ' I hate it'
		if i % 2 == 0 and i == num:
			answer += ' I love it'
		i += 1
print(answer)


layer = int(input())
love = 'I love it'
hate = 'I hate it'
expression = ''
x = 0
while layer - x - 1 > 0:
	if (layer - x) % 2 == 0:
		expression = 'I hate that ' + expression
	else:
		expression = 'I love that ' + expression
	x = x + 1
if layer % 2 == 0:
	print(expression + love)
else:
	print(expression + hate)


import sys
from collections import defaultdict, deque
from math import sqrt

def input():
	return sys.stdin.readline()[:-1]
n = int(input())
arr = []
for i in range(n):
	if i % 2 == 0:
		arr.append('I hate')
	else:
		arr.append('I love')
	if i == n - 1:
		arr.append('it')
	else:
		arr.append('that')
print(*arr)


n = int(input())
s = [0] * 2
s[0] = 'I hate'
s[1] = 'I love'
aa = 'it'
bb = 'that'
for i in range(n):
	if i % 2 == 0:
		print(s[i % 2], end=' ')
	else:
		print(s[i % 2], end=' ')
	if i != n - 1:
		print(bb, end=' ')
	else:
		print(aa)


n = int(input())
if n % 2 == 1:
	print(n // 2 * 'I hate that I love that ', 'I hate it', sep='')
else:
	print((n - 1) // 2 * 'I hate that I love that ', 'I hate that I love it', sep='')


n = int(input())
feeling = 'I hate '

def exp_feel(num):
	global feeling
	buff = 'hate'
	while num > 1:
		if buff == 'hate':
			feeling += 'that I love '
			buff = 'love'
			num -= 1
		else:
			feeling += 'that I hate '
			buff = 'hate'
			num -= 1
	if num == 1:
		feeling += 'it'
		return
exp_feel(n)
print(feeling)


n = int(input())
s = []
for i in range(n):
	if i % 2 == 0:
		s.append('I hate ')
	else:
		s.append('I love ')
out = 'that '.join(s)
out += 'it'
print(out)


def fun(s):
	if s == 1:
		return 'I hate '
	elif s % 2 == 0:
		return fun(s - 1) + 'that I love '
	else:
		return fun(s - 1) + 'that I hate '
x = int(input())
print(fun(x) + 'it')


def main(col):
	retlist = []
	if col == 1:
		return 'I hate it'
	elif col % 2 == 0:
		kol = int(col / 2)
		for i in range(kol):
			retlist.append(string)
		return ' that '.join(retlist) + ' it'
	else:
		kol = int((col - 1) / 2)
		for i in range(kol):
			retlist.append(string)
		return ' that '.join(retlist) + ' that I hate it'
col = int(input())
string = 'I hate that I love'
print(main(col))


n = int(input())
line = None
for i in range(n):
	if i % 2 == 0:
		if line is None:
			line = 'I hate'
		else:
			line = f'{line} that I hate'
	else:
		line = f'{line} that I love'
print(f'{line} it')


R = lambda : [*map(int, input().split())]
a = R()
n = 1
s = ''
for i in range(a[0]):
	if n == 1:
		s += 'I hate '
	else:
		s += 'I love '
	if i + 1 == a[0]:
		s += 'it '
	else:
		s += 'that '
	n *= -1
print(s)


end = ' it'
love = ' I love'
hate = ' I hate'
join = ' that'
times = int(input())
out = ''
last = False
for each in range(1, times + 1):
	if each == times:
		last = True
	if each % 2:
		out += hate
	else:
		out += love
	if last:
		out += end
	else:
		out += join
print(out.strip())


n = int(input())
b = True
while n != 0:
	if b:
		print('I hate', end='')
	else:
		print('I love', end='')
	if n != 1:
		print(' that ', end='')
	n -= 1
	b = not b
print(' it')


n = int(input())
layers = ['I hate it', 'I love it']
output = ''
for x in range(1, n + 1):
	if n == 1:
		output = layers[0]
		break
	if x % 2 == 0:
		output += ' ' + layers[1]
	else:
		output += ' ' + layers[0]
output_string = output.strip().replace('it', 'that', n - 1)
print(output_string)


n = int(input())
x = 'I hate'
y = 'I love'
z = 'that'
ansl = []
fh = 1
fl = 0
while 1:
	if fh:
		ansl.append(x)
		ansl.append(z)
		fh = 0
		fl = 1
		n -= 1
	if n == 0:
		break
	if fl:
		ansl.append(y)
		ansl.append(z)
		fl = 0
		fh = 1
		n -= 1
	if n == 0:
		break
ansl.pop(len(ansl) - 1)
ansl.append('it')
for i in ansl:
	print(i, end=' ')


eE = 'I love it'
eO = 'I hate it'
bO = 'I hate that '
bE = 'I love that '
res = ''
n = int(input())
for i in range(n):
	if (i + 1) % 2 == 0 and i + 1 != n:
		res += bE
	elif (i + 1) % 2 != 0 and i + 1 != n:
		res += bO
	elif (i + 1) % 2 == 0:
		res += eE
	else:
		res += eO
print(res)


n = int(input())
x = ['I hate', 'I love'] * n
print(' that '.join(x[:n]), 'it')


n = int(input())
d = 'I hate it'
y = 'I love it'
x = []
z = []
for i in range(n):
	x.append(d)
	x.append(y)
for i in range(n):
	z.append(x[i])
for i in range(len(z) - 1):
	if z[i] == 'I hate it':
		z[i] = 'I hate that'
	else:
		z[i] = 'I love that'
print(*z, end=' ')


def main():
	n = int(input())
	hate_message = 'I hate'
	love_message = 'I love'
	sentence = []
	for i in range(1, n + 1):
		if i % 2:
			sentence.append(hate_message)
		else:
			sentence.append(love_message)
	sentence = ' that '.join(sentence) + ' it'
	print(sentence)
main()


import sys
iter = int(input())
string = 'I hate '
hate = False
while iter > 1:
	if hate:
		string = string + 'that I hate '
		hate = False
	else:
		string = string + 'that I love '
		hate = True
	iter = iter - 1
string = string + 'it'
print(string)


n = int(input())
arr = []
for i in range(n):
	if i % 2 == 0:
		arr.append('hate')
	else:
		arr.append('love')
s = ''
for i in range(n):
	if i + 1 == n:
		s += 'I ' + arr[i] + ' it '
	else:
		s += 'I ' + arr[i] + ' that '
print(s)


n = int(input())
asd = 'I hate that'
bb = 1
if n % 2 == 0:
	while bb < n - 1:
		asd = asd + ' I love that I hate that'
		bb = bb + 2
	asd = asd + ' I love it'
elif n == 1:
	asd = 'I hate it'
else:
	while bb < n - 2:
		asd = asd + ' I love that I hate that'
		bb = bb + 2
	asd = asd + ' I love that I hate it'
print(asd)


while True:
	n = int(input())
	if n >= 1 and n <= 100:
		break
ch1 = 'I hate'
for i in range(2, n + 1):
	if i % 2 == 0:
		ch1 += ' that ' + 'I love'
	else:
		ch1 += ' that ' + 'I hate'
print(ch1 + ' it')


e = int(input())
a = 'that I love '
b = 'that I hate '
c = 'it'
halk = 'I hate '
middle = ''
while e > 1:
	if e % 2 != 0:
		middle = b + middle
	else:
		middle = a + middle
	e -= 1
print(halk + middle + c)


from itertools import cycle, islice
n = int(input())
print('I ' + ' that I '.join(islice(cycle(['hate', 'love']), n)) + ' it')


a = int(input())
c = 0
while a > c:
	c += 1
	if c % 2 == 0:
		print('I love', end=' ')
	else:
		print('I hate', end=' ')
	if a != c:
		print('that', end=' ')
	else:
		print('it', end=' ')


k = int(input())
a = ['I hate', 'I love'] * k
print(' that '.join(a[:k]) + ' it')


n = int(input())
s1 = 'I hate '
s2 = 'I love '
sa = 'that '
sb = 'it'
ms = ''
for x in range(1, n + 1):
	ms += s2 if x % 2 == 0 else s1
	ms += sb if x >= n else sa
print(ms)


n = int(input())
i = 0
list1 = []
while i < n:
	if i % 2 == 0:
		list1.append('I hate')
	else:
		list1.append('I love')
	if i < n - 1:
		list1.append('that')
	else:
		list1.append('it')
	i += 1
for i in list1:
	print(i, end=' ')


n = int(input())
o = 'I hate it'
e = 'I love it'
l = 'I love that '
h = 'I hate that '
s = ''
if n == 1:
	s = o
else:
	for i in range(n - 1):
		if i % 2 == 0:
			s = s + h
		else:
			s = s + l
	if n % 2 == 0:
		s = s + e
	else:
		s = s + o
print(s)


from collections import deque
import math
n = int(input())
for i in range(1, n):
	if i % 2 == 1:
		print('I hate that', end=' ')
	else:
		print('I love that', end=' ')
if n % 2 == 1:
	print('I hate it')
else:
	print('I love it')


inp = int(input())
Res = ''
temp = 1
while temp <= inp:
	if temp % 2 != 0:
		Res += 'I hate '
	elif temp % 2 == 0:
		Res += 'I love '
	if temp == inp:
		Res += 'it'
	else:
		Res += 'that '
	temp += 1
print(Res)


num = int(input(''))
s = str('I hate it')
if num >= 2:
	for i in range(2, num + 1):
		list = []
		list = s.split(' ')
		size = len(list)
		for j in range(0, size):
			h = str(list[j])
			if h == 'it':
				list[j] = 'that'
		q = ''
		for j in range(0, size):
			if not j == size - 1:
				q = q + str(list[j]) + ' '
			else:
				q = q + str(list[j])
		s = q
		if i % 2 == 0:
			s = s + ' I love it'
		elif i % 2 == 1:
			s = s + ' I hate it'
print(s, end='')


from sys import stdin, stdout
n = int(stdin.readline().strip())
hate = True
for i in range(n):
	if hate:
		stdout.write('I hate ')
	else:
		stdout.write('I love ')
	hate = not hate
	if i == n - 1:
		stdout.write('it\n')
	else:
		stdout.write('that ')


a = int(input())
s = ''
for i in range(1, a + 1):
	if i == a and i % 2 == 0:
		s += 'I love it'
	elif i == a and i % 2 == 1:
		s += 'I hate it'
	elif i % 2 == 0:
		s += 'I love that '
	else:
		s += 'I hate that '
print(s)


N = int(input())
Str = ''
for i in range(1, N + 1):
	if i % 2 != 0:
		Str = Str + ' ' + 'I hate it'
	else:
		Str = Str + ' ' + 'I love it'
NStr = Str[:len(Str) - 2]
NStr1 = NStr[1:]
NStr2 = NStr1.replace('it', 'that')
print(NStr2 + 'it')


import sys
n = int(sys.stdin.readline())
odd = True
s1 = 'I hate that '
s2 = 'I love that '
s = ''
for i in range(n):
	if odd:
		s += s1
	else:
		s += s2
	odd = not odd
print(s[:-5] + 'it')


__author__ = 'Ismail_A'
import math

def read():
	inputs = input().strip()
	return list(map(int, inputs.split()))

def read_pair():
	return map(int, input().split(' '))
n = int(input())
for i in range(n - 1):
	if i % 2 == 0:
		print('I hate that ', end='')
	else:
		print('I love that ', end='')
if n % 2 == 0:
	print('I love it')
else:
	print('I hate it')


n = int(input())
hate_str = 'I hate '
love_str = 'I love '
feeling = ''
for i in range(0, n):
	if i % 2:
		feeling += love_str
	else:
		feeling += hate_str
	if i != n - 1:
		feeling += 'that '
feeling += 'it'
print(feeling)


n = int(input())
str = ''
i = 1
while True:
	if i == 1:
		str += 'I hate it'
	elif i % 2 != 0:
		str = str.replace('it', 'th', 1)
		str += 'at I hate it'
	elif i % 2 == 0:
		str = str.replace('it', 'th', 1)
		str += 'at I love it'
	i += 1
	if i > n:
		break
print(str)


while True:
	n = int(input(''))
	if 0 < n < 101:
		break
a = 'I'
b = 'hate'
c = 'love'
d = 'that'
e = 'it'
l = list()

def n1(n):
	if n == 1:
		z = 'I hate it'
		l.append(z)
	return l

def n2(n):
	for i in range(n):
		l.append(a)
		if i % 2 == 0:
			l.append(b)
		else:
			l.append(c)
		if i < n - 1:
			l.append(d)
	l.append(e)
	return l
if n == 1:
	n1(n)
else:
	n2(n)
s = ' '.join(l)
print(s)


n = int(input())
helpWord = ' that '
n1 = 'I love'
n2 = 'I hate'
answer = 'I hate'
index = 0
n = n - 1
for i in range(n):
	answer += helpWord
	if i % 2 == 0:
		answer += n1
	else:
		answer += n2
answer += ' it'
print(answer)


n = int(input())
r = 'that '
x = 'it '
m = 'I hate '
y = 'I love '
sum1 = ''
t = n - 1
i = 1
while i <= n:
	if i % 2 == 1:
		sum1 += m
		if t > 0:
			sum1 += r
			t -= 1
	elif i % 2 == 0:
		sum1 += y
		if t > 0:
			sum1 += r
			t -= 1
	i += 1
sum1 += x
print(sum1)


n = int(input())
h = 'I hate'
l = 'I love'
t = 'that'
i = 'it'
ll = []
if n == 1:
	print('I hate it')
else:
	for j in range(1, n + 1):
		if j % 2 == 1:
			ll.append(h)
		else:
			ll.append(l)
		if j < n:
			ll.append(t)
	ll.append(i)
print(' '.join(ll))


n = int(input())
f = 'I hate'
i = 1
while i != n and n != 1:
	if i % 2 == 1:
		f += ' that I love'
	else:
		f += ' that I hate'
	i += 1
f += ' it'
print(f)


n = int(input())
p = 'I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love that I hate that I love'
print(p[:6 * n + 6 * (n - 1)] + ' it')


N = int(input())
i = 1
Hulksay = 'I hate it'
while i in range(N):
	if i % 2 == 1:
		Hulksay = Hulksay[:-2] + 'that I love it'
	else:
		Hulksay = Hulksay[:-2] + 'that I hate it'
	i = i + 1
print(Hulksay)


e1 = 'I hate that'
e2 = 'I love that'
n = int(input())
i = 1
li = []
if n == 1:
	print('I hate it')
else:
	i = 1
	while i <= n:
		li.append(e1)
		i += 1
		li.append(e2)
		i += 1
	if n % 2 != 0:
		li.pop()
		li.pop()
	else:
		li.pop()
	if n % 2 != 0:
		print(' '.join(li) + ' I hate it')
	else:
		print(' '.join(li) + ' I love it')


n = int(input())
a = ' I hate'
b = ' I love'
c = 'it'
d = ' that'
t = ''
for i in range(1, n + 1):
	if i % 2 != 0:
		t += a
		t += d
	if i % 2 == 0:
		t += b
		t += d
t = t[1:-4]
t += c
print(t)


n = int(input())
s = [' I hate ', ' I love '] * n
ans = 'that'.join(s[:n])
answer = ans + 'it'
print(answer)


n = int(input())
lst = ['I hate', 'I love']
print(*(lst[i % 2] for i in range(n)), sep=' that ', end=' it')


n = int(input())
hulk1 = 'I hate'
hulk2 = 'I love'
k = 1
bunner = ''
while k <= n:
	if k % 2 == 1:
		bunner = bunner + hulk1
	else:
		bunner = bunner + hulk2
	if k != n:
		bunner = bunner + ' that '
	else:
		bunner = bunner + ' it'
	k = k + 1
print(bunner)


d = 'I hate'
f = ' it'
n = int(input())
if n > 1:
	for i in range(2, n + 1):
		if i % 2:
			d += ' that I hate'
		else:
			d += ' that I love'
print(d + f)


lh = ['I hate ', 'I love ']
ans = 'I hate '
n = int(input())
for i in range(n - 1):
	ans += 'that ' + lh[(i + 1) % 2]
print(ans + 'it')


g = int(input())
print('I hate ', end='')
for y in range(g - 1):
	if y % 2 == 0:
		print('that I love ', end='')
	else:
		print('that I hate ', end='')
print('it')


import sys
n = sys.stdin.readline()
n = int(n)
temp = ''
for i in range(n):
	if i % 2 == 0:
		temp += 'I hate that '
	else:
		temp += 'I love that '
temp = temp[:-5]
temp += 'it'
print(temp)


n = int(input())
a = ['I hate ', 'I love ']
c = 'that '
d = ' it'
st = str()
j = 0
for i in range(n):
	if i == n - 1:
		st += a[j] + d
	else:
		st += a[j] + c
	j += 1
	if j > 1:
		j = 0
print(st)


n = int(input())
b = n // 2
if n % 2 == 0:
	string = 'I hate that I love that ' * (b - 1)
	string += 'I hate that I love it'
else:
	string = 'I hate that I love that ' * b
	string += 'I hate it'
print(string)


def a(n):
	if n == 1:
		return ''
	b = 'I love that ' if n % 2 else 'I hate that '
	return a(n - 1) + b
n = int(input())
b = 'I hate it' if bool(n % 2) else 'I love it'
print(a(n) + b)


n = int(input())
a = ['hate', 'love']
for _ in range(0, n):
	if _ > 0:
		print('that', end=' ')
	print('I', end=' ')
	print(a[_ % 2], end=' ')
print('it')


n = int(input())
s = ''
while n > 0:
	s += 'I hate that '
	n = n - 1
	if n:
		s += 'I love that '
	n -= 1
print(s[:len(s) - 5] + 'it')


def func(n):
	i = 1
	res = ''
	while i <= n:
		if i == n:
			if i % 2 == 0:
				res += 'I love it '
			else:
				res += 'I hate it '
			return res
		if i % 2 == 0:
			res += 'I love that '
		else:
			res += 'I hate that '
		i += 1
n = int(input())
print(func(n))


feeling_1 = 'I hate '
feeling_2 = 'I love '
middle = 'that '
end = 'it'
result = ''
i = 1
n = int(input())
for i in range(n):
	if i % 2 == 0:
		result += feeling_1
	else:
		result += feeling_2
	if i == n - 1:
		result += end
	else:
		result += middle
result = result.strip()
print(result)


n = int(input())
oddString = 'I hate '
evenString = 'I love '
endingLetter1 = 'it'
endingLetter2 = 'that '
result = ''
for i in range(1, n + 1):
	if i % 2 == 0:
		result += evenString
		if i == n:
			result += endingLetter1
		else:
			result += endingLetter2
	else:
		result += oddString
		if i == n:
			result += endingLetter1
		else:
			result += endingLetter2
print(result)


def solve(n):
	ans = []
	for i in range(1, n + 1):
		ans.append('I')
		if i % 2 == 1:
			ans.append('hate')
		else:
			ans.append('love')
		if i == n:
			ans.append('it')
		else:
			ans.append('that')
	return ' '.join(ans)

def main():
	n = int(input())
	print(solve(n))
main()


n = int(input())
h = 'I hate that '
l = 'I love that '
ans = ''
i = 0
while i < n - 1:
	if i & 1:
		ans += l
	else:
		ans += h
	i += 1
if n & 1:
	ans += 'I hate it'
else:
	ans += 'I love it'
print(ans)


n = int(input())
s = ''
for _ in range(n):
	if _ % 2 == 0:
		s += 'I hate '
	else:
		s += 'I love '
	if _ + 1 < n:
		s += 'that '
print(s + 'it')


n = int(input())
s = ''
strings = ['I hate', 'I love']
postfix = ' that '
i = 0
while i < n:
	if i % 2 == 0:
		s += strings[0] + postfix
	else:
		s += strings[1] + postfix
	i += 1
print(s[:-6] + ' it')


a = int(input())
res = ''
for x in range(a + 1):
	if x == 1:
		res = 'I hate it'
	elif x % 2 != 0:
		res = res.replace('it', 'that')
		res = res + ' I hate it'
	else:
		res = res.replace('it', 'that')
		res = res + ' I love it'
print(res)


emotion_total = int(input())
word_odd = 'I hate'
word_two = ' that '
word_even = 'I love'
last_word = ' it'
output = ''
emotion = 1
while emotion < emotion_total + 1:
	if emotion % 2 == 0:
		if emotion == 2:
			output = output + word_two + word_even
		else:
			output = output + word_two + word_even
	elif emotion == 1:
		output = word_odd
	else:
		output = output + word_two + word_odd
	emotion = emotion + 1
print(output + last_word)


n = int(input())
A = 'I hate '
B = 'I love '
x = 1
ans = ''
while n:
	if x == 1:
		ans = ans + A
		if n != 1:
			ans = ans + 'that '
		x = 2
		n -= 1
	elif x == 2:
		ans = ans + B
		if n != 1:
			ans = ans + 'that '
		x = 1
		n -= 1
print(ans + 'it')


n = int(input())
hate = 'I hate'
that = 'that'
love = 'I love'
it = 'it'
space = ' '
result = ''
i = 1
if n == 1:
	result = hate + space + it
if n > 1:
	while i <= n:
		if i % 2 == 1:
			result += hate + space
		if i % 2 == 0:
			result += love + space
		if i == n:
			result += space + it
		if i != n:
			result += that + space
		i += 1
print(result)


n = int(input())
ch1 = ''
for i in range(1, n + 1):
	if i % 2 == 0:
		ch1 = ch1 + 'I love that '
	else:
		ch1 = ch1 + 'I hate that '
ch1 = ch1[:12 * n - 5] + 'it'
print(ch1)


n = int(input())
a = []
for i in range(1, n + 1):
	if i % 2 == 1:
		a.append('I hate')
		a.append('that')
	else:
		a.append('I love')
		a.append('that')
for j in range(len(a) - 1):
	print(a[j], end=' ')
print('it')


n = int(input())
s1 = 'I hate'
s2 = 'I love'
t = ' that '
end = ' it'
s = ''
for i in range(n):
	if i % 2 == 0:
		s += s1
	else:
		s += s2
	if i != n - 1:
		s += t
	else:
		s += end
print(s)


n = int(input())
msg = ''
for i in range(n):
	msg = msg.replace('it', 'that')
	if i % 2 == 0:
		msg += 'I hate it '
	else:
		msg += 'I love it '
print(msg)


feelings = ''
n = int(input())
i = 1
while n > 0:
	if i % 2 == 0:
		feelings += 'I love that '
	else:
		feelings += 'I hate that '
	n -= 1
	i += 1
out = feelings.split()
out[-1] = 'it'
print(' '.join(out))


def hulk(n):
	love = 'I love that '
	hate = 'I hate that '
	love_koniec = 'I love it'
	hate_koniec = 'I hate it'
	odpowiedz = ''
	for i in range(n - 1):
		if i % 2 == 0:
			odpowiedz += hate
		else:
			odpowiedz += love
	if n % 2 == 0:
		odpowiedz += love_koniec
	else:
		odpowiedz += hate_koniec
	print(odpowiedz)
n = int(input())
hulk(n)


def feelings(n):
	if n == 1:
		return 'I hate it'
	buff = ''
	for i in range(n - 1):
		if i % 2 == 0:
			buff += 'I hate that '
		else:
			buff += 'I love that '
	if n % 2 == 0:
		buff += 'I love it'
	else:
		buff += 'I hate it'
	return buff
n = int(input())
print(feelings(n))


def get_input():
	layers_count = input()
	return int(layers_count)

def show_result(number):
	print(number)
suffix = ' it'
layer_one = 'I love'
layer_two = 'I hate'
connector = ' that '

def process(layers_count: int) -> str:
	layers = []
	for i in range(layers_count):
		if i % 2:
			layers.append(layer_one)
		else:
			layers.append(layer_two)
	return connector.join(layers) + suffix
layers_count = get_input()
r = process(layers_count)
show_result(r)


from math import *
n = int(input())
s1 = ['I hate that ', 'I love that ']
s2 = ['I hate ', 'I love ']
ans = ''
for i in range(n):
	if i == n - 1:
		ans += s2[i % 2]
	else:
		ans += s1[i % 2]
ans += 'it'
print(ans)


n = int(input())
s = 'I hate '
t = 'I love '
r = 'that '
q = ''
for i in range(n):
	if i % 2 != 0:
		q += t
	elif i % 2 == 0:
		q += s
x = q.replace('e I', 'e that I')
print(x + 'it')


n = int(input())
r = ''
for v in range(1, n + 1):
	i = 'I '
	f = ('hate', 'love')[v % 2 == 0]
	last = (' that ', ' it')[v == n]
	r += i + f + last
print(r)


p_in = int(input())
x = 0
while p_in > 0:
	if x % 2 == 0:
		print('I hate ', end='')
	elif x % 2 != 0:
		print('I love ', end='')
	p_in = p_in - 1
	x += 1
	if p_in > 0:
		print('that ', end='')
print('it')


result = ''
ih = 'I hate it '
il = 'I love it '
n = int(input())
for i in range(n):
	if i % 2 == 1:
		result += il
	else:
		result += ih
a = result.split()
for i in range(len(a) - 1):
	if a[i] == 'it':
		a[i] = 'that'
	else:
		continue
result = ''
for i in range(len(a)):
	result += a[i] + ' '
print(result)


n = int(input())
answer = ''
flag = 0
for i in range(n):
	flag = not flag
	if flag:
		if len(answer) > 0:
			answer = answer[:len(answer) - 2]
			answer += 'that '
		answer += 'I hate it'
	else:
		answer = answer[:len(answer) - 2]
		answer += 'that '
		answer += 'I love it'
print(answer)


layers = int(input())
feeling = str()
for layer in range(1, layers + 1):
	if layer % 2 == 1:
		feeling += 'that I hate '
	else:
		feeling += 'that I love '
feeling += 'it'
feeling = feeling.split(' ', 1)[-1].strip()
print(feeling)


n = int(input())
s = ['I hate', 'I love', 'that', 'it']
k = []
for i in range(1, n + 1):
	if i % 2 == 0:
		k.append(s[1])
	else:
		k.append(s[0])
	k.append(s[2])
k[len(k) - 1] = s[3]
print(' '.join(k))


n = int(input())
x = ''
s1 = 'I hate it'
s2 = 'I love it'
s3 = 'I hate that'
s4 = 'I love that'
for i in range(n):
	if i == n - 1 and n % 2 == 0:
		x = x + ' ' + s2
	if i == n - 1 and n % 2 != 0:
		x = x + ' ' + s1
	if i < n - 1 and i % 2 == 0:
		x = x + ' ' + s3
	if i < n - 1 and i % 2 != 0:
		x = x + ' ' + s4
print(x[1:])


def hulk(n, flag):
	if n == 1:
		if flag:
			return 'I hate it'
		else:
			return 'I love it'
	if flag:
		flag = False
		return 'I hate that ' + hulk(n - 1, flag)
	else:
		flag = True
		return 'I love that ' + hulk(n - 1, flag)
print(hulk(int(input()), True))


line1 = int(input())
res = ''
for i in range(1, line1 + 1):
	if i % 2 == 0:
		res += 'I love '
	else:
		res += 'I hate '
	res += 'that ' if i < line1 else ''
res += 'it'
print(res)


def bipolar_hulk(lvl):
	feelings = ''
	pos = 1
	for i in range(lvl):
		if pos == 1:
			feelings += 'I hate '
			pos += 1
			if i != lvl - 1:
				feelings += 'that '
		elif pos == 2:
			feelings += 'I love '
			pos -= 1
			if i != lvl - 1:
				feelings += 'that '
	feelings += 'it'
	return feelings
print(bipolar_hulk(int(input())))


n = int(input())
m = 'I hate it'
p = 'I love it'
sum = ''
for i in range(1, n + 1):
	if i % 2 != 0:
		if i >= 3:
			a = sum.replace('it', 'that ')
			sum = a + m
		else:
			sum = m
	else:
		a = sum.replace('it', 'that ')
		sum = a + p
print(sum)


n = int(input())
even_str = 'I love'
odd_str = 'I hate'
normal_joint = ' that '
finish_string = ' it'
ans = ''
for i in range(1, n + 1):
	if i % 2 == 0:
		ans += even_str
	else:
		ans += odd_str
	if i != n:
		ans += normal_joint
	else:
		ans += finish_string
print(ans)


def main():
	from sys import stdin, stdout
	s = ['I hate ', 'I love ']
	f = 0
	t = ''
	for _ in range(int(stdin.readline())):
		if f:
			if len(t):
				t = t + 'that ' + s[f]
			else:
				t += s[f]
			f = 0
		else:
			if len(t):
				t = t + 'that ' + s[f]
			else:
				t += s[f]
			f = 1
	t += 'it'
	stdout.write(t)
main()


num = int(input())
s = 'I hate that I love'
rez = ''
if num == 1:
	rez = 'I hate it'
elif num == 2:
	rez = 'I hate that I love it'
else:
	flagChetNum = True
	if num % 2 == 1:
		flagChetNum = False
		num == 1
	count = num // 2
	mas = [s] * count
	rez = ' that '.join(mas)
	if not flagChetNum:
		rez += ' that I hate it'
	else:
		rez += ' it'
print(rez)


levels = int(input())
feelings = ''
for i in range(levels):
	if i > 0:
		feelings += ' that '
	feelings += 'I hate' if i % 2 == 0 else 'I love'
feelings += ' it'
print(feelings)


def phrase(n):
	op = 'I hate'
	ep = 'I love'
	m = ' that '
	l = ' it '
	res = op
	for i in range(2, n + 1):
		res += m
		if i % 2 == 0:
			res += ep
		else:
			res += op
	res += l
	return res
n = int(input())
print(phrase(n))


a = 'I hate it'
c = 'I love it'
a1 = 'I hate that'
c1 = 'I love that'
n = int(input())
b = list()
if n % 2 == 1:
	while n != 1:
		if n % 2 == 1:
			b.append(a1)
			n -= 1
		elif n % 2 == 0:
			b.append(c1)
			n -= 1
	if n == 1:
		b.append(a)
		n -= 1
else:
	while n != 1:
		if n % 2 == 0:
			b.append(a1)
			n -= 1
		elif n % 2 == 1:
			b.append(c1)
			n -= 1
	if n == 1:
		b.append(c)
		n -= 1
print(*b)


n = int(input())
f = True
s = 'I hate '
for i in range(n - 1):
	if f:
		s += 'that I love '
		f = False
	else:
		s += 'that I hate '
		f = True
s += 'it'
print(s)


n = int(input())
if n == 1:
	print('I hate it')
else:
	string = 'I hate '
	cond = True
	for i in range(n - 1):
		if cond:
			string += 'that I love '
			cond = False
		else:
			string += 'that I hate '
			cond = True
	string += 'it'
	print(string)


n = int(input())
x = 1
s = ''
while x < n:
	if x % 2 == 1:
		s = s + 'that I love '
	else:
		s = s + 'that I hate '
	x = x + 1
print('I hate ' + s + 'it')


n = int(input())
m = ''
k = ''
for i in range(n):
	if i % 2 == 0:
		m = m + ' I hate that '
	else:
		m = m + ' I love that '
bulk = m.split()
bulk[-1] = 'it'
for j in bulk:
	k = k + j + ' '
print(k)


n = int(input())
a = 'I hate '
b = 'I love '
c = 'that '
d = 'it '
arr = [a, b]
string = ''
for index in range(0, n):
	if index % 2 == 0:
		string += arr[0]
	else:
		string += arr[1]
	if index == n - 1:
		string += d
	else:
		string += c
print(string)


def Hulk(n):
	str = ''
	if n == 1:
		return 'I hate it'
	else:
		for i in range(1, n + 1):
			if i % 2 == 0 and i != n:
				str = str + 'I love that '
			if i % 2 == 0 and i == n:
				str = str + 'I love '
			if i % 2 == 1 and i != n:
				str = str + 'I hate that '
			if i % 2 == 1 and i == n:
				str = str + 'I hate '
		str = str + 'it'
	return str
x = int(input())
print(Hulk(x))


a = int(input())
b = 'that I love'
c = 'that I hate'
print('I hate', end=' ')
for w in range(2, a + 1):
	if w % 2 == 0:
		print('that I love', end=' ')
	else:
		print('that I hate', end=' ')
print('it')


n = int(input())
k = 1
string = ''
while True:
	if not k % 2 == 0 and k <= n:
		string += 'I hate that '
		k += 1
	elif k % 2 == 0 and k <= n:
		string += 'I love that '
		k += 1
	else:
		break
string = string[:-5]
string += 'it'
print(string)


a = int(input())

def initial():
	return 'I hate'

def hate():
	return ' I hate '

def love():
	return ' I love '
sent = 'I hate'
cnt = 0
while cnt < a:
	if cnt == 0:
		pass
	elif cnt != 0 and cnt % 2 != 0:
		sent = sent + ' that ' + love()
	elif cnt != 0 and cnt % 2 == 0:
		sent = sent + ' that ' + hate()
	cnt = cnt + 1
sent = sent + ' it'
print(sent)


sn = 'I hate'
sk = 'it'
s = ''
n = int(input())
if n == 1:
	print('I hate it')
else:
	for i in range(n - 1):
		if i % 2 == 0:
			s = s + 'that I love '
		else:
			s = s + 'that I hate '
	print(sn, s + sk)


n = int(input())
a = ['I hate']
b = ['I love']
s = []
for i in range(n):
	if i % 2 != 0:
		s = s + b
	else:
		s = s + a
print(' that '.join(s) + ' it')


n = int(input())
x = 'I hate it'
y = 'I love it'
z = 'I hate that'
r = 'I love that'
if n == 1:
	print(x)
	exit()
if n == 2:
	print(z + ' ' + y)
	exit()
else:
	ans = z
	ans += ' '
	n -= 2
	c = 0
	while n > 0:
		if c == 0:
			ans += r
		else:
			ans += z
		ans += ' '
		c = c ^ 1
		n -= 1
	if c == 0:
		ans += y
	else:
		ans += x
	print(ans)


n = int(input())
x = 'I hate'
y = 'I love'
c = ' that '
e = ' it'
i = 1
s = x
while i < n:
	s += c + (x if i & 1 == 0 else y)
	i += 1
print(s + e)


def main():
	n = int(input())
	print(solve(n))

def solve(n):
	st = ''
	for i in range(1, n + 1):
		if i % 2 == 0:
			st += 'I love '
		else:
			st += 'I hate '
		if i == n:
			st += 'it'
		else:
			st += 'that '
	return st
main()


import sys
n = int(input())
a = 'I hate'
b = 'I love'
tail = 'it'
between = 'that'
for i in range(n):
	if i % 2 == 0:
		sys.stdout.write(a + ' ')
	else:
		sys.stdout.write(b + ' ')
	if i < n - 1:
		sys.stdout.write(between + ' ')
sys.stdout.write(tail + '\n')
sys.stdout.flush()


def func(n):
	hate = 1
	n = n - 1
	while n != 0:
		if hate == 0:
			hate = 1
			(print('that I hate', end=' '),)
		else:
			hate = 0
			(print('that I love', end=' '),)
		n = n - 1
	print('it')
n = input()
print('I hate', end=' ')
func(int(n))


n = int(input())
x = ['I hate that', 'I love that']
s = ''
for i in range(n):
	s += x[i % 2] + ' '
print(s[:-5] + 'it')


def solve(n):
	odd = 'I hate '
	even = 'I love '
	conn = 'that '
	end = 'it'
	result = odd
	for i in range(2, n + 1):
		result += conn
		if i % 2 == 0:
			result += even
		else:
			result += odd
	result += end
	return result
n = int(input())
print(solve(n))


n = int(input())
r = 'I hate'
for i in range(n - 1):
	r += ' that I ' + ['love', 'hate'][i & 1]
print(r + ' it')


def feeling_hulk(x):
	str1 = 'it '
	str2 = 'that '
	str3 = 'I hate '
	str4 = 'I love '
	str_result = ''
	type_result = False
	while x > 0:
		if type_result:
			str_result += str4
			type_result = False
		else:
			str_result += str3
			type_result = True
		if x == 1:
			str_result += str1
			x -= 1
			continue
		str_result += str2
		x -= 1
	return str_result
x = int(input())
print(feeling_hulk(x))


s = int(input())
a = 'I hate'
b = 'I love'
c = 'that'
w = []
for i in range(s):
	if i % 2 == 0:
		w.append(a)
		w.append(c)
	else:
		w.append(b)
		w.append(c)
w[-1] = 'it'
print(' '.join(w))


n = int(input(''))
count = 1
output = ''
if n > 0:
	output += 'I hate '
while count != n:
	if count % 2 == 1:
		output += 'that I love '
		count += 1
	else:
		output += 'that I hate '
		count += 1
output += 'it'
print(output)


n = int(input())
banner = 'I hate it'
list = banner.split()
for i in range(1, n):
	if i % 2 == 1:
		list.pop()
		list.append('that')
		list.append('I')
		list.append('love')
		list.append('it')
	if i % 2 == 0:
		list.pop()
		list.append('that')
		list.append('I')
		list.append('hate')
		list.append('it')
for x in list:
	print(x, end=' ')


n = int(input())
string1 = 'I hate that'
string2 = 'I love that'
string3 = 'I hate it'
string4 = 'I love it'
feelings = ''
for i in range(1, n + 1):
	if i < n and i % 2 != 0:
		feelings += string1
	elif i < n and i % 2 == 0:
		feelings += string2
	elif i == n and i % 2 != 0:
		feelings += string3
	elif i == n and i % 2 == 0:
		feelings += string4
	feelings += ' '
print(feelings)


def main():
	x = int(input())
	i = 0
	diff = 0
	n = 'I hate '
	m = 'I love '
	while i < x:
		if diff % 2 == 0:
			print(n, end='')
		else:
			print(m, end='')
		if i + 1 == x:
			print('it')
		else:
			print('that ', end='')
		i += 1
		diff += 1
main()


n = int(input())
li = list()
for i in range(n):
	if i % 2 == 0:
		li.append('I hate that')
	else:
		li.append('I love that')
a = ' '.join(li)
a = a[:-4] + 'it'
print(a)


a = int(input())
b = []
if a == 1:
	b.append('I hate ')
if a % 2 == 0:
	b.append((a // 2 - 1) * 'I hate that I love that ' + 'I hate that I love ')
if a % 2 != 0 and a != 1:
	b.append(a // 2 * 'I hate that I love that ' + 'I hate ')
c = ' that '.join(b)
print(c, end='')
print('it')


n = int(input())
a = []
for i in range(n):
	a.append('I hate' if i % 2 == 0 else 'I love')
print(*a, sep=' that ', end=' it')


from sys import stdin as input, stdout as print
layers = int(input.readline())
result = 'I hate'
flag = True
while layers != 1:
	if flag:
		result += ' that I love'
		flag = False
		layers -= 1
	else:
		result += ' that I hate'
		flag = True
		layers -= 1
print.write(result + ' it')


fbi = int(input())
bruce = 'I hate'
for i in range(fbi - 1):
	if i % 2 == 0:
		bruce += ' that I love'
	else:
		bruce += ' that I hate'
print(bruce + ' it')


n = int(input())
k = ['I hate', 'I love'] * 100
print(' that '.join(k[:n]) + ' it')


layers = int(input())
statement = 'I'
for i in range(layers):
	if i % 2 == 0:
		statement += ' hate that I'
	else:
		statement += ' love that I'
statement = statement.split()
statement.pop()
statement[-1] = 'it'
print(' '.join(statement))


n = int(input())
a = 'I hate '
b = ' I  love '
c = ' that '
d = ' it '
if n % 2 == 0:
	x = int(n / 2) - 1
	s = (a + c + b + c) * x + a + c + b + d
else:
	x = int(n / 2)
	s = (a + c + b + c) * x + a + d
print(s)


layers = int(input())
i = int(1)
feeling = ''
while i <= layers:
	if i != 1:
		feeling += 'that '
	if i % 2 == 0:
		feeling += 'I love '
	else:
		feeling += 'I hate '
	i += 1
print(feeling + 'it')


n = int(input())
a = ''
b = 'I hate'
c = 'I love'
for number in range(n):
	if number % 2 == 0:
		a += b
	else:
		a += c
	if number != n - 1:
		a += ' that '
a += ' it'
print(a)


def parse_input() -> int:
	return int(input())

def _solve(n: int, hate: bool) -> str:
	if n == 1 and hate:
		return 'I hate it'
	if n == 1 and (not hate):
		return 'I love it'
	return ['I love that ', 'I hate that '][hate] + _solve(n - 1, not hate)

def solve(n: int) -> str:
	return _solve(n, True)
print(solve(parse_input()))


a = int(input())
res = ''
if a == 1:
	print('I hate it')
elif a == 2:
	print('I hate that I love it')
else:
	for i in range(1, a + 1):
		if i % 2 == 1:
			res = res + 'I hate that '
		else:
			res = res + 'I love that '
	print(res[:len(res) - 5] + 'it')


n = int(input())
odd = 0
if n == 1:
	string = 'I hate it'
elif n == 2:
	string = 'I hate that I love it'
else:
	string = 'I hate that'
	for i in range(0, n - 1):
		if n - i != 1 and odd % 2 != 1:
			string = string + ' ' + 'I love that'
		elif odd % 2 == 1:
			string = string + ' ' + 'I hate that'
		odd = odd + 1
	string = string[:-4] + 'it'
print(string)


while True:
	n = int(input())
	if n >= 1 and n <= 100:
		break
s = ''
s1 = 'I hate that '
s2 = 'I love that '
if n == 1:
	print('I hate it')
elif n % 2 == 0:
	for i in range(int(n / 2)):
		s += s1
		s += s2
	print(s[:-5] + 'it')
else:
	for i in range(int(n / 2) + 1):
		s += s1
		s += s2
	print(s[:-17] + 'it')


n = int(input())
i = 1
s = 'it'
if n / 2 > n // 2:
	while i <= n:
		if i / 2 > i // 2:
			s = 'that I hate ' + s
		else:
			s = 'that I love ' + s
		i += 1
else:
	while i <= n:
		if i / 2 > i // 2:
			s = 'that I love ' + s
		else:
			s = 'that I hate ' + s
		i += 1
s = s[5:len(s)]
print(s)


n = int(input())
z = 0
b = str('I hate that I love that')
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n % 2 != 0:
	a = str('I hate that I love that ')
	c = ''
	while z < (n - 1) / 2:
		c = c + a
		z += 1
	print(c + 'I hate it')
else:
	b = str('I hate that I love that ')
	d = ''
	while z < n - 2:
		d = d + b
		z += 2
	print(d + 'I hate that I love it')


n = input()
n = int(n)
list = ['I hate']
count = 1
while count < n:
	if count % 2 == 0:
		list.append('that I hate')
		count = count + 1
	else:
		list.append('that I love')
		count = count + 1
if count == n:
	list.append('it')
print(*list)


n = int(input())
result = ''
hate = True
for i in range(0, n - 1):
	result += 'I hate that ' if hate else 'I love that '
	hate = not hate
result += 'I hate it' if n % 2 != 0 else 'I love it'
print(result)


n = int(input())
lis = []
lis.append('I hate')
if n > 1:
	for i in range(2, n + 1):
		if i % 2 == 0:
			lis.append('that I love')
		else:
			lis.append('that I hate')
lis.append('it')
for i in lis:
	print(i, end=' ')


import sys
input = sys.stdin.readline
n = int(input())
s = 'I hate'
F = ['love', 'hate']
for i in range(n - 1):
	s += ' that I ' + F[i % 2]
s += ' it'
print(s)


a = int(input())
hate = 'I hate'
love = 'I love'
out = hate
flag = False
for i in range(a - 1):
	if flag == False:
		out = out + ' that ' + love
		flag = True
	else:
		out = out + ' that ' + hate
		flag = False
print(out + ' it')


n = int(input())
a = []
for i in range(1, n + 1):
	if i % 2 != 0:
		a.append('I hate')
		a.append('that')
	else:
		a.append('I love')
		a.append('that')
del a[-1]
a.append('it')
a = ' '.join(map(str, a))
print(a)


n = input()
n = int(n)
lst = ['I hate', 'I love']
res = ''
k = 0
for i in range(n):
	res += lst[k] + ' '
	k += 1
	if k == len(lst):
		k = 0
	if i < n - 1:
		res += 'that '
res += 'it'
print(res)


def print_fellings() -> str:
	layers = int(input())
	odd_layer = 'I hate '
	even_layer = 'I love '
	seperator = 'that '
	line_end = 'it'
	feeling = ''
	for i in range(1, layers + 1, 1):
		if i % 2 == 0:
			feeling = ' '.join([feeling, even_layer])
		else:
			feeling = ' '.join([feeling, odd_layer])
		if i == layers:
			feeling = ''.join([feeling, line_end])
		else:
			feeling = ''.join([feeling, seperator])
	return feeling.strip()
print(print_fellings())


def feelings(n):
	if n == 1:
		return 'I hate '
	elif n == 2:
		return 'I hate that I love '
	elif n == 3:
		return 'I hate that I love that I hate '
	elif n % 2 == 0:
		return feelings(n - 1) + 'that I love '
	else:
		return feelings(n - 1) + 'that I hate '
n = int(input())
o = feelings(n)
m = o + 'it'
print(m)


n = int(input())
m = n // 2
hate = 'I hate that '
love = 'I love that '
string = []
if n % 2 != 0:
	last_exp = 'I hate it'
	string.append(hate)
	string *= m
	string.append(last_exp)
	pr = love.join(string)
else:
	last_exp = 'I love it'
	string.append(love)
	string *= m - 1
	string.insert(0, '')
	string.append(last_exp)
	pr = hate.join(string)
print(pr)


n = int(input())
s1 = 'I love'
s2 = 'I hate'
s3 = ''
j = 0
for i in range(n):
	if j == 0:
		s3 += s2
		j = 1
	else:
		s3 += s1
		j = 0
	if i + 1 != n:
		s3 += ' that '
	if i + 1 == n:
		s3 += ' it'
print(s3)


import sys
n = int(input())
fast = 'I '
last = ' it'
mid = ' hate '
i = int(2)
if n == 1:
	print('I hate it')
	sys.exit(0)
else:
	while 1 < i <= n:
		if i % 2 == 0:
			mid = mid + ' that I love '
		else:
			mid = mid + ' that I hate '
		i = i + 1
print(fast + mid + last)


n = int(input())
count = n
phrase = ''
love = 'I love'
hate = 'I hate'
middle = 'that'
end = 'it'
for i in range(n):
	if i % 2 == 0:
		phrase = phrase + ' ' + hate
	else:
		phrase = phrase + ' ' + love
	if count > 1:
		phrase = phrase + ' ' + middle
		count -= 1
	else:
		phrase = phrase + ' ' + end
if phrase[0] == ' ':
	phrase = phrase.replace(' ', '', 1)
print(phrase)


n = int(input())
h = 'hate'
l = 'love'
it = 'it'
m = 'I'
th = 'that'
sp = ' '
sum_str = ''
if n == 1:
	print('I hate it')
else:
	for i in range(n):
		sum_str += 'I'
		if i % 2 == 0:
			sum_str += ' hate '
		else:
			sum_str += ' love '
		if i != n - 1:
			sum_str += 'that '
	sum_str += 'it'
print(sum_str)


q = int(input())
i = 0
s = ''
while i < q - 1:
	if i % 2 == 0:
		s = s + 'I hate that '
		i = i + 1
	else:
		s = s + 'I love that '
		i = i + 1
if i % 2 == 0:
	s = s + 'I hate it'
else:
	s = s + 'I love it'
print(s)


n = int(input())
phrases = ['I hate', 'I love']
ends = ['that', 'it']
output = []
for i in range(1, n + 1):
	if i % 2 == 1:
		output.append(phrases[0])
	else:
		output.append(phrases[1])
	if i < n:
		output.append(ends[0])
	else:
		output.append(ends[1])
print(' '.join(output))


n = int(input())
s1 = 'I hate it'
s2 = 'I love it'
s3 = 'I hate that'
s4 = 'I love that'
l = list()
for i in range(1, n + 1):
	if i % 2 != 0 and i != n:
		l.append(s3)
	elif i % 2 == 0 and i != n:
		l.append(s4)
	elif i % 2 != 0 and i == n:
		l.append(s1)
	elif i % 2 == 0 and i == n:
		l.append(s2)
for i in l:
	print(i, end=' ')


n = int(input())
s = 'I hate it '
l = 'that I love '
h = 'that I hate '
res = ''
for i in range(1, n + 1):
	if i == 1:
		res += s
		continue
	if i % 2 == 0:
		res = res[:len(res) - 3] + l + res[len(res) - 3:]
	else:
		res = res[:len(res) - 3] + h + res[len(res) - 3:]
print(res)


n = int(input())
o = ['I hate', 'I love']
solution = [o[i % 2] for i in range(n)]
print(' that '.join(solution), 'it')


n = int(input())

def halk():
	print('I hate', end=' ')
	print('that', end=' ')
	print('I love', end=' ')
if n == 1:
	print('I hate', end=' ')
elif n % 2 == 0:
	for i in range(int(n / 2)):
		halk()
		if i + 1 != int(n / 2):
			print('that', end=' ')
elif n % 2 == 1:
	for i in range(int((n - 1) / 2)):
		halk()
		print('that', end=' ')
	print('I hate', end=' ')
if n != 0:
	print('it')


l = []
a = int(input())
if a == 1:
	print('I hate it')
else:
	for x in range(1, a + 1):
		if x % 2 == 0:
			c = 'I love that'
			l.append(c)
		else:
			b = 'I hate that'
			l.append(b)
	if l[-1] == 'I love that':
		l[-1] = 'I love it'
	else:
		l[-1] = 'I hate it'
	ep = ' '
	res = ep.join(l)
	print(res)


a = input()
a = int(a)
for x in range(1, a + 1):
	if x % 2 != 0:
		print('I hate ', end='')
		if x == a:
			print('it', end='')
		elif x != a:
			print('that ', end='')
	elif x % 2 == 0:
		print('I love ', end='')
		if x == a:
			print('it', end='')
		elif x != a:
			print('that ', end='')


n = int(input())
string = ''
for i in range(0, n):
	if i % 2 == 0:
		string += 'I hate that '
	else:
		string += 'I love that '
string = string.split()
string[len(string) - 1] = 'it'
g = ' '.join((x for x in string))
print(g)


n = int(input())
h = 'I hate it'
l = 'I love it'
ht = 'I hate that'
lt = 'I love that'
for i in range(n, 0, -1):
	if n % 2 == 0:
		if i == 1:
			print(l, end=' ')
		elif i % 2 == 0:
			print(ht, end=' ')
		elif i % 2 == 1:
			print(lt, end=' ')
	elif i == 1:
		print(h, end=' ')
	elif i % 2 == 0:
		print(lt, end=' ')
	elif i % 2 == 1:
		print(ht, end=' ')


n = int(input())
hate_string = 'I hate that '
love_string = 'I love that '
string = ''
if n == 1:
	print('I hate it')
else:
	for i in range(1, n + 1):
		if i % 2 == 1:
			string += hate_string
		else:
			string += love_string
	string = string[:len(string) - 5] + 'it'
	print(string)


import math
n = int(input())
for i in range(n):
	if i == 0:
		print('I hate', end=' ')
		if i == n - 1:
			print('it', end=' ')
			break
	else:
		if i % 2 == 0:
			print('that I hate', end=' ')
		if i % 2 != 0:
			print('that I love', end=' ')
		if i == n - 1:
			print('it', end=' ')
			break


t = int(input())
s1 = 'I hate'
s2 = ' that '
s3 = 'I love'
s4 = ' it'
for i in range(1, t + 1):
	if i % 2 == 0:
		print(s3, end='')
		if t == 1 or t == i:
			print(s4, end='')
		else:
			print(s2, end='')
	else:
		print(s1, end='')
		if t == 1 or t == i:
			print(s4, end='')
		else:
			print(s2, end='')


import math

def input_values(f):
	return map(f, input().split())

def main():
	n = int(input())
	if n == 1:
		print('I hate it')
	else:
		(a, b) = ('that I love ', 'that I hate ')
		out = ['I hate ']
		for i in range(n - 1):
			out.append(a)
			(a, b) = (b, a)
		out.append('it')
		print(''.join(out))
main()


def getInts():
	return [int(s) for s in input().split()]

def getInt():
	return int(input())

def getStrs():
	return [s for s in input().split()]

def getStr():
	return input()

def listStr():
	return list(input())

def solve():
	N = getInt()
	ops = ['love', 'hate']
	ret = ''
	i = 1
	while i <= N:
		if i % 2 == 1:
			ret += 'I hate '
		else:
			ret += 'I love '
		if i == N:
			ret += 'it'
		else:
			ret += 'that '
		i += 1
	return ret
ans = solve()
print(ans)


n = int(input())
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n % 2 == 0:
	print('{}{}'.format('I hate that I love that ' * (n // 2 - 1), 'I hate that I love it'))
else:
	print('{}{}'.format('I hate that I love that ' * (n // 2), 'I hate it'))


n = int(input())
counter = 1
out = ''
for _ in range(n):
	if counter % 2 != 0:
		if _ == range(n)[len(range(n)) - 1]:
			out = out + 'I hate it'
		else:
			out = out + 'I hate that '
	elif _ == range(n)[len(range(n)) - 1]:
		out = out + 'I love it'
	else:
		out = out + 'I love that '
	counter += 1
print(out)


def check(n):
	if n == 1:
		return 'I hate it'
	if n == 2:
		return 'I hate that I love it'
	if n & 1 == 1:
		return 'I hate that I love that ' * (n // 2) + 'I hate it'
	if n & 1 == 0:
		return ('I hate that I love that ' * (n // 2) + 'I hate that I love it').replace('I hate that I love that ', '', 1)
n = int(input())
print(check(n))


a = int(input())
b = ''
if a == 1:
	print('I hate it')
else:
	for hate in range(a // 2):
		b = b + 'I hate that I love that '
	if a % 2 != 0:
		b = b + 'I hate it'
	else:
		b = b[:-5]
		b = b + 'it'
print(b)


N = input()
word = ''
for i in range(0, int(N)):
	if i + 1 == 1:
		word = word + 'I hate'
	elif (i + 1) % 2 == 1:
		word = word + ' that' + ' I hate'
	else:
		word = word + ' that' + ' I love'
word = word + ' it'
print(word)


import sys
input = sys.stdin.readline
n = int(input())
phrases = ['I hate', 'I love']
res = []
i = 0
while n:
	res.append(phrases[i])
	i += 1
	i %= 2
	n -= 1
print(' that '.join(res) + ' it')


x = 'I hate'
y = 'I love'
user_input = int(input())
res = ''
for n in range(user_input):
	if n % 2 == 0:
		res += x + ' '
	elif n % 2 == 1:
		res += y + ' '
	if n < user_input - 1:
		res += 'that '
	else:
		res += 'it'
print(res)


num = int(input())
i = 1
a = list()
while num >= i:
	if i % 2 == 1:
		string = 'I hate'
		a.append(string)
	else:
		string2 = 'I love'
		a.append(string2)
	i += 1
a = ' that '.join(a) + ' it'
print(a)


a = 'I hate '
b = 'I love '
transition = 'that '
end = 'it'
x = 1
word = ''
n = int(input())
for i in range(n):
	if n == 1:
		print(f'{a}{end}')
		break
	if x % 2 != 0:
		word += a
	if x % 2 == 0:
		word += b
	x += 1
	if i == n - 1:
		word += end
	else:
		word += transition
print(word)


n = int(input())
M = ['I', 0]
ch = 2
nch = 3
if n == 1:
	M[1] = 'hate'
else:
	M[1] = 'hate'
	for i in range(n - 1):
		if i % 2 == 0:
			M.insert(ch, 'that I love')
			ch += 2
		if i % 2 != 0:
			M.insert(nch, 'that I hate')
			nch += 2
print(' '.join(M), 'it')


n = int(input())
s1 = 'I hate '
s2 = 'I love '
s3 = 'that '
s4 = 'it'
s5 = ''
if n == 1:
	s5 = s1 + s4
else:
	i = 1
	while i < n:
		if i % 2 != 0:
			s5 += s1
			s5 += s3
		else:
			s5 += s2
			s5 += s3
		i += 1
	if i % 2 == 0:
		s5 += s2 + s4
	else:
		s5 += s1 + s4
print(s5)


a = int(input())
d_list = ['I hate', 'I love']
s = d_list[0]
f = 1
if a == 1:
	print(d_list[0] + ' it')
else:
	s = s + ' ' + 'that' + ' ' + d_list[f]
	for k in range(a - 2):
		if f == 1:
			f = 0
		else:
			f = 1
		s = s + ' ' + 'that' + ' ' + d_list[f]
	print(s + ' it')


N = int(input())
L = ['I hate', 'I love']
print(' that '.join((L * N)[:N]) + ' it')


(N, lista) = (int(input()), [])
for i in range(1, N + 1):
	if i % 2 == 0:
		lista.append('that')
		lista.append('I love')
		if i == N:
			lista.append('it')
		else:
			lista.append('that')
	else:
		lista.append('I hate')
		if i == N:
			lista.append('it')
lista = ' '.join(map(str, lista))
print(lista)


t = int(input())
q = 'I hate '
w = 'that '
e = 'I love '
r = 'it'
s = ''
if t % 2 == 0:
	for i in range(t // 2):
		if i == 0:
			if t == 2:
				s = q + w + e
			else:
				s = q + w + e + w
		elif i != t // 2 - 1:
			s = s + q + w + e + w
		else:
			s = s + q + w + e
	print(s + r)
else:
	for i in range(t // 2):
		if i == 0:
			s = q + w + e + w
		else:
			s = s + q + w + e + w
	print(s + q + r)


n = int(input())
List = [0] * (n - 1)
for i in range(n - 1):
	if i % 2 == 0:
		List[i] = 'I hate that'
	elif i % 2 == 1:
		List[i] = 'I love that'
if n % 2 == 0:
	List.append('I love it')
elif n % 2 == 1:
	List.append('I hate it')
for k in range(n - 1):
	print(List[k], end=' ')
print(List[n - 1])


n = int(input())
from itertools import cycle
lh = cycle(('I hate', 'I love'))
s = []
for i in range(n):
	s.append(next(lh))
print(' that '.join(s) + ' it')


a = int(input())
a1 = 'I hate it'
a2 = 'I hate that'
b1 = 'I love it'
b2 = 'I love that'
for i in range(a - 1):
	if i % 2 != 0:
		print(b2, end=' ')
	else:
		print(a2, end=' ')
if a % 2 == 0:
	print(b1)
else:
	print(a1)


x = eval(input())
y = 'I hate that I love that '
z = 'I hate that I love that '
Y = 'I hate that I love it'
Z = 'I hate that I love that'
a = x // 2
b = ''
c = 'I hate it'
e = ' I hate it'
if x == 1:
	print(c)
elif x % 2 == 0:
	for i in range(1, a):
		b = y + b
	Y = b + Y
	print(Y)
else:
	for i in range(1, a):
		b = z + b
	Z = b + Z
	d = Z + e
	print(d)


n = int(input())
string = ''
for i in range(1, n + 1):
	if i % 2 != 0:
		string += 'I hate that '
	else:
		string += 'I love that '
string = string[::-1]
x = string.replace(' taht', 'ti', 1)
print(x[::-1])


num = eval(input())
out = ''
for i in range(num - 1):
	if i % 2 == 0:
		out += 'I hate that '
	else:
		out += 'I love that '
if num % 2 == 0:
	out += 'I love it'
else:
	out += 'I hate it'
print(out)


num = int(input(''))
list = []
for n in range(1, num + 1):
	if n == num:
		if n % 2 == 0:
			list.append('I love it')
		else:
			list.append('I hate it')
	elif n % 2 == 0:
		list.append('I love that')
	else:
		list.append('I hate that')
print(' '.join(list))


answer = ''
levels = int(input())
if levels % 2 == 0:
	for i in range(int(levels / 2) - 1):
		answer += 'I hate that I love that '
	answer += 'I hate that I love it'
if levels % 2 == 1:
	for i in range(int((levels - 1) / 2)):
		answer += 'I hate that I love that '
	answer += 'I hate it'
print(answer)


n = int(input())
ans = []
ans.append('I hate ')
n -= 1
s = n
while s:
	ans.append('that ')
	ans.append('I love ')
	s -= 1
	t = s
	if t:
		ans.append('that ')
		ans.append('I hate ')
		t -= 1
	s = t
ans.append('it')
print(''.join(ans))


n = int(input())
last = ' it'
middle = ' that'
word1 = ' I hate'
word2 = ' I love'
s = ''
if n == 1:
	print(word1 + last)
else:
	for i in range(1, n + 1):
		if i % 2 == 0:
			s += word2 + middle
		else:
			s += word1 + middle
	s = s[:len(s) - 5]
	s += last
print(s)


from sys import stdin, stdout
n = int(stdin.readline())
feelings = ['I hate', 'I love'] * n
stdout.write(' that '.join(feelings[:n]) + ' it\n')


print(*(['I hate', 'I love'] * 100)[:int(input())], sep=' that ', end=' it')


import string
n = int(input())
string = ''
for counter in range(n):
	if counter == n - 1:
		last_string = 'it'
	else:
		last_string = 'that'
	if counter % 2 == 0:
		string = string + ' I hate ' + last_string
	else:
		string = string + ' I love ' + last_string
print(string[1:])


import sys, math, string, fractions, functools, collections
sys.setrecursionlimit(10 ** 7)
RI = lambda x=' ': list(map(int, input().rstrip().split(x)))
RS = lambda x=' ': input().rstrip().split(x)
dX = [-1, 1, 0, 0, -1, 1, -1, 1]
dY = [0, 0, -1, 1, 1, -1, -1, 1]
mod = int(1000000000.0 + 7)
eps = 1e-06
MAX = 1010
ans = 'I hate '
n = int(input())
for i in range(1, n):
	if i % 2:
		ans += 'that I love '
	else:
		ans += 'that I hate '
ans += 'it'
print(ans)


s = 'I hate '
for i in range(int(input()) - 1):
	s += 'that I hate ' if i & 1 else 'that I love '
print(s + 'it')


from sys import stdin, exit
n = int(input())
i = 1
s = 'I hate '
while i < n:
	if i % 2:
		s += 'that I love '
	else:
		s += 'that I hate '
	i += 1
print(s + 'it')


n = int(input())
middle = ''
while n > 1:
	if n % 2 == 1 and n != 1:
		middle = ' that I hate' + middle
	if n % 2 == 0 and n != 1:
		middle = ' that I love' + middle
	n -= 1
print(f'I hate' + f'{middle}' + ' it')


from sys import stdin, stdout
n = int(stdin.readline())
a = 'I hate '
b = 'I love '
s = ''
for k in range(0, n):
	if k % 2 == 0:
		s = s + a + 'that '
	if k % 2 == 1:
		s = s + b + 'that '
print(s[:len(s) - 5] + ' it')


n = int(input())
(h, l) = ('I hate', 'I love')
r = ''
for i in range(n):
	if i % 2:
		r += l
	else:
		r += h
	r += ' that '
r = r[:-6] + ' it'
print(r)


x = int(input())
i = 0
ans = ''
for i in range(x):
	if i % 2 == 0 and i == 0:
		ans += 'I hate'
	elif i % 2 == 0:
		ans += ' that I hate'
	else:
		ans += ' that I love'
ans += ' it'
print(ans)


n = int(input())
b1 = False
while n > 1:
	n -= 1
	if b1 == False:
		print('I hate that ', end='')
		b1 = True
	else:
		print('I love that ', end='')
		b1 = False
if b1 == False:
	print('I hate it')
else:
	print('I love it')


n = int(input())
r = list()
for i in range(n):
	if i % 2:
		if i == n - 1:
			r.append('I love it')
		else:
			r.append('I love that')
	elif i == n - 1:
		r.append('I hate it')
	else:
		r.append('I hate that')
print(' '.join(r))


p = input()
n = int(p)
feel = ''
prev = True
while n > 0:
	if prev and n > 1:
		feel += 'I hate that '
	elif prev and n == 1:
		feel += 'I hate it'
	if not prev and n > 1:
		feel += 'I love that '
	elif not prev and n == 1:
		feel += 'I love it'
	n -= 1
	prev = not prev
print(feel)


n = int(input())
a = ['I hate that ', 'I love that ']
res = ''
b = False
while n > 1:
	res += a[b]
	b = not b
	n -= 1
res += a[b]
print(res[:-6], 'it')


n = int(input())
s = ''
for i in range(n):
	if i % 2 == 0:
		s += 'I hate that '
	else:
		s += 'I love that '
p = s[:12 * n - 5]
print(p + 'it')


n = int(input())
first = 'I love'
second = 'I hate'
string = ''
arr = [first, second]
for i in range(n):
	string += arr[i % 2 - 1]
	if i + 1 != n:
		string += ' that '
	if i + 1 == n:
		string += ' it'
print(string)


k = int(input())
p = 'I hate it'
q = 'I hate that'
t = 'I love it'
r = 'I love that'
if k == 1:
	print(p)
else:
	for i in range(k - 1):
		if i % 2 == 0:
			print(q, end=' ')
		else:
			print(r, end=' ')
	if k % 2 == 0:
		print(t)
	else:
		print(p)


def linear(n):
	s = 'I hate'
	for i in range(n - 1):
		s += ' that'
		if i % 2 == 0:
			s += ' I love'
		else:
			s += ' I hate'
	return s + ' it'
n = int(input())
print(linear(n))


x = int(input())
k = int(x / 2 - 1)
y = int((x - 1) / 2)
p = 'I hate that I love that '
if x % 2 == 0:
	print(str(p * k) + 'I hate that I love it')
elif x % 2 == 1:
	print(str(p * y) + 'I hate it')


n = int(input())
hate = 'I hate'
love = 'I love'
result = hate
current = love
for i in range(1, n):
	result += ' that ' + current
	if current == hate:
		current = love
	else:
		current = hate
print(result + ' it')


n = int(input())
print(('I hate that I love that ' * (n // 2) + 'I hate that ' * int(n % 2 != 0))[:-5] + 'it')


num = int(input())
string = ''
for t in range(1, num + 1, +1):
	if t % 2 == 1 and t != num:
		string = string + 'I hate that '
	if t == num and t % 2 == 1:
		string = string + 'I hate it'
	if t % 2 == 0 and t != num:
		string = string + 'I love that '
	if t == num and t % 2 == 0:
		string = string + 'I love it'
print(string)


def gogo(n):
	hate1 = 'I hate it'
	love1 = 'I love it'
	hate2 = 'I hate that'
	love2 = 'I love that'
	s = ''
	if n % 2 == 0:
		for i in range(0, n - 1):
			s += hate2 if i % 2 == 0 else love2
			s += ' '
		return s + love1
	else:
		for i in range(0, n - 1):
			s += hate2 if i % 2 == 0 else love2
			s += ' '
		return s + hate1
n = int(input())
print(gogo(n))


from sys import stdin
a = int(stdin.readline())
start = 'I hate '
end = 'it'
for i in range(a - 1):
	if i % 2 != 0:
		string = 'that I hate '
		start += string
	else:
		string = 'that I love '
		start += string
print(start + end)


n = int(input())
x = 0
word = 'I hate '
while n > 1:
	if x % 2 == 0:
		word += 'that I love '
	else:
		word += 'that I hate '
	x = x + 1
	n = n - 1
word += 'it'
print(word)


input_s = int(input())
result = ''
for i in range(input_s):
	if i % 2 == 0:
		result = '{}I hate that '.format(result)
	else:
		result = '{}I love that '.format(result)
result = '{}it'.format(result[:-5])
print(result)


print(' that '.join([i % 2 == 0 and 'I hate' or 'I love' for i in range(0, int(input()))]), 'it')


def main():
	size = int(input())
	answer = ''
	for i in range(size):
		if (i + 1) % 2:
			answer += 'I hate that '
		else:
			answer += 'I love that '
	answer = answer.rsplit(' ', 2)[0]
	answer += ' it'
	print(answer)
main()


n = int(input())
l = []
i = 1
while i <= 2 * n - 1:
	if i % 2 == 0:
		l.append('that')
	elif i % 4 == 3:
		l.append('I love')
	else:
		l.append('I hate')
	i += 1
l.append('it')
print(' '.join(l))


n = int(input())
phrases = ['I hate it ', 'I love it ']
other_phrases = ['I hate that ', 'I love that ']
phrase = ''
if n == 1:
	print(phrases[0])
else:
	for _ in range(1, n + 1):
		if _ == n:
			if _ % 2 == 0:
				phrase += phrases[1]
			elif _ % 2 != 0:
				phrase += phrases[0]
		elif _ % 2 != 0:
			phrase += other_phrases[0]
		elif _ % 2 == 0:
			phrase += other_phrases[1]
print(phrase)


i = int(input())
first = 'I hate that I love that '
p = i - 1
if i == 1:
	print('I hate it')
elif p % 2 == 0:
	p = p // 2
	print(first * p + 'I hate it')
else:
	p = p - 1
	print(first * (p // 2) + 'I hate that I love it')


n = int(input())
if n >= 1 and n <= 100:
	for x in range(1, n + 1):
		if x % 2 == 0:
			print('I love', end=' ')
		else:
			print('I hate', end=' ')
		if x == n:
			print('it')
			exit(0)
		else:
			print('that', end=' ')


a = int(input())
count = 1
while a > count:
	if count % 2 == 1:
		print('I hate that ', end='')
	else:
		print('I love that ', end='')
	count += 1
if a % 2 == 1:
	print('I hate it')
else:
	print('I love it')


def producedstring(n):
	string = ''
	for i in range(n):
		if i == n - 1 and n % 2 == 0:
			string += 'I love it'
		elif i == n - 1:
			string += 'I hate it'
		elif i % 2 == 0:
			string += 'I hate that '
		else:
			string += 'I love that '
	return string
n = int(input())
print(producedstring(n))


x = int(input())
y = 'I hate'
while not x == 1:
	y += ' that I love'
	x -= 1
	if x > 1:
		y += ' that I hate'
		x -= 1
y += ' it'
print(y)


t = int(input())
a = 'I hate it '
b = 'I love it '
ans = ''
for i in range(1, t + 1):
	if i % 2 != 0:
		ans += a
	else:
		ans += b
ans = ans.split(' ')
for i in range(0, len(ans) - 2):
	if ans[i] == 'it':
		ans[i] = 'that'
ans = ans[:-1]
ans = ' '.join(ans)
print(ans)


inp = input()
inp = int(inp) - 1
ans = 'I hate '
while inp > 0:
	if inp > 0:
		ans = ans + 'that I love '
		inp = inp - 1
	if inp > 0:
		ans = ans + 'that I hate '
		inp = inp - 1
ans = ans + 'it'
print(ans)


n = int(input())
x = 0
st = ''
while n != 0:
	st = st + 'I '
	if x == 0:
		x = 1
		st = st + 'hate '
	else:
		x = 0
		st = st + 'love '
	if n == 1:
		st = st + 'it'
	else:
		st = st + 'that '
	n = n - 1
p = 0
print(st)


n = int(input())
if n % 2 == 1:
	h = n // 2
	ch = 'I hate that I love that ' * h + 'I hate it'
else:
	h = n // 2 - 1
	ch = 'I hate that I love that ' * h + 'I hate that I love it'
print(ch)


a = int(input())
Z = ''
if a % 2 == 0:
	X = 'I love it'
	a = a - 1
else:
	X = 'I hate it'
	a = a - 1
b = 1
while b <= a:
	if b % 2 == 0:
		Z = Z + 'I love that '
	else:
		Z = Z + 'I hate that '
	b = b + 1
Z = Z + X
print(Z)


n = int(input())
text1 = 'I hate'
text2 = 'I love'
text = []
for i in range(1, n + 1):
	if i % 2 == 0:
		text.append(text2)
	else:
		text.append(text1)
print(' that '.join(text) + ' it')


def main():
	a = int(input())
	out = ''
	for i in range(1, a + 1):
		if i % 2 != 0 and i == 1:
			out += 'I hate '
		elif i % 2 != 0:
			out += 'that I hate '
		else:
			out += 'that I love '
	out += 'it'
	print(out)
main()


n = int(input())
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n % 2 == 0:
	k = 'I hate that I love that ' * (n // 2)
	k = k[0:len(k) - 5] + 'it'
	print(k)
else:
	k = 'I hate that I love that ' * (n // 2)
	k = k + 'I hate it'
	print(k)


print(*(['I hate', 'I love'] * 50)[:int(input())], sep=' that ', end=' it')


n = int(input())
t = 'I hate that I love that '
m = n / 2 - 1
m = int(m)
if n % 2 == 0:
	print(t * m, 'I hate that I love it')
else:
	m = (n - 1) / 2
	m = int(m)
	print(t * m, 'I hate it')


x = int(input())
a = 'I hate that'
b = 'I love that'
c = 'I hate it'
d = 'I love it'
e = 'I hate that I love that '
if x == 1:
	print(c)
elif x == 2:
	print(a + ' ' + d)
elif x % 2 == 1:
	x = (x - 1) / 2
	x = int(x)
	print(e * x + ' ' + c)
else:
	x = x / 2 - 1
	x = int(x)
	print(x * e + ' ' + a + ' ' + d)


_input = input()
n = int(_input)
feelings = {0: 'I hate', 1: 'I love'}
print(' that '.join([feelings[x % 2] for x in range(n)]) + ' it')


a = int(input())
i = a
k = 1
while a > 0:
	if a == 1:
		if i % 2 != 0:
			print('I hate it ', end='')
		else:
			print('I love it ', end='')
	elif i == 2:
		print('I hate that ', end='')
	elif a >= 2:
		if i == a + k:
			print('I love that ', end='')
			k += 2
		else:
			print('I hate that ', end='')
	a -= 1


def solution(n):
	answer = ['I love' if (el + 1) % 2 == 0 else 'I hate' for el in range(n)]
	answer = [answer[el] + ' that ' if el < len(answer) - 1 else answer[el] + ' it' for el in range(len(answer))]
	print(''.join(answer))
solution(int(input()))


inp = int(input())
out = ''
for i in range(1, int(inp) + 1):
	if i % 2 == 0:
		st = 'I love '
	elif i % 2 != 0:
		st = 'I hate '
	if i == inp:
		st = st + 'it'
	else:
		st = st + 'that '
	out = out + st
print(out)


n = int(input())

def fan(n):
	if n == 1:
		return 'I hate'
	elif n % 2 == 0:
		return fan(n - 1) + ' that I love'
	else:
		return fan(n - 1) + ' that I hate'
print(fan(n) + ' it')


feeling = 'I hate'.split()
even_feeling = 'that I love'.split()
odd_feeling = 'that I hate'.split()
end_feeling = 'it'.split()
n = int(input())
for i in range(1, n):
	if (i + 1) % 2 == 0:
		feeling += even_feeling
	else:
		feeling += odd_feeling
feeling += end_feeling
print(*feeling)


n = int(input())
h = 'I hate'
l = 'I love'
a = ' it'
b = ' that '
c = ''
for i in range(1, n + 1):
	if i % 2 == 0:
		if c[-2:] == 'it':
			c = c[:-3] + b + l + a
		else:
			c = c + l + a
	elif c[-2:] == 'it':
		c = c[:-3] + b + h + a
	else:
		c = c + h + a
print(c)


feel1 = 'I hate that I love that '
feel2 = 'I hate that I love it'
n = int(input())
if n >= 1 and n <= 100:
	if n == 1:
		print('I hate it')
	elif n == 2:
		print(feel2)
	elif n % 2 == 0:
		print(feel1 * (n // 2 - 1), end='')
		print(feel2)
	else:
		print(feel1 * (n // 2), end=' ')
		print('I hate it', end='')


n = int(input())
p = []
for k in range(n):
	if k % 2 == 1:
		p.append('I love ')
	else:
		p.append('I hate ')
print('that '.join(p) + 'it')


import itertools
import math
import sys
import heapq
from collections import Counter
from collections import deque
from fractions import gcd
from functools import reduce
sys.setrecursionlimit(4100000)
INF = 1 << 60
MOD = 10 ** 9 + 7
n = int(input())
ans = 'I hate '
if n % 2 == 0:
	ans += 'that I love that I hate ' * (n // 2 - 1) + 'that I love '
else:
	ans += 'that I love that I hate ' * (n // 2)
ans += 'it'
print(ans)


def feeling(num):
	if num == 1:
		return 'I hate it'
	feel = feeling(num - 1).replace('it', 'that')
	if num % 2 == 0:
		feel += ' I love it'
	else:
		feel += ' I hate it'
	return feel
print(feeling(int(input())))


n = int(input())
ungerade = 'I hate'
gerade = 'I love'
konj = ' that '
endung = ' it'
result = ungerade
for i in range(2, n + 1):
	result += konj
	if i % 2 == 0:
		result += gerade
	else:
		result += ungerade
result += endung
print(result)


x = int(input())
s = []
for n in range(0, x - 1):
	if n % 2 == 0:
		s.append('I hate that')
	else:
		s.append('I love that')
if x % 2 == 0:
	s.append('I love it')
else:
	s.append('I hate it')
for n in s:
	print(n, end=' ')


n = int(input())
s = 'I hate'
t = ' that '
l = 'I love'
ans = 'I hate'
for i in range(1, n):
	if i % 2 == 1:
		ans += t + l
	else:
		ans += t + s
print(ans + ' it')


n = int(input())
emotion = []
if n == 1:
	print('I hate it')
else:
	for i in range(1, n + 1):
		if i % 2 != 0:
			emotion.append('I hate')
		elif i % 2 == 0:
			emotion.append('I love')
	e = ' that '.join(emotion)
	print(e + ' it')


import sys

def hulk(orig_n, n):
	if n == 1:
		if orig_n % 2 == 0:
			return 'I love it'
		else:
			return 'I hate it'
	if orig_n % 2 == 0:
		if n % 2 == 0:
			return 'I hate that ' + hulk(orig_n, n - 1)
		else:
			return 'I love that ' + hulk(orig_n, n - 1)
	elif n % 2 == 0:
		return 'I love that ' + hulk(orig_n, n - 1)
	else:
		return 'I hate that ' + hulk(orig_n, n - 1)
for line in sys.stdin:
	n = int(line)
	answer = hulk(n, n)
	print(answer)


times = int(input())
love_hate = ' that '.join(['I hate' if i % 2 != 0 else 'I love' for i in range(1, times + 1)]) + ' it'
print(love_hate)


hulk = int(input())

def feelings(hulk):
	count = 1
	odd = 'I hate that '
	even = 'I love that '
	for x in range(hulk):
		if count == hulk:
			if count % 2 == 1:
				print('I hate it')
			else:
				print('I love it')
		elif count % 2 == 1:
			print(odd, end='')
			count += 1
		else:
			print(even, end='')
			count += 1
feelings(hulk)


n = int(input())
em = ['I love', 'I hate']
v = [em[i % 2] for i in range(1, n + 1)]
print(' that '.join(v) + ' it')


angka = int(input())
nilai = ''
if angka == 1:
	print('I hate it')
else:
	for i in range(1, angka + 1):
		if i % 2 == 0 and i != angka:
			nilai += 'I love that '
		elif i % 2 != 0 and i != angka:
			nilai += 'I hate that '
		elif i % 2 == 0 and i == angka:
			nilai += 'I love it'
		elif i % 2 != 0 and i == angka:
			nilai += 'I hate it'
	print(nilai)


n = int(input())
a = 'I hate '
b = 'I love '
c = 'that '
d = 'it '
res = ''
i = 1
while n > 0:
	if i == 1:
		res += a
		n -= 1
		i = 2
	else:
		res += c + b
		n -= 1
		if n >= 1:
			res += c
		i = 1
res += d
print(res)


n = int(input())
s1 = 'I hate'
s2 = 'I love'
l = []
k = 1
for i in range(1, n + 1):
	if i % 2 != 0:
		l.append(s1)
	else:
		l.append(s2)
for j in range(n - 1):
	l.insert(k, ' that ')
	k += 2
s = ''.join(l) + ' it'
print(s)


hate = 'I hate'
love = 'I love'
that = ' that '
it = ' it'
result = ''
i = 1
count = int(input())
if count == 1:
	result = hate + it
else:
	while i <= count:
		if i % 2 == 1:
			result += hate
		else:
			result += love
		result += that
		i += 1
	result = result[0:-6] + it
print(result)


l = int(input())
i = 1
s = 'I '
while i <= l:
	if i % 2 == 1:
		s = s + 'hate '
	else:
		s = s + 'love '
	if i == l:
		s = s + 'it'
	else:
		s = s + 'that I '
	i += 1
print(s)


def out(n):
	if n == 1:
		return 'I hate'
	elif n % 2:
		return out(n - 1) + ' that I hate'
	else:
		return out(n - 1) + ' that I love'
n = int(input())
print(out(n) + ' it')


n = int(input())
l = []
for i in range(n):
	l.append('I hate')
	l.append('I love')
l.append('it')
for i in range(n):
	print(l[i], end=' ')
	if i == n - 1:
		continue
	else:
		print('that', end=' ')
print(l[-1])


n = int(input())
a = 'I hate'
t = ''
for x in range(n):
	if x == n - 1:
		t += a
	else:
		t += a + ' that'
		if a == 'I hate' or a == ' I hate':
			a = ' I love'
		else:
			a = ' I hate'
print(t + ' it')


num_words = int(input())
sentence = 'I hate '
if num_words > 1:
	for i in range(num_words - 1):
		sentence = sentence + 'that'
		if i % 2 == 0:
			sentence = sentence + ' I love '
		else:
			sentence = sentence + ' I hate '
sentence = sentence + 'it'
print(sentence)


number = int(input())
result = ''
for n in range(number):
	if n % 2 == 0:
		result += 'I hate '
	else:
		result += 'I love '
	if n == number - 1:
		result += 'it'
	else:
		result += 'that '
print(result)


n = int(input())
str = ''
count = 1
i = n
while i > 0:
	if count % 2 == 0:
		if i > 1:
			str += 'I love that'
		else:
			str += 'I love it'
	elif i > 1:
		str += 'I hate that'
	else:
		str += 'I hate it'
	if not i < 2:
		str += ' '
	i -= 1
	count += 1
print(str)


x = int(input())
s = ''
l = ['I hate', 'I love']
for i in range(x):
	if i % 2 == 0:
		s = s + l[0] + ' that '
	elif i % 2 != 0:
		s = s + l[1] + ' that '
s = s[0:len(s) - 5] + 'it'
print(s)


i = int(input())
k = i + (i - 1)
bear = ['I hate', 'that', 'I love', 'that']
for x in range(k):
	print(bear[x % 4], end=' ')
print('it')


a = int(input())
if a % 2 == 0 and a > 0:
	b = a // 2
	c = 'I hate that I love that ' * (b - 1)
	print(c + 'I hate that I love it')
else:
	b = a // 2
	c = 'I hate that I love that ' * b
	print(c + 'I hate it')


n = int(input())
i_hate = 'I hate '
i_love = 'I love '
it = 'it'
that = 'that'
string = ''
for i in range(1, n + 1):
	if i == 1:
		string = i_hate + it
	elif i % 2 != 0:
		string = string.replace(it, that) + ' ' + i_hate + 'it'
	elif i % 2 == 0:
		string = string.replace(it, that) + ' ' + i_love + 'it'
print(string)


n = int(input())
if n % 2 == 0:
	res = n // 2 * 'I hate that I love that '
	print(res[:len(res) - 5] + 'it')
else:
	print(n // 2 * 'I hate that I love that ' + 'I hate it')


n = int(input())
e = 'I hate'
s = ' that I love '
d = 'that I hate'
f = n - 1
if f == 0:
	print('I hate it')
elif f % 2 == 0 and f >= 2:
	e = e + (s + d) * (f // 2)
	print(e + ' it')
elif f % 2 != 0 and f > 2:
	e = e + (s + d) * (f // 2) + s
	print(e + ' it')
elif f == 1:
	print('I hate that I love it')


n = int(input())
angry = 'I hate that '
love = 'I love that '
if n == 1:
	print('I hate it')
elif n % 2 == 0:
	ans = (angry + love) * (n // 2 - 1)
	ans += angry + 'I love it'
	print(ans)
else:
	ans = (angry + love) * ((n - 1) // 2)
	ans += 'I hate it'
	print(ans)


n = int(input())
x = 'I hate'
y = 'I love'
p = ' that '
q = ' it '
res = ''
for i in range(n):
	if i % 2 == 0:
		res = res + x
	elif i % 2 == 1:
		res = res + y
	if i == n - 1:
		res = res + q
		break
	res = res + p
print(res)


import sys
from functools import lru_cache, cmp_to_key
from heapq import merge, heapify, heappop, heappush, nlargest, nsmallest, _heapify_max, _heapreplace_max
from math import ceil, floor, gcd, fabs, factorial, fmod, sqrt, inf, log
from collections import defaultdict as dd, deque, Counter as c
from itertools import combinations as comb, permutations as perm
from bisect import bisect_left as bl, bisect_right as br, bisect
from fractions import Fraction
mod = pow(10, 9) + 7
mod2 = 998244353

def data():
	return sys.stdin.readline().strip()

def out(*var, end='\n'):
	sys.stdout.write(' '.join(map(str, var)) + end)

def l():
	return list(sp())

def sl():
	return list(ssp())

def sp():
	return map(int, data().split())

def ssp():
	return map(str, data().split())

def l1d(n, val=0):
	return [val for i in range(n)]

def l2d(n, m, val=0):
	return [l1d(n, val) for j in range(m)]
n = int(data())
answer = ['I hate']
for i in range(1, n):
	if i & 1:
		answer.append(' that I love')
	else:
		answer.append(' that I hate')
answer.append(' it')
out(''.join(answer))


n = int(input())
string = ''
string1 = 'I hate that '
string2 = 'I love that '
string3 = 'I hate it'
string4 = 'I love it'
i = 1
while i < n:
	if i % 2 == 0:
		string += string2
	else:
		string += string1
	i += 1
if n % 2 != 0:
	string += string3
else:
	string += string4
print(string)


n = int(input())
anagram = ['I hate ', 'I love ']
final = ''
for _ in range(n):
	z = _ % 2
	final += anagram[z]
	if _ == n - 1:
		final += 'it'
	else:
		final += 'that '
print(final)


no_of_layers = int(input())
left_message = 'I hate'
right_message = ' it'
mid_message = ''
for layer_no in range(no_of_layers - 1):
	if layer_no % 2 == 0:
		mid_message += ' that I love'
	else:
		mid_message += ' that I hate'
message = left_message + mid_message + right_message
print(message)


a = int(input())
str = ''
for i in range(a):
	if (i + 1) % 2 == 1:
		str += 'I hate '
	else:
		str += 'I love '
	str += 'that '
str = str[:-5]
str += 'it'
print(str)


x = int(input())
y = [''] * 100
y[0] = 'I hate '
for i in range(1, x):
	if i % 2 == 0:
		y[i] = 'that I hate '
	elif i % 2 == 1:
		y[i] = 'that I love '
z = ''
for i in range(x):
	z += y[i]
print(z + 'it')


n = int(input())
s = ['I', 'hate', 'it']
a = 'that I love'
b = 'that I hate'
ans = s
for i in range(1, n):
	if i % 2 == 1:
		s.insert(-1, a)
	else:
		s.insert(-1, b)
print(' '.join(s))


first = ['hate', 'it']
second = ['love', 'it']
third = ['that', 'I', 'love', 'it']
fourth = ['that', 'I', 'hate', 'it']
n = int(input())
flag = ['I', 'hate', 'it']
while n - 1:
	if flag[-2:] == first:
		flag = flag[:-1] + third
	elif flag[-2:] == second:
		flag = flag[:-1] + fourth
	n -= 1
print(' '.join(flag))


inp = int(input())
count = 0
string = ''
if inp % 2 == 1:
	last_add = 'I hate it'
else:
	last_add = 'I love it'
inp -= 1
while count != inp:
	if count % 2 == 0:
		string += 'I hate that '
	else:
		string += 'I love that '
	count += 1
print(string + last_add)


n = int(input())
str1 = 'I hate'
str2 = 'I love'
l = []
for i in range(0, n):
	if i % 2 == 0:
		l.append(str1)
	if i % 2 == 1:
		l.append(str2)
str3 = ' that '.join(l)
str3 = list(str3)
str3.append(' it')
print(''.join(str3))


a = int(input())
s = 'I hate it'
q = 'I love it'
b = 'I hate that'
c = 'I love that'
d = ''
k = 0
if a == 1:
	print(s)
else:
	for f in range(a - 1):
		if f % 2 == 0:
			d += ' ' + b
			k = 0
		else:
			d += ' ' + c
			k = 1
	if k == 0:
		print(d + ' ' + q)
	else:
		print(d + ' ' + s)


n = int(input())
paste = ['I hate', 'I love', ' that ']
print(paste[0], end='')
for i in range(n - 1):
	print(paste[2], end='')
	print(paste[(i + 1) % 2], end='')
print(' it')


n = int(input())
l = ['I hate']
for i in range(n - 1):
	if i % 2 == 0:
		l.append('that I love')
	elif i % 2 != 0:
		l.append('that I hate')
l.append('it')
print(' '.join(l))


n = int(input())
l = []
l1 = ['I', 'hate', 'it']
l2 = ['I', 'love', 'it']
l3 = ['I', 'hate', 'that']
l4 = ['I', 'hate', 'that', 'I', 'love', 'that']
if n % 2 != 0 and n >= 3:
	l = l4 * int((n - 1) / 2) + l1
elif n % 2 == 0 and n >= 4:
	l = l4 * int((n - 2) / 2) + l3 + l2
elif n == 1:
	l = l1
else:
	l = l3 + l2
print(' '.join(l))


print('I', ' that I '.join((('hate', 'love')[i & 1] for i in range(int(input())))), 'it')


artem = int(input())
print('I hate ', end='')
for t in range(artem - 1):
	if t % 2 == 0:
		print('that I love ', end='')
	else:
		print('that I hate ', end='')
print('it')


n = int(input())
s = 'I hate'
d = ' that I hate'
l = ' that I love'
m = ' it'
for i in range(n - 1):
	if i % 2 == 0:
		s += l
	else:
		s += d
s += m
print(s)


a = int(input())
st = ''
data = ('hate', 'love')
for i in range(a):
	st += 'I ' + data[i % 2]
	if i + 1 - a:
		st += ' that '
	else:
		st += ' it'
print(st)


n = int(input())
s = ' that I '.join((('hate', 'love')[i % 2] for i in range(n)))
print(f'I {s} it')


print(f"I hate {''.join(['that I ' + ('hate ' if x % 2 == 0 else 'love ') for x in range(1, int(input()))])}it")


def r(t=int):
	return list(map(t, input().split()))

def ri(t=int):
	return t(input())

def cd(it):
	ret_val = dict()
	for v in it:
		ret_val[v] = ret_val.get(v, 0) + 1
	return ret_val
n = ri()
ans = 'I hate '
for i in range(n - 1):
	if i % 2:
		ans += 'that I hate '
	else:
		ans += 'that I love '
ans += 'it'
print(ans)


n = int(input())
a = ' that I love'
b = ' that I hate'
text = 'I hate'
if n == 1:
	text += ' it'
elif n == 2:
	text += a + ' it'
else:
	if n % 2 == 0:
		text += (a + b) * (n // 2 - 1) + a
	else:
		text += (a + b) * (n // 2)
	text += ' it'
print(text)


n = int(input(''))
s1 = 'I hate'
s2 = 'I love'
res = ''
i = 1
while i <= n:
	if i % 2 == 1:
		res = res + s1
	else:
		res = res + s2
	if i != n:
		res = res + ' that '
	i += 1
res = res + ' it'
print(res)


n = int(input())
if n == 1:
	print('I hate it')
else:
	a = 'I hate that I love that '
	if n % 2 == 0:
		a = a * (n // 2)
		a = a[:-5] + 'it'
	else:
		n -= 1
		a = a * (n // 2)
		a = a + 'I hate it'
	print(a)


n = int(input())
feelings = ''
switch = 2
hulksdict = {1: ' I hate ', 2: ' I love '}

def hulksfeelings(feel, ending):
	if i == n - 1:
		feel = feel + hulksdict[ending] + 'it'
	else:
		feel = feel + hulksdict[ending] + 'that'
	return feel
for i in range(n):
	if switch == 1:
		switch += 1
	else:
		switch -= 1
	feelings = hulksfeelings(feelings, switch)
print(feelings)


n = int(input())
a = 'I hate it'
b = 'I love it'
c = 'I hate that '
d = 'I love that '
if n == 1:
	print(a)
	exit()
ans = ''
for i in range(1, n + 1):
	if i % 2 == 1:
		ans += c
	else:
		ans += d
ans = ans[:-5]
ans += 'it'
print(ans)


import re
n = int(input())
str = 'I hate that I love that ' * int(n / 2)
str += 'I hate it' if n & 1 else ''
str = re.sub('that $', 'it', str)
print(str)


n = int(input())
out = 'I hate that'
for i in range(1, n):
	if i % 2 == 0:
		out += ' I hate that'
	else:
		out += ' I love that'
new = out[:-4] + 'it'
print(new)


n = int(input())
love = 'I love'
hate = 'I hate'
a = list()
a.append(hate)
for i in range(1, n):
	if a[i - 1] == hate:
		a.append(love)
	else:
		a.append(hate)
b = ' that '.join(a)
print(b, 'it')


t = int(input())
out = ''
for i in range(1, t + 1):
	if i == t and i % 2 == 0:
		out += 'I love it'
	elif i != t and i % 2 == 0:
		out += 'I love that'
	elif i == t and i % 2 != 0:
		out += 'I hate it'
	else:
		out += 'I hate that'
	out += ' '
print(out)


a = int(input())
x = 'I hate that '
y = 'I love that '
lst = []
for i in range(a - 1):
	if i % 2 == 0:
		lst.append(x)
	else:
		lst.append(y)
if a % 2 == 0:
	lst.append('I love it')
else:
	lst.append('I hate it')
print(''.join(lst))


num = int(input())
s = ''
sf = ' that '
se = ' it'
for i in range(1, num + 1):
	if i % 2 != 0:
		s += 'I hate'
	else:
		s += 'I love'
	if i < num:
		s += sf
s += se
print(s)


ans = int(input(''))
sample = ''
if ans > 1:
	for i in range(ans):
		if i % 2 == 0:
			sample += 'I hate '
		else:
			sample += 'I love '
		if ans - i > 1:
			sample += 'that '
else:
	sample += 'I hate '
sample += 'it'
print(sample)


a = int(input())
x = 'I hate it'
y = ' that I hate it'
q = ' that I love it'
if a > 1:
	for i in range(1, a + 1):
		if i % 2 == 0:
			x = x.replace(' it', '')
			x = x + q
		elif i > 1:
			x = x.replace(' it', '')
			x = x + y
print(x)


def main():
	n = int(input(''))
	Feel_List = []
	if n >= 1 and n <= 100:
		if n != 1:
			i = 1
			while i < n:
				if i % 2 == 1:
					Feel_List.append('that I love')
				elif i % 2 == 0:
					Feel_List.append('that I hate')
				i += 1
				Feeling = ' '.join(Feel_List)
			print('I hate', Feeling, 'it')
		elif n == 1:
			print('I hate it')
	else:
		print('Invalid Input !!\nEnter a value ranging from 1 to 100: ')
		main()
main()


n = int(input())
bool = True
for x in range(n):
	if bool:
		print('I hate', end=' ')
		bool = False
	else:
		print('I love', end=' ')
		bool = True
	if x == n - 1:
		print('it')
	else:
		print('that', end=' ')


from collections import deque, Counter
import array
from itertools import combinations, permutations
from math import sqrt
import unittest

def read_int():
	return int(input().strip())

def read_int_array():
	return [int(i) for i in input().strip().split(' ')]
n = read_int()
if n < 1:
	exit()
print('I hate ', end='')
for i in range(1, n):
	print('that I hate ' if i % 2 == 0 else 'that I love ', end='')
print('it', end='')


x = int(input())
a = 'I hate'
s = 'I hate'
b = 'I love'
c = ' that '
i = 1
if x > 1:
	while i < x:
		if i % 2 == 0:
			a = a + c + s
			i = i + 1
		else:
			a = a + c + b
			i = i + 1
print(a + ' it')


n = int(input())
re = ''
if n in range(0, 101):
	if n % 2 == 0:
		for n in range(1, n // 2):
			re = re + 'I hate that I love that '
		print(re + 'I hate that I love it')
	else:
		for n in range(0, n // 2):
			re = re + 'I hate that I love that '
		print(re + 'I hate it')


a = int(input())
i = 0
for i in range(a):
	if i == 0:
		b = 'I hate '
	elif i % 2 == 0:
		b += 'that I hate '
	else:
		b += 'that I love '
print(b + 'it')


n = int(input())
f = False
i = 0
s = ''
while i < n - 1:
	s += 'I '
	if f:
		s += 'love'
	else:
		s += 'hate'
	s += ' that '
	f = not f
	i += 1
s += 'I '
if f:
	s += 'love'
else:
	s += 'hate'
s += ' it'
print(s)


layer = int(input())
if layer == 1:
	feeling = 'I hate it'
else:
	feeling = f"I hate {' '.join(['that I hate' if i % 2 == 0 else 'that I love' for i in range(1, layer)])} it"
print(feeling)


feeling1 = 'I hate that '
feeling2 = 'I love that '
n = int(input())
answer = ''
for i in range(1, n + 1):
	if i != n:
		if i != 1:
			if i % 2 == 0:
				answer = answer + feeling2
			else:
				answer = answer + feeling1
		else:
			answer = answer + 'I hate that '
	elif i != 1:
		if i % 2 == 0:
			answer = answer + 'I love it'
		else:
			answer = answer + 'I hate it'
	else:
		answer = answer + 'I hate it'
print(answer)


t = int(input())
s = 'I hate '
p = ['that I love ', 'that I hate ']
for i in range(t - 1):
	s += p[i % 2]
print(s + 'it')


n = int(input())
l = []
n1 = 'I hate'
n2 = 'I love'
s = ''
for i in range(1, n + 1):
	if i % 2 != 0:
		l.append(n1)
	else:
		l.append(n2)
for i in range(len(l) - 1):
	s = s + l[i] + ' that '
print(f'{s}{l[-1]} it')


persons = int(input())
c = 'I hate '
a = ' I hate that I love '
b = 'I hate that I love '
k = persons % 2
if persons == 2:
	print(b + 'it')
elif persons > 2 and persons % 2 == 0:
	b = list(str(b))
	for i in range(persons // 2 - 1):
		b.append('that')
		b.append(a)
	print(''.join(b) + ' it')
elif persons > 2 and persons % 2 != 0:
	b = list(str(b))
	for i in range(persons // 2 - 1):
		b.append('that')
		b.append(a)
	print(''.join(b) + 'that ' + c + 'it')
else:
	print(c + 'it')


s = 'I hate it '
l = 'I love it '
a = 'I hate that '
b = 'I love that '
n = input()
n = int(n)
ans = ''
for i in range(1, n + 1):
	if i % 2 == 0 and i != n:
		ans = ans + b
	elif i % 2 != 0 and i != n:
		ans = ans + a
	elif i % 2 == 0 and i == n:
		ans = ans + l
	elif i % 2 != 0 and i == n:
		ans = ans + s
print(ans)


n = int(input())
a = 'I hate'
b = 'I love'
msg = ''
for i in range(n):
	if n == 1:
		msg = a
		break
	if i % 2 == 0:
		msg += a + ' that '
	else:
		msg += b + ' that '
if msg.endswith(' that '):
	msg = msg[:-6]
msg += ' it'
print(msg)


n = int(input())
li = ['I hate']
for i in range(n - 1):
	if i % 2 == 1:
		li.append('that I hate')
	else:
		li.append('that I love')
li.append('it')
for word in li:
	print(word, end=' ')


n = input()
anfang = 'I hate '
ende = 'it'
y = 'that I love '
z = 'that I hate '
fin = ''
for x in range(int(n), 0, -1):
	if x == 1:
		print(anfang + fin + ende)
	elif int(n) % 2 == 0:
		if x % 2 == 0:
			fin = fin + y
		else:
			fin = fin + z
	elif x % 2 == 0:
		fin = fin + z
	else:
		fin = fin + y


t = int(input())
r = []
if t == 1:
	print('I hate it')
else:
	for i in range(t):
		if i % 2 == 0 and i != t - 1:
			r.append('I hate that')
		elif i % 2 != 0 and i != t - 1:
			r.append('I love that')
		elif i % 2 == 0 and i == t - 1:
			r.append('I hate it')
		elif i % 2 != 0 and i == t - 1:
			r.append('I love it')
for j in range(len(r)):
	print(r[j], end=' ')


n = int(input())
speech = list()
type = 1
for i in range(n):
	if type == 1:
		speech.append('I hate ')
		type = 2
	else:
		speech.append('I love ')
		type = 1
	if i + 1 == n:
		speech[i] = speech[i] + 'it '
	else:
		speech[i] = speech[i] + 'that '
print(''.join(speech))


n = int(input().strip())
endstr = ''
if n % 2 == 0:
	endstr = 'I love it'
else:
	endstr = 'I hate it'
flip = False
st = ''
for i in range(n - 1):
	if flip:
		st += 'I love that '
	else:
		st += 'I hate that '
	flip = not flip
st += endstr
print(st)


n = int(input())
(a, b) = ('I hate', 'I love')
(t, x) = (' it', ' that ')
print(*[b if x % 2 else a for x in range(n)], sep=x, end=t)


layers = int(input())
a = 'I hate '
b = 'I love '
c = 'that '
output = ''
for i in range(layers):
	if i != layers - 1:
		if i % 2 == 0:
			output += a
			output += c
		else:
			output += b
			output += c
	elif i % 2 == 0:
		output += a
		output += 'it'
	else:
		output += b
		output += 'it'
print(output)


n = int(input())

def rec(cur: int):
	if cur == n:
		if not cur % 2:
			return 'I love it'
		else:
			return 'I hate it'
	elif not cur % 2:
		return 'I love that %s' % rec(cur + 1)
	else:
		return 'I hate that %s' % rec(cur + 1)
print(rec(1))


l = int(input())
arr = []
string = ''
for item in range(l):
	arr.append(item)
for item in arr:
	if item == arr[-1] and l % 2 == 0:
		string += 'I love it'
	elif item == arr[-1] and l % 2 == 1:
		string += 'I hate it'
	elif (arr.index(item) + 1) % 2 == 1:
		string += 'I hate that '
	elif (arr.index(item) + 1) % 2 == 0:
		string += 'I love that '
print(string)


n = int(input())
dict1 = {0: 'hate', 1: 'love'}
str1 = ''
for i in range(n):
	str1 += 'I ' + dict1[i % 2] + ' that '
index = str1.rfind('that')
str1 = str1[:index] + 'it'
print(str1)


m = int(input())
s = []
n = 1
while n <= m:
	if n % 2 == 1:
		s.append('I hate')
	else:
		s.append('I love')
	n += 1
	if n <= m:
		s.append('that')
	else:
		s.append('it')
print(' '.join(s))


word = int(input())
n = 1
a = []
for n in range(word):
	if n % 2 == 0:
		a.append('I hate')
	else:
		a.append('I love')
a = ' that '.join(a)
print(a + ' it')


s = ''
n = int(input())
if n == 1:
	s = 'I hate it'
elif n == 2:
	s = 'I hate that I love it'
elif n == 3:
	s = 'I hate that I love that I hate it'
else:
	j = 0
	s = 'I hate that I love that I hate it'
	for i in range(4, n + 1):
		j = j + 1
		if j % 2 == 0:
			s = s[0:-2] + 'that I hate it'
		else:
			s = s[0:-2] + 'that I love it'
print(s)


n = int(input())
a = 'I hate'
b = 'I love'
for i in range(1, n + 1):
	if i % 2 == 1:
		print(a, end=' ')
	else:
		print(b, end=' ')
	if n > 1 and i != n:
		print('that', end=' ')
print('it')


n = int(input())
i = 1
j = 1
ihate = 'I hate '
output = ihate
it = 'it'
thatilove = 'that I love '
thatihate = 'that I hate '
while i < n:
	if j % 2 != 0:
		output += thatilove
	else:
		output += thatihate
	i += 1
	j += 1
output += it
print(output)


def feel(n):
	feels = 'I hate'
	if n == 1:
		print(feels + ' it')
	else:
		for i in range(2, n + 1):
			if i % 2 == 0:
				feels = feels + ' that I love'
			else:
				feels = feels + ' that I hate'
		print(feels + ' it')
	feels = ''
layers = int(input())
feel(layers)


n = int(input())
string = ''
if n % 2:
	string = 'I hate it'
else:
	string = 'I love it'
n -= 1
while n:
	if n % 2:
		string = 'I hate that ' + string
	else:
		string = 'I love that ' + string
	n -= 1
print(string)


n = int(input())
a = n // 2
b = n % 2
string = ''
for i in range(a):
	if i != 0:
		string += ' that '
	string += 'I hate that I love'
if a != 0 and b != 0:
	string += ' that I hate'
elif a == 0 and b != 0:
	string += 'I hate'
string += ' it'
print(string)


n = int(input())
x = 1
res1 = 'I hate that'
res2 = 'I love that'
res3 = 'I hate it '
res4 = 'I love it'
for i in range(n):
	if x == n and x % 2 != 0:
		print(res3, end=' ')
	elif x % 2 != 0:
		print(res1, end=' ')
	elif x == n and x % 2 == 0:
		print(res4, end='')
	elif x % 2 == 0:
		print(res2, end=' ')
	x += 1


n = int(input())
nch = 'I hate it'
ch = 'I hate that I love it'
s = 'I hate that I love that '
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n % 2 == 0:
	print(s * (n // 2 - 1), ch, end=' ')
else:
	print(s * (n // 2), nch, end=' ')


n = int(input())
a = 'I hate'
b = 'I love'
ans = [[a, b][i % 2] for i in range(n)]
print(' that '.join(ans) + ' it')


hate_emotion = True
for index in range(int(input()), 0, -1):
	if index == 1:
		print('I hate it') if hate_emotion else print('I love it')
	elif hate_emotion:
		print('I hate that', end=' ')
	else:
		print('I love that', end=' ')
	hate_emotion = not hate_emotion


n = int(input())
s1 = 'I hate that '
s2 = 'I love that '
s11 = 'I hate it'
s22 = 'I love it'
s = ''
for i in range(n - 1):
	if i % 2 == 0:
		s += s1
	else:
		s += s2
if n % 2 == 1:
	s += s11
else:
	s += s22
print(s)


getInput = int(input())
hate = 'I hate that'
love = 'I love that'
result = ''
if getInput == 1:
	print('I hate it')
else:
	for i in range(getInput):
		if i % 2 == 0:
			result = result + hate + ' '
		else:
			result = result + love + ' '
	lis = [*result]
	del lis[-6:-1]
	result2 = ''
	for item in lis:
		result2 += item
	print(result2 + 'it')


n = int(input())
ans = ''
flag = True

def a(k):
	global flag
	global ans
	if flag:
		ans += 'I hate '
	else:
		ans += 'I love '
	flag = not flag
	if k == 1:
		ans += 'it'
	else:
		ans += 'that '
		a(k - 1)
a(n)
print(ans)


def main():
	one = 'I hate it'
	two = 'I hate that I love it'
	inp = int(input())
	if inp % 2 == 0:
		L = ['I hate that I love that' for i in range((inp - 2) // 2)] if inp > 2 else []
	else:
		L = ['I hate that I love that' for i in range(inp // 2)] if inp > 2 else []
	print((' '.join(L) + ' ' + two).strip() if inp % 2 == 0 else (' '.join(L) + ' ' + one).strip())
main()


n = int(input())
s = 'I hate'
s1 = 'I love'
a = [s, s1] * n
print(' that '.join(a[:n]), ' it')


def hulkWords(num):
	hulk = ['I hate that' if i % 2 == 0 else 'I love that' for i in range(0, num - 1)]
	if num % 2 == 0:
		hulk.append('I love it')
	else:
		hulk.append('I hate it')
	return ' '.join(hulk)
print(hulkWords(int(input())))


n = max(int(input('')), 1)
print(' '.join(((i % 2 != 0) * 'I hate that' + (i % 2 == 0) * 'I love that' for i in range(1, n))), (n % 2 != 0) * 'I hate it' + (n % 2 == 0) * 'I love it')


x = int(input())
c = ''
for i in range(1, x + 1):
	if i % 2 == 1:
		c += 'I hate that '
	else:
		c += 'I love that '
d = c[0:-5] + 'it'
print(d)


layer = int(input())
i = 1
output = 'I hate'
while i < layer:
	if i % 2 != 0:
		output += ' that I love'
	else:
		output += ' that I hate'
	i += 1
print(f'{output} it')


n = int(input())
a = ' I hate'
b = ' I love'
out = ''
for i in range(1, n + 1):
	if i % 2 == 1:
		out = out + a + ' that'
	else:
		out = out + b + ' that'
out = out[:len(out) - 4]
print(out + 'it')


n = int(input())
end = []
hate = ['I', 'hate', 'that']
love = ['I', 'love', 'that']
for i in range(n):
	if i % 2 == 0:
		end += hate
	elif i % 2 != 0:
		end += love
else:
	end.pop(len(end) - 1)
	end.append('it')
	end = ' '.join(end)
print(end)


def hulk(no):
	s = 'I hate '
	for i in range(1, no):
		if i % 2 != 0:
			s += 'that I love '
		else:
			s += 'that I hate '
	s = s + 'it'
	return s
no = int(input())
print(hulk(no))


n = int(input())
x = 'I hate it'
y = 'I love it'
z = ' that '
p = 'I hate'
q = 'I love'
r = x
t = ''
if n % 2 == 0:
	r = y
for i in range(1, n):
	if i % 2 == 0:
		t = t + q + z
	else:
		t = t + p + z
print(t + r)


n = int(input())
finalstr = ''
str1 = 'I hate that I love'
if n == 1:
	print('I hate it')
elif n % 2 == 0:
	if n == 2:
		print(str1 + ' ' + 'it')
	else:
		while n > 0:
			finalstr += str1 + ' ' + 'that' + ' '
			n -= 2
		p = finalstr.rfind('that')
		finalstr = finalstr[:p]
		finalstr += 'it'
		print(finalstr)
elif n == 3:
	print(str1 + ' ' + 'that' + ' ' + 'I hate' + ' ' + 'it')
else:
	p = n // 2
	while p > 0:
		finalstr += str1 + ' ' + 'that' + ' '
		p -= 1
	finalstr += 'I hate it'
	print(finalstr)


a = int(input())
n = 1
while n <= a:
	if n == a:
		mest = 'it'
	else:
		mest = 'that'
	if n % 2 == 0:
		print('I love ' + mest, end=' ')
	else:
		print('I hate ' + mest, end=' ')
	n = n + 1


import math
import os
import random
import re
import sys
i = int(input())

def mainf(input):
	ostring = ''
	for x in range(1, input + 1):
		if x % 2 == 1 and x == input:
			ostring += 'I hate it'
		if x % 2 == 0 and x == input:
			ostring += 'I love it'
		if x % 2 == 1 and x != input:
			ostring += 'I hate that '
		if x % 2 == 0 and x != input:
			ostring += 'I love that '
	print(ostring)
mainf(i)


ipt = input()
ipt = int(ipt)
new_string = ''
love = 'I love that '
hate = 'I hate that '
flag = False
for i in range(ipt):
	if i + 1 == ipt:
		if ipt % 2 == 0:
			new_string = new_string + 'I love it'
			break
		else:
			new_string = new_string + 'I hate it'
			break
	if flag == False:
		new_string = new_string + hate
		flag = True
	else:
		new_string = new_string + love
		flag = False
print(new_string)


b = int(input())
if b % 2 == 0 and (b - 2) / 2 >= 1:
	print('I hate that I love that ' * int((b - 2) / 2), 'I hate that I love it')
if b % 2 != 0 and (b - 1) / 2 >= 1:
	print('I hate that I love that ' * int((b - 1) / 2), 'I hate it')
if b == 1:
	print('I hate it')
if b == 2:
	print('I hate that I love it')


n = int(input())
odd = 'I hate'
even = 'I love'
end = 'it'
tran = 'that'
stat = ''
if n == 0:
	print('')
else:
	for i in range(1, n + 1):
		if i == 1:
			stat = odd
		elif i % 2 == 0:
			stat = stat + ' ' + even
		else:
			stat = stat + ' ' + odd
		if i == n:
			stat = stat + ' ' + end
		else:
			stat = stat + ' ' + tran
	print(stat)


n = int(input())
first = 'I hate it'
i = 2
while i <= n:
	if i % 2 == 0:
		first = first.replace('it', 'that I love it')
		i += 1
	else:
		first = first.replace('it', 'that I hate it')
		i += 1
print(first)


n = int(input())
a = 'I hate '
b = 'that I love '
c = 'that I hate '
d = 'it'
even = int(n / 2 - 1)
odd = int((n - 1) / 2)
if n % 2 == 0:
	print(a + b + (c + b) * even + d)
else:
	print(a + (b + c) * odd + d)


t = int(input())
beginningodd = 'I hate it'
beginningeven = 'I hate that I love it'
l = 'I hate that I love that '
n = t // 2
if t % 2 == 0:
	result = (n - 1) * l + beginningeven
if t % 2 != 0:
	result = n * l + beginningodd
print(result)


n = int(input())
l = 'I love '
h = 'I hate '
result = ''
for i in range(n):
	if i % 2 == 1:
		result += l
	if i % 2 == 0:
		result += h
	if i >= 0 and i < n - 1:
		result += 'that '
result += 'it'
print(result)


def dumbHulk(n):
	speech = ''
	for number in range(0, int(n)):
		if number % 2 == 0:
			speech += 'I hate that '
		else:
			speech += 'I love that '
	return speech[:-5] + 'it'
k = input()
print(dumbHulk(k))


number = int(input())
if number == 1:
	print('I hate it')
else:
	map1 = {}
	map1[0] = 'I hate'
	map1[1] = 'I love'
	string = ''
	for i in range(0, number):
		if i % 2 == 0:
			string += map1[i % 2] + ' that '
		else:
			string += map1[i % 2] + ' that '
	print(string[:len(string) - 6] + ' it')


print(' that '.join(['II  hlaotvee'[i % 2::2] for i in range(int(input()))]) + ' it')


n = int(input())
string = ['I hate that' if x % 2 == 1 else 'I love that' for x in range(1, n + 1)]
string[-1] = string[-1].replace('that', 'it')
print(' '.join(string))


feeling = ['I hate', 'I love']
n = int(input())
result = []
append = [result.append(feeling[i % 2]) for i in range(n)]
print(' that '.join(result) + ' it')


n = eval(input())
a = ['I hate']
s1 = 'that I love'
s2 = 'that I hate'
tail = 'it'
for i in range(1, n):
	if i & 1 == 1:
		a.append(s1)
	else:
		a.append(s2)
a.append(tail)
print(' '.join(a))


def answer():
	n = int(input())
	potato = n
	ans = ''
	i = 0
	while i < n:
		if i % 2:
			targ = 'I love '
		else:
			targ = 'I hate '
		ans += targ
		if i != n - 1:
			ans += 'that '
		if i == n - 1:
			ans += 'it'
		i += 1
	return ans
print(answer())


n = int(input())
base = 'I hate '
sec = 'I love '
flip = 0
ans = base
for i in range(1, n):
	if flip == 0:
		ans = ans + 'that ' + sec
		flip = 1
	else:
		ans = ans + 'that ' + base
		flip = 0
print(ans + 'it')


n = int(input())
a = []
b = ['that I love ', 'that I hate ']
a.append('I hate ')
for i in range(1, n):
	a.append(b[(i + 1) % 2])
a.append('it')
for i in range(len(a)):
	print(a[i], end='')


a = int(input())
output = 'I hate '
ctr = 1
while ctr < a:
	output += 'that I '
	if ctr % 2 == 0:
		output += 'hate '
	else:
		output += 'love '
	ctr += 1
output += 'it'
print(output)


c = int(input())
a = ('I hate', 'I love', 'that')
p = []
for i in range(c):
	if i % 2 == 0:
		p.append(a[0])
		p.append(a[2])
	elif i % 2 == 1:
		p.append(a[1])
		p.append(a[2])
p[len(p) - 1] = 'it'
print(*p)


n = int(input())
n_par = int(n / 2 - 1)
n_impar = int((n - 1) / 2)
final_impar = 'I hate it'
final_par = 'I hate that I love it'
if n == 1:
	print(final_impar)
elif n == 2:
	print(final_par)
elif n == 3:
	print('I hate that I love that I hate it')
elif n == 4:
	print('I hate that I love that I hate that I love it')
elif n % 2 == 0:
	print('I hate that I love that ' * n_par + final_par)
else:
	print('I hate that I love that ' * n_impar + final_impar)


def main():
	length = int(input())
	string = ''
	counter = 0
	while length > 0:
		if counter % 2 == 0:
			string += 'I hate '
			if length == 1:
				string += 'it'
				break
			else:
				string += 'that '
				length -= 1
				counter += 1
		else:
			string += 'I love '
			if length == 1:
				string += 'it'
				break
			else:
				string += 'that '
				length -= 1
				counter += 1
	print(string)
main()


n = int(input())
t = int(n / 2)
a = ['I hate', 'I love'] * t
if n % 2 == 1:
	a.append('I hate')
s = ' that '.join(a)
s += ' it'
print(s)


n = int(input())
(s, l, k) = ('', ['that ', 'it'], 0)
for i in range(1, n + 1):
	if i == n:
		k += 1
	if i % 2 == 1:
		s += f'I hate {l[k]}'
	else:
		s += f'I love {l[k]}'
print(s)


def genlis(lis, n):
	if n % 2 == 0:
		lis.append('that I love')
	else:
		lis.append('that I hate')
	return lis
n = int(input())
lis = ['I hate']
if n == 1:
	print('I hate it')
else:
	for i in range(n - 1):
		lis = genlis(lis, i)
	lis.append('it')
	print(' '.join(lis))


x = int(input())
r = 'I hate it'
d = 'I love it'
h = ' I hate that '
l = 'I love that'
c = h + l
if x % 2 != 0:
	print(int((x - 1) / 2) * c, r)
else:
	ks = 'I hate that'
	print(int((x - 2) / 2) * c, ks, d)


n = int(input())
str_hate = 'I hate '
str_love = 'I love '
that = 'that '
it = 'it'
res = ''
for i in range(n):
	if i % 2 == 0:
		res += str_hate
	else:
		res += str_love
	if i < n - 1:
		res += that
res += it
print(res)


n = int(input())
S = ''
f = 1
c = 1
l = 1
while n > 1:
	c = 1
	if f == 1:
		if l == 1:
			S = S + 'I hate that'
			l = 2
			n = n - 1
			f = f + 1
			c = 0
		else:
			S = S + ' ' + 'I hate that'
			f = f + 1
			n = n - 1
			c = 0
	if f == 2 and c == 1:
		S = S + ' ' + 'I love that'
		f = f - 1
		n = n - 1
if f == 1:
	if l == 1:
		S = S + 'I hate it'
	else:
		S = S + ' ' + 'I hate it'
else:
	S = S + ' ' + 'I love it'
print(S)


a = int(input())
b = ['I hate', 'I love'] * a
print(' that '.join(b[:a]), ' it ')


n = int(input())
s1 = 'I hate'
s2 = 'that I love'
s3 = 'that I hate'
s_n = 'it'
s = s1
if n < 2:
	s = s
else:
	for i in range(2, n + 1):
		if i % 2 == 0:
			s = s + ' ' + s2
		else:
			s = s + ' ' + s3
s = s + ' ' + s_n
print(s)


n = int(input())
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n % 2 == 0 and n != 2:
	print('I hate that I love that ' * (n // 2 - 1), 'I hate that I love it', sep='')
elif n % 2 != 0 and n != 1:
	print('I hate that I love that ' * (n // 2), 'I hate it', sep='')


n = int(input())
Mas = [''] * 3
Mas[1] = 'I love that '
Mas[0] = 'I hate that '
strak = ''
for i in range(0, n - 1):
	if i % 2 == 0:
		strak += Mas[0]
	else:
		strak += Mas[1]
if n % 2 == 1:
	strak += 'I hate it'
else:
	strak += 'I love it'
print(strak)


q = lambda : map(int, input().split())
(n,) = q()
(a, b, c) = ('I hate ', 'I love ', 'that ')
print(a, end='')
for i in range(0, n - 1):
	print(c, end='')
	if i % 2 == 0:
		print(b, end='')
	else:
		print(a, end='')
print('it')


n = int(input())
ch = 'I love that I hate that '
ch1 = 'I love it '
ch2 = 'I hate that I love that '
ch3 = 'I hate it '
if n == 1:
	print(ch3)
elif n == 2:
	print('I hate that I love it')
elif n % 2 != 0:
	print(ch2 * (n // 2) + ch3)
else:
	print(ch2 * (n // 2 - 1) + 'I hate that ' + ch1)


(i, _, b) = (int(input()), print('I hate', end=' '), False)
for j in range(i - 1):
	(_, b) = (print('that I hate' if b else 'that I love', end=' '), not b)
print('it')


n = int(input())
list = []
flag = True
while n != 0:
	if flag == True:
		list.append('I hate ')
	else:
		list.append('I love ')
	flag = not flag
	if n >= 2:
		list.append('that ')
	n = n - 1
list.append('it')
feelings = ''.join(list)
print(feelings)


n = int(input())
i = 1
while i <= n:
	if i % 2 == 1 and i == n:
		print('I hate it', end='')
		exit()
	if i % 2 == 0 and i == n:
		print('I love it', end='')
		exit()
	if i % 2 == 1:
		print('I hate that', end=' ')
	if i % 2 == 0:
		print('I love that', end=' ')
	i += 1


n = int(input())
s = ''
while n > 0:
	if n % 2 == 0:
		s = 'I love that ' + s
	else:
		s = 'I hate that ' + s
	n -= 1
print(s.strip()[:-4] + 'it')


n = int(input())
ch1 = ' I hate it'
ch2 = ' I love it'
ch3 = ' I hate that '
ch4 = ' I love that '
ch5 = ''
if n == 1:
	ch5 = ch5 + ch1
else:
	for i in range(n - 1):
		if i % 2 == 0:
			ch5 = ch5 + ch3
		else:
			ch5 = ch5 + ch4
	if (n - 1) % 2 == 0:
		ch5 = ch5 + ch1
	else:
		ch5 = ch5 + ch2
print(ch5)


n = int(input())
a = ['I hate ', 'I love'] * n
print(' that '.join(a[0:n]), 'it')


l = 'I love'
h = 'I hate'
t = 'that'
i = 'it'
n = int(input())
e = n
if n == 1:
	print(h, i)
else:
	for c in range(1, n):
		if c % 2 == 1:
			print(h, t, end=' ')
		else:
			print(l, t, end=' ')
	if e % 2 == 0:
		print(l, i, end=' ')
	else:
		print(h, i, end=' ')


n = int(input())
i = 0
a = 'I hate'
b = 'I love'
d = 'that'
c = list([])
while i in range(n):
	if n == 1:
		print('I hate', end=' ')
	elif i % 2 == 0:
		c.append(a)
		c.append(d)
	elif i % 2 != 0:
		c.append(b)
		c.append(d)
	i += 1
print(*c[:-1], 'it')


n = int(input())
a = []
for i in range(1, n):
	if i % 2 == 1:
		a.append('I hate that')
	else:
		a.append('I love that')
if n % 2 == 1:
	a.append('I hate it')
else:
	a.append('I love it')
listToStr = ' '.join([str(elem) for elem in a])
print(listToStr)


n = int(input())
s = 'I hate that I love that ' * (n // 2) + 'I hate that ' * (n % 2)
s = s[:len(s) - 5] + 'it'
print(s)


n = int(input())
x = 'I love'
y = 'I hate'
for i in range(n):
	print(y, end=' ')
	if i < n - 1:
		print('that', end=' ')
	(x, y) = (y, x)
print('it')


n = int(input())
aaa = 'I hate it'
e = 'I hate that I love that '
ddd = 'I hate that I love it'
if n == 1:
	print(aaa)
elif n == 2:
	print(ddd)
elif n % 2 == 0:
	print(e * (n // 2 - 1) + ddd)
else:
	print(e * (n // 2) + aaa)


n = int(input())
feelings = ['I hate', 'I love']
print(' that '.join([feelings[i % 2] for i in range(n)]) + ' it')


def myMethod(n):
	s = ''
	even = 'I hate '
	odd = 'I love '
	for i in range(n):
		if i % 2 == 0:
			s += even
		else:
			s += odd
		if i != n - 1:
			s += 'that '
	return s + 'it'
n = int(input())
print(myMethod(n))


def inception(line):
	expression = ['hate', 'love']
	template1 = 'I x it'
	template2 = 'I x that '
	str = ''
	if line % 2 == 0:
		_line = line
	else:
		_line = line + 1
	while line > 0:
		if line != 1:
			str += template2.replace('x', expression[_line % 2])
		else:
			str += template1.replace('x', expression[_line % 2])
		line -= 1
		_line -= 1
	return str
line = int(input())
print(inception(line))


layers = int(input())
op = ''
ops = ['I hate ', 'I love ']
for i in range(layers):
	string = ('that ', 'it ')[i == layers - 1]
	op += (ops[1], ops[0])[i % 2 == 0] + string
print(op)


n = int(input())
counter = 1
feeling = 'I hate'
while counter != n:
	if counter % 2 == 0:
		feeling += ' that I hate'
		counter += 1
	else:
		feeling += ' that I love'
		counter += 1
print(feeling + ' it')


def solution(a):
	for k in range(a):
		if k % 2 == 0:
			print('I hate ', end='')
		else:
			print('I love ', end='')
		if k == a - 1:
			print('it')
		else:
			print('that ', end='')
solution(int(input()))


n = int(input())
h = 'I hate'
l = 'I love'
i = ' it '
t = ' that '
if 0 == n % 2:
	a = h + t
	b = n / 2
	b = int(b)
	for o in range(b - 1):
		a += l + t + h + t
	a += l + i
	print(a)
else:
	b = n / 2
	b = int(b)
	a = h
	for o in range(b):
		a += t + l + t + h
	a += i
	print(a)


def hateLove(n):
	res = 'I hate '
	if n == 1:
		return res + 'it'
	for i in range(2, n + 1):
		if i % 2 == 0:
			res += 'that I love '
		else:
			res += 'that I hate '
	return res + 'it'
n = int(input())
print(hateLove(n))


a = 'I hate'
b = ' it'
l = ' that I love'
h = ' that I hate'
ans = []
n = int(input())
c = True
for i in range(1, n):
	if c:
		ans.append(l)
		c = False
	else:
		ans.append(h)
		c = True
ans.append(b)
ans = [a] + ans
print(''.join(ans))


import sys
n_s = sys.stdin.readline()
while n_s:
	n = int(n_s)
	res = ''
	for i in range(n):
		if i % 2 == 0:
			if len(res) != 0:
				res += ' that I hate '
			else:
				res += 'I hate '
		else:
			res += ' that I love '
	if not res.endswith('it'):
		res += ' it'
	res = res.replace('  ', ' ')
	print(res)
	n_s = sys.stdin.readline()


n = input()
n = int(n)
w = 'I hate it '
x = 'I love it '
y = 'I hate that '
z = 'I love that '
a = y + z
b = y + x
for i in range(10000):
	if n == i + 1 and n % 2 != 0:
		g = int(n / 2)
		print(g * a + w)
	elif n == i + 1 and n % 2 == 0:
		g = int(n / 2) - 1
		print(g * a + b)


n = int(input())
m = 'I hate'

def speak(word, i):
	if i % 2 == 0 and i != 0:
		return word + ' that I hate'
	elif i % 2 == 1:
		return word + ' that I love'
	else:
		return word
for i in range(n):
	m = speak(m, i)
print(m + ' it')


n = int(input())
e = 'I love '
o = 'I hate '
m = 'that '
l = 'it '
result = ''
for i in range(0, n):
	if i % 2 != 0:
		result = result + e
	else:
		result = result + o
	if i == n - 1:
		result = result + l
	else:
		result = result + m
print(result)


i = int(input())
k = ' '
l = []
for p in range(0, i):
	if p % 2 == 0:
		l.append('hate')
	else:
		l.append('love')
p = 0
while p < i * 2 - 1:
	l.insert(p, 'I')
	p = p + 2
p = 2
while p < i * 3 - 2:
	l.insert(p, 'that')
	p = p + 3
l.append('it')
print(k.join(l))


inp = input
li = list
iinp = lambda : int(inp())
ent = lambda : map(int, inp().split())
lient = lambda : li(ent())
n = iinp()
if n == 1:
	print('I hate it')
else:
	res = 'I hate '
	for i in range(2, n + 1):
		if i % 2 == 0:
			res += 'that I love '
		else:
			res += 'that I hate '
	print(res + 'it')


import sys

def solve():
	n = int(input())
	stri = 'I '
	if n > 1:
		for i in range(1, n + 1):
			if i % 2 == 0:
				stri += 'love '
			else:
				stri += 'hate '
			if i != n:
				stri += 'that I '
	else:
		stri += 'hate '
	stri += 'it'
	return stri
ans = solve()
print(ans)


n = int(input())
feels = ['I hate', 'I love'] * n
print(' that '.join(feels[:n]), 'it')


import sys
n = int(sys.stdin.readline())
o = 'I hate '
e = 'I love '
t = ''
for i in range(1, n + 1):
	if i % 2:
		t += o
	else:
		t += e
	if i == n:
		t += 'it'
	else:
		t += 'that '
print(t)


n = int(input())
if 1 <= n and n <= 100:
	a = 'I hate that I love it'
	s = 'I hate it'
	c = 'I hate that I love that '
	d = 'I love that I hate that '
	b = n / 2 - 1
	e = (n - 1) / 2
	b = int(b)
	e = int(e)
	if n == 1:
		print(s, end='')
	if n == 2:
		print(a, end='')
	else:
		if n % 2 != 0 and n != 1:
			print(c * e + 'I hate it', end='')
		if n % 2 == 0 and n != 1:
			print('I hate that ' + d * b + 'I love it', end='')


numero_capas = int(input())
sentimiento = 'I hate'
if numero_capas > 1:
	for i in range(1, numero_capas):
		if i % 2 != 0:
			sentimiento = sentimiento + ' that I love'
		else:
			sentimiento = sentimiento + ' that I hate'
sentimiento = sentimiento + ' it'
print(sentimiento)


count_level = int(input())
string = []
for i in range(count_level):
	if i % 2 == 0:
		string.append('I hate')
	else:
		string.append('I love')
print(' that '.join(string), 'it')


n = int(input())
li = 'I love it '
lt = 'I love that '
hi = 'I hate it '
ht = 'I hate that '
st = str()
for i in range(1, n + 1):
	if i == n and i % 2 == 1:
		st += hi
	elif i == n and i % 2 == 0:
		st += li
	elif i % 2 == 1:
		st += ht
	else:
		st += lt
print(st)


n = int(input()) - 1
s = ['I hate', 'I love', 'that']
r = s[0] + ' '
b = True
for i in range(n):
	r += f'{s[2]} {(s[1] if b else s[0])} '
	b = not b
print(f'{r}it')


n = int(input())
one = 'I hate that '
two = 'I love that '
s = ''
ans = ''
if n % 2 == 0:
	s = 'I love it'
else:
	s = 'I hate it'
for i in range(1, n):
	if i % 2 == 0:
		ans += two
	else:
		ans += one
ans += s
print(ans)


n = int(input())
i = 0
u = str()
f = 0
while i != n:
	if f != 0:
		u = u + 'that '
	if i % 2 != 0:
		u = u + 'I love '
	else:
		u = u + 'I hate '
	i = i + 1
	f = f + 1
if i == n:
	u = u + 'it'
	print(u)


n = int(input())
s = 'I hate'
love = True
while n > 1:
	s += ' that '
	if love:
		s += 'I love'
		love = False
	else:
		s += 'I hate'
		love = True
	n -= 1
s += ' it'
print(s)


while True:
	try:
		n = int(input())
		while n != 0:
			print('I hate ', end='')
			n -= 1
			if n != 0:
				print('that I love ', end='')
				n -= 1
			if n != 0:
				print('that ', end='')
		print('it')
	except:
		break


n = int(input())
a = ' I hate that'
b = ' I love that'
t = ''
for i in range(1, n + 1):
	if i % 2 != 0:
		t += a
	else:
		t += b
m = t.split()
m[-1] = 'it'
j = ''
for jj in m:
	j += jj + ' '
print(j)


n = int(input())
string = 'I hate '
flag = 'hate '
for i in range(n - 1):
	string += 'that '
	if flag == 'hate ':
		flag = 'love '
		string += 'I '
		string += flag
	else:
		flag = 'hate '
		string += 'I '
		string += flag
string += 'it'
print(string)


def fraseDoHulk(n):
	if n < 2:
		return ''
	if n % 2 == 0:
		return fraseDoHulk(n - 1) + ' that I love'
	else:
		return fraseDoHulk(n - 1) + ' that I hate'

def main():
	n = int(input())
	print('I hate' + fraseDoHulk(n) + ' it')
while True:
	try:
		main()
	except EOFError:
		break


n = int(input())
a = 1
g = ''
while a < n + 1:
	if a % 2 == 1 and a != n:
		g = g + 'I hate that '
	if a % 2 == 1 and a == n:
		g = g + 'I hate it'
	if a % 2 == 0 and a != n:
		g = g + 'I love that '
	if a % 2 == 0 and a == n:
		g = g + 'I love it'
	a = a + 1
print(g)


n = int(input())
a = ''
for i in range(1, n + 1):
	if i % 2 != 0:
		a = a + 'I hate '
		a = a + 'that '
	else:
		a = a + 'I love '
		a = a + 'that '
a = list(a)
a = a[0:len(a) - 5]
a.append('i')
a.append('t')
for j in range(0, len(a)):
	print(a[j], end='')


import sys
n = int(sys.stdin.readline().rstrip())
if n == 1:
	print('I hate it\n')
else:
	curr = ''
	for i in range(2, n + 1):
		if i % 2 == 1:
			curr += 'that I hate '
		else:
			curr += 'that I love '
	print('I hate ' + curr + 'it\n')


n = int(input())
g = n
s1 = 'I love'
s2 = 'I hate'
s3 = ' that '
st = ''
for i in range(n):
	if i % 2 == 1:
		st += s1
	else:
		st += s2
	if g != 0 and g != 1:
		st += s3
	g -= 1
print(st + ' it')


n = int(input())
while n < 1 or n > 100:
	n = int(input())
l = []
a = 'I hate '
b = 'I love '
c = 1
while c < n + 1:
	if c % 2 == 1:
		l.append(a)
		if c < n and c % 2 == 1:
			l.append('that ')
	elif c % 2 == 0:
		l.append(b)
		if c < n and c % 2 == 0:
			l.append('that ')
	c += 1
l.append('it ')
l = ''.join(l)
print(l)


w = ['I hate', 'I love']
z = ''
n = int(input())
for x in range(1, n + 1):
	if x == n:
		z = z + ' ' + w[x % 2 - 1] + ' ' + 'it'
	else:
		z = z + ' ' + w[x % 2 - 1] + ' ' + 'that'
print(z.strip())


import sys
num = int(input())
ans = ''
for i in range(1, num + 1):
	if i % 2 != 0:
		ans += 'I hate'
	else:
		ans += 'I love'
	if i < num:
		ans += ' that '
	else:
		ans += ' it'
print(ans)
sys.exit()


n = int(input())
relation = {0: 'I love {}', 1: 'I hate {}'}
for i in range(1, n + 1):
	print(relation.get(i % 2).format('that' if i != n else 'it'), end=' ')


from sys import stdin

def main():
	uno = 'I hate'
	dos = 'I love'
	n = int(stdin.readline().strip())
	i = 1
	res = 'I hate'
	while i < n:
		if i % 2 == 0:
			res = res + ' that ' + uno
		else:
			res = res + ' that ' + dos
		i += 1
	print(res + ' it')
main()


from sys import stdin

def main():
	(love, hate) = ('I love', 'I hate')
	n = int(stdin.readline())
	ans = ''
	turn = 0
	for i in range(n):
		if turn == 0:
			ans += hate
			turn = 1
		else:
			turn = 0
			ans += love
		if i + 1 != n:
			ans += ' that '
	ans += ' it'
	print(ans)
main()


import itertools

def hulk_says(n: int) -> str:
	layers = ('hate', 'love')
	return 'I ' + ' that I '.join([layers[(n - 1) % 2] for n in range(1, n + 1)]) + ' it'
n = int(input())
result = hulk_says(n=n)
print(result)


n = int(input())
n1 = 'I hate'
n2 = 'I love'
l = []
for i in range(1, n + 1):
	if i & 1:
		l.append(n1)
	else:
		l.append(n2)
l = ' that '.join(l)
print(l + ' ' + 'it')


a = int(input())
k = ''
if a % 2 == 0:
	while a > 0:
		if a - 2 == 0:
			k = k + 'I hate that I love it'
			a -= 2
		else:
			k = k + 'I hate that I love that '
			a -= 2
else:
	while a % 2 == 1:
		if a - 1 == 0:
			k = k + 'I hate it'
			a -= 1
		else:
			k = k + 'I hate that I love that '
			a -= 2
print(k)


(k, res, n) = (1, '', int(input()))
for i in range(n):
	if i == n - 1:
		if i % 2 == 0:
			res += 'I hate it'
		else:
			res += 'I love it'
	elif i % 2 == 0:
		res += 'I hate that '
	else:
		res += 'I love that '
print(res)


freq = int(input())
for i in range(freq):
	if i > 0:
		print('that', end=' ')
	if not i % 2 == 0:
		print('I love', end=' ')
	else:
		print('I hate', end=' ')
print('it')


x = int(input())
t = ['I', 'hate', 'it']
for i in range(1, x):
	if (i + 1) % 2 == 0:
		t.insert(len(t) - 1, 'that I love')
	else:
		t.insert(len(t) - 1, 'that I hate')
print(' '.join(t))


n = int(input())
h = 'I hate '
l = 'I love '
it = 'it '
t = 'that '
s = []
for i in range(n):
	s.append((h, l)[i % 2])
print(*s, sep=' that ', end=' it\n')


i = int(input())
feel1 = 'I hate'
feel2 = 'I love'
in1 = 'that'
in2 = 'it'
b = True
st = ''
for e in range(0, i):
	if b == True:
		st += ' ' + feel1
		b = False
	else:
		st += ' ' + feel2
		b = True
	if e == i - 1:
		st += ' ' + in2
	else:
		st += ' ' + in1
print(st[1:])


def main():
	option = int(input(''))
	if option <= 100 and option >= 1:
		sentence = 'I hate '
		for x in range(0, option - 1):
			if x % 2 == 1:
				sentence += 'that I hate '
			elif x % 2 == 0:
				sentence += 'that I love '
		sentence += 'it'
		print(sentence)
main()


a = int(input())
m = 'I love'
n = 'I hate'
s = ''
i = 1
while i <= a:
	if i % 2 == 0:
		if i == a:
			s = s + m + ' it '
			break
		s = s + m + ' that '
	else:
		if i == a:
			s = s + n + ' it '
			break
		s = s + n + ' that '
	i += 1
print(s)


i = 'I'
l = 'love'
h = 'hate'
T = 'that'
it = 'it'
string = ''
n = int(input(''))
for j in range(1, n + 1):
	if j == n:
		if j % 2 == 0:
			string = string + ' ' + i + ' ' + l + ' ' + it + ' '
		else:
			string = string + ' ' + i + ' ' + h + ' ' + it + ' '
	elif j == 1:
		string = i + ' ' + h + ' ' + T + ' '
	elif j % 2 == 0:
		string = string + ' ' + i + ' ' + l + ' ' + T + ' '
	else:
		string = string + ' ' + i + ' ' + h + ' ' + T + ' '
print(string)


n = int(input())
a = ['I hate', 'I love'] * n
print(' that '.join(a[:n]), end=' it')


n = int(input())
a = []
for i in range(1, n + 1):
	if i == n and i % 2 != 0:
		a.append('I')
		a.append(' ')
		a.append('hate')
		a.append(' ')
		a.append('it')
	elif i == n and i % 2 == 0:
		a.append('I')
		a.append(' ')
		a.append('love')
		a.append(' ')
		a.append('it')
	elif i % 2 != 0:
		a.append('I')
		a.append(' ')
		a.append('hate')
		a.append(' ')
		a.append('that')
		a.append(' ')
	elif i % 2 == 0:
		a.append('I')
		a.append(' ')
		a.append('love')
		a.append(' ')
		a.append('that')
		a.append(' ')
c = ''
d = c.join(a)
print(d)


n = int(input())
s1 = 'I hate'
s2 = 'I love'
i = 0
l = []
for x in range(n):
	if n > i:
		i += 1
		if n == i:
			l.append(s1 + ' it')
			break
		else:
			l.append(s1 + ' that ')
		if n > i:
			i += 1
			if n == i:
				l.append(s2 + ' it')
				break
			else:
				l.append(s2 + ' that ')
s = ''.join(l)
print(s)


a = str('I hate')
b = str('I love')
c = str(' that ')
resultado = str('')
n = int(input())
for n in range(n, 0, -1):
	if n % 2 != 0 and n > 1:
		resultado = c + a + resultado
	elif n % 2 == 0 and n > 2:
		resultado = c + b + resultado
	elif n == 2:
		resultado = c + b + resultado
	elif n == 1:
		resultado = a + resultado
print(resultado + ' it')


def solution():
	answers = int(input())
	result = ''
	for i in range(answers):
		if i % 2 == 0:
			result += 'I hate '
			if i == answers - 1:
				result += 'it '
			else:
				result += 'that '
		else:
			result += 'I love '
			if i == answers - 1:
				result += 'it '
			else:
				result += 'that '
	print(result)

def array_to_int(array):
	for i in range(len(array)):
		array[i] = int(array[i])
	return array
solution()


n = int(input())
o = ''
for i in range(n):
	if i != 0:
		o += ' that'
	else:
		o += 'I hate'
		continue
	if i % 2:
		o += ' I love'
	else:
		o += ' I hate'
o += ' it'
print(o)


n = int(input())
hate = 'I hate'
love = 'I love'
it = ' it'
that = ' that '
if n == 1:
	print((hate + it).strip())
elif n % 2 == 0:
	s = hate + that + love + that
	s *= n // 2
	s = (s[:-6] + it).strip()
	print(s)
elif n % 2 != 0:
	s = hate + that + love + that
	s *= n // 2
	s = (s + hate + it).strip()
	print(s)


n = int(input())
res = 'I hate '
flag = 1
n = n - 1
while n > 0:
	if flag == 0:
		res = res + 'that I hate '
		flag = 1
	else:
		res = res + 'that I love '
		flag = 0
	n = n - 1
print(res + 'it')


x = int(input())
s1 = 'I hate '
s2 = 'I love '
s3 = 'that '
s4 = 'it'
l = []
for i in range(0, x):
	if i % 2 == 0:
		l.append(s1)
	else:
		l.append(s2)
s = ''
for g in l:
	s = s + g + s3
s = s[:-5]
s = s + s4
print(s)


n = int(input())
res = ''
for i in range(n):
	if i % 2 == 0:
		res += ' I hate it'
	else:
		res += ' I love it'
print(res[:-3].strip().replace('it', 'that') + res[-3:])


n = int(input())
d = {'ht': 'I hate that ', 'lt': 'I love that ', 'h': 'I hate it', 'l': 'I love it'}
out = ''
for i in range(1, n):
	if i == 0:
		print('')
		break
	elif n == 1:
		out += d['h']
	elif i == 1:
		out += d['ht']
	elif i % 2 == 0:
		out += d['lt']
	else:
		out += d['ht']
if n % 2 == 0:
	out += d['l']
else:
	out += d['h']
print(out)


hate = 'I hate'
love = 'I love'
output = ''
layer = int(input())
for i in range(1, layer + 1):
	if i % 2 == 1:
		if i < layer:
			output += hate + ' that '
		else:
			output += hate + ' it'
	elif i < layer:
		output += love + ' that '
	else:
		output += love + ' it'
print(output)


x = int(input())
a = ''
for i in range(1, x + 1):
	if i % 2 != 0:
		a += 'I hate it '
	else:
		a += 'I love it '
b = a.replace('it', 'that', x - 1)
print(b)


from sys import stdin
N = int(stdin.readline())
ans = ''
for i in range(N):
	if i % 2 == 0:
		ans += 'I hate '
	else:
		ans += 'I love '
	if i != N - 1:
		ans += 'that '
	else:
		ans += 'it '
print(ans)


n = int(input())
h = 'I hate '
l = 'I love '
t = 'that '
i = 'it'
f = ''
for j in range(n):
	if j % 2 == 0:
		f += h
	else:
		f = f + l
	if j + 1 < n:
		f += t
print(f + i)


import sys
import math
import re
import io

def solve(n):
	ans = io.StringIO()
	for i in range(n):
		if i % 2 == 0:
			ans.write('I hate ')
		else:
			ans.write('I love ')
		if i < n - 1:
			ans.write('that ')
		else:
			ans.write('it')
	return ans.getvalue()

def main():
	n = int(input())
	ans = solve(n)
	print(ans)
main()


n = int(input())
sentence = ''
for item in range(n):
	if item == 0:
		sentence += 'I hate'
	elif item % 2 == 0:
		sentence += ' that I hate'
	elif item % 2 != 0:
		sentence += ' that I love'
sentence += ' it'
print(sentence)


n = int(input())
arr = ['I hate', 'I love']
i = 0
j = 0
while i < n:
	if i > 0:
		print('that', end=' ')
	if j == 2:
		j = 0
	print(arr[j], end=' ')
	j += 1
	i += 1
print('it')


n = int(input())
a = ['I', 'love', 'that']
b = ['I', 'hate', 'that']
d = []
for i in range(1, n + 1):
	if i % 2 == 0:
		d += a
	else:
		d += b
d[len(d) - 1] = 'it'
print(' '.join(d))


a = int(input())
r = ''
i = 1
while i <= a:
	if i % 2 == 1:
		r = r + 'I hate that '
	else:
		r = r + 'I love that '
	i += 1
r = r[:-5] + 'it'
print(r)


layer1 = 'I hate it'
layer2 = 'I love it'
layer1_be = 'I hate that '
layer2_be = 'I love that '
text = ''
last = ''
t = int(input())
n = 1
for _ in range(t):
	if t == n:
		if last == layer1_be:
			text += layer2
		else:
			text += layer1
	elif n < t:
		if n == 1 or not n % 2 == 0:
			text += layer1_be
			n += 1
			last = layer1_be
		else:
			text += layer2_be
			n += 1
			last = layer2_be
print(text)


n = int(input())
word = ['I hate', 'I love']
separator = ['it', 'that']
answer_vector = list()
for i in range(n):
	if i % 2:
		answer_vector.append(word[1])
		if n - 1 == i:
			answer_vector.append(separator[0])
		else:
			answer_vector.append(separator[1])
	if not i % 2:
		answer_vector.append(word[0])
		if n - 1 == i:
			answer_vector.append(separator[0])
		else:
			answer_vector.append(separator[1])
print(*answer_vector)


x = input()
y = 'I hate it'
y1 = 'I love it'
y2 = 'I love that'
y3 = 'I hate that '
yx1 = 'I hate that I love that '
yx2 = 'I hate that I love it'
if int(x) == 1:
	print(y)
elif int(x) == 2:
	print(yx2)
elif int(x) % 2 == 0:
	more = yx1 * int((int(x) - 2) / int(2))
	print(more + y3 + y1)
else:
	more = yx1 * int((int(x) - 1) / int(2))
	print(more + y)


n = int(input()) - 1
print('I hate ', (n >> 1) * 'that I love that I hate ', (1 & n) * 'that I love ', 'it', sep='')


num = int(input())
s1 = 'I hate it'
s2 = 'I hate that I love it'
s = num
while num > 2:
	if num % 2 == 0:
		s2 = 'I hate that I love that ' + s2
	else:
		s1 = 'I hate that I love that ' + s1
	num -= 2
if s % 2 == 0:
	print(s2)
else:
	print(s1)


a = {0: 'I hate', 1: 'I love'}
n = int(input())
c = a[0]
for i in range(1, n):
	c = c + ' that '
	c = c + a[i & 1]
c = c + ' it'
print(c)


n = int(input())
estado1 = 'I hate that '
estado2 = 'I love that '
estado3 = 'I hate it'
estado4 = 'I love it'
text = ''
for i in range(n):
	if i < n - 1:
		if i % 2 == 0:
			text = text + estado1
		else:
			text = text + estado2
	elif i % 2 == 0:
		text = text + estado3
	else:
		text = text + estado4
print(text)


n = int(input())
s = 'I hate that'
t = 'I love that'
q = 'I hate it'
r = 'I love it'
c = ''
for i in range(1, n):
	if i % 2 == 1:
		c = c + ' ' + s
	else:
		c = c + ' ' + t
if n % 2 == 1:
	c = c + ' ' + q
if n % 2 == 0:
	c = c + ' ' + r
print(c)


n = int(input())
x = 0
y = ''
while x < n:
	y = y + 'I hate '
	x = x + 1
	if x == n:
		break
	y = y + 'that I love '
	x = x + 1
	if x == n:
		break
	y = y + 'that '
y = y + 'it'
print(y)


def ii():
	return int(input())

def fi():
	return float(input())

def si():
	return input()

def mi():
	return map(int, input().split())

def li():
	return list(mi())
n = ii()
s = ''
a = 'I hate '
b = 'I love '
c = 'that '
i = 1
while n:
	if i % 2 == 1:
		s += a
		if n > 1:
			s += c
	else:
		s += b
		if n > 1:
			s += c
	i += 1
	n -= 1
print(s + 'it')


import sys
input = sys.stdin.readline
layers = list(map(int, input().split()))[0]
result = ''
for (i, el) in enumerate(range(layers), start=1):
	if i % 2 == 0 and i == layers:
		result += 'I love it'
	elif i % 2 == 0:
		result += 'I love that '
	elif i == layers:
		result += 'I hate it'
	else:
		result += 'I hate that '
print(result)


N = int(input())
n = 1
s = 'I hate'
while not N == n:
	n += 1
	if n % 2 == 0:
		s += ' that I love'
	else:
		s += ' that I hate'
s += ' it'
print(s)


def main():
	feelings = input()
	feelings = int(feelings)
	output = get_feelings(feelings)
	print(output)

def get_feelings(number):
	love = 'I love'
	hate = 'I hate'
	that = 'that'
	ending = 'it'
	lst = []
	for x in range(number):
		if (x + 1) % 2 > 0:
			lst.append(hate)
			lst.append(that)
		else:
			lst.append(love)
			lst.append(that)
	del lst[-1]
	lst.append(ending)
	lst = ' '.join(lst)
	return lst
main()


f = int(input())
h = 'that'
o = 'it'
d = ''
for i in range(1, f + 1):
	if i % 2 != 0 and i < f:
		d = d + 'I hate '
		d = d + h + ' '
	elif i % 2 == 0 and i < f:
		d = d + 'I love '
		d = d + h + ' '
	elif i == f:
		if i % 2 != 0:
			d = d + 'I hate '
			d = d + o
		else:
			d = d + 'I love '
			d = d + o
print(d)


n = int(input())
a = 'I hate it '
a1 = 'I hate that '
b = 'I love it '
b1 = 'I love that '
s = ''
for i in range(1, n + 1):
	if i % 2 != 0 and n == 1:
		s += a
	elif i % 2 == 0 and n == 2:
		s = a1 + b
	elif i % 2 != 0 and i != n:
		s += a1
	elif i % 2 == 0 and i != n:
		s += b1
	elif i % 2 != 0 and i == n:
		s += a
	elif i % 2 == 0 and i == n:
		s += b
print(s)


n = int(input())
A = [' I hate', ' I love']
w = 'I hate'
for i in range(n - 1):
	w = w + ' that' + A[(i + 1) % 2]
print(w + ' it')


if __name__ in ['__main__', 'hulk.py']:
	n = int(input())
	s = 'I'
	for x in range(n):
		if x == 0:
			s += ' hate'
		elif x % 2 == 0:
			s += ' that I hate'
		else:
			s += ' that I love'
	s += ' it'
	print(s)


n = int(input())
s = 'I hate'
t = 'it'
a = 'that'
b = 'I love'
result = ''
for i in range(0, n):
	if i > 0:
		result = result + ' ' + a
	if i % 2 == 0:
		result = result + ' ' + s
	else:
		result = result + ' ' + b
result = result + ' ' + t
print(result[1:])


n = int(input())
message = ''
hate = 'I hate that '
love = 'I love that '
layer = 1
while layer <= n:
	if layer % 2 != 0:
		message += hate
	if layer % 2 == 0:
		message += love
	layer += 1
message = message[:-5] + 'it'
print(message)


n = int(input())
str_1 = 'I hate '
str_2 = 'I love '
Str = []
for i in range(1, n + 1):
	if i % 2 == 0:
		Str.append(str_2)
	else:
		Str.append(str_1)
print('that '.join(map(str, Str)) + 'it')


n = int(input())
a = 'I hate '
b = 'I love '
m = 'that '
ab = 'I hate that I love that '
if n % 2 == 1:
	print(ab * (n // 2) + a + 'it')
else:
	print(ab * (n // 2 - 1) + a + m + b + 'it')


num = int(input())
aux = ['hate', 'love'] * num
print('I', ' that I '.join(aux[:num]), 'it')


n = int(input())
b = 'I hate '
v = 'I love '
t = 'that '
l = []
for x in range(0, n):
	if x % 2 == 0:
		l.append(b)
	else:
		l.append(v)
	if x != n - 1:
		l.append(t)
l.append('it')
a = ''.join(l)
print(a)


first = 'I hate'
second = 'I love'
sentence = 'I hate'
turn = 0
n = int(input())
if n == 1:
	print(sentence + ' it')
else:
	for _ in range(n - 1):
		if turn == 0:
			turn = 1
			sentence += ' that ' + second
		else:
			turn = 0
			sentence += ' that ' + first
	sentence += ' it'
	print(sentence)


n = int(input())
words = ['hate', 'love']
p = 0
ans = ''
while n > 0:
	ans += 'I {} that '.format(words[p])
	n -= 1
	p = 1 - p
print(ans[:-5] + 'it')


import math
import re
a = int(input())
if a == 0:
	print('')
expr = 'I hate '
for i in range(1, a):
	expr += 'that '
	if i % 2 == 0:
		expr += 'I hate '
	else:
		expr += 'I love '
expr += 'it'
print(expr)


times = int(input())
outPut = 'I hate'
for i in range(1, times):
	if i % 2 == 0:
		outPut = f'{outPut} that I hate'
	else:
		outPut = f'{outPut} that I love'
print(f'{outPut} it')


a = int(input())
d = ''
b = 'I hate'
c = 'I love'
if a == 1:
	d = d + b
	print(d + ' it')
	exit(0)
elif a % 2 == 0:
	d = d + b
	e = a
	while e > 1:
		if e % 2 == 0:
			d = d + ' that ' + c
		else:
			d = d + ' that ' + b
		e = e - 1
elif a % 2 != 0:
	d = d + b
	e = a
	while e > 1:
		if e % 2 == 0:
			d = d + ' that ' + b
		else:
			d = d + ' that ' + c
		e = e - 1
print(d + ' it')


x = int(input())
ch = ['I hate it']
for i in range(1, x):
	if i % 2 != 0:
		ch[i - 1] = 'I hate that'
		ch.append('I love it')
	else:
		ch[i - 1] = 'I love that'
		ch.append('I hate it')
print(' '.join(ch))


n = int(input())
count = 1

def hateOrLove(count):
	if count % 2 != 0:
		return 'hate'
	else:
		return 'love'

def thatOrIt(count):
	if count == n:
		return 'it'
	else:
		return 'that '

def myFunc(count):
	if count <= n:
		ans = 'I' + ' ' + hateOrLove(count) + ' ' + thatOrIt(count) + myFunc(count + 1) + ' '
		return ans
	else:
		return ''
print(myFunc(count))


a = int(input())
string = ''
frst = ' that I hate'
scnd = ' that I love'
if a != 0 and a != 1:
	for i in range(1, a):
		if i % 2 == 0:
			string = string + frst
		else:
			string = string + scnd
print('I hate' + string + ' it')


n = int(input())
a = 'I hate it'
b = 'I love it '
if n == 1:
	print(a)
elif n == 2:
	print('I hate that I love it')
else:
	s = a + ' ' + b
	for i in range(3, n + 1):
		if i % 2 != 0:
			s = s + ' ' + a
		else:
			s = s + ' ' + b
	s = s.replace('it', 'that')
	p = s.split()
	p.pop()
	p.append('it')
	q = ' '.join(p)
	print(q)


times = int(input())
hate = 'I hate it'
hates = 'I hate that'
love = 'I love it'
loves = 'I love that'
anse = ''
if times == 1:
	print(hate)
else:
	anse = anse + hates
	for i in range(0, times - 1, 1):
		if i % 2 == 0:
			if i + 1 != times - 1:
				anse = anse + ' ' + loves
			else:
				anse = anse + ' ' + love
		elif i + 1 != times - 1:
			anse = anse + ' ' + hates
		else:
			anse = anse + ' ' + hate
	print(anse)


def func(n):
	x = 'I hate that'
	y = 'I love that'
	ans = ''
	if n == 1:
		print('I hate it')
		return
	for i in range(n):
		if i % 2 == 0:
			ans += x + ' '
		else:
			ans += y + ' '
	ans = ans[:-5] + 'it'
	print(ans)
n = int(input())
func(n)


def main():
	n = int(input())
	result = ['hate', 'love'] * ((n + 1) // 2)
	result = result[:n]
	print('I ' + ' that I '.join(result) + ' it')
main()


from sys import stdin as cin
s = 'I hate'
n = int(cin.readline().strip())
for i in range(2, n + 1):
	if i % 2 != 0:
		s += ' that I hate'
	else:
		s += ' that I love'
print(s + ' it')


import sys

def get():
	return int(sys.stdin.readline().strip())
n = get()
for i in range(n):
	if i % 2:
		print('I love', end=' ')
	else:
		print('I hate', end=' ')
	if i == n - 1:
		print('it')
	else:
		print('that', end=' ')


say = []
for i in range(int(input())):
	say.append(['I hate', 'I love'][i % 2])
print(' that '.join(say), end=' it')


layers = int(input())
emotions = ['hate', 'love']
feeling = 'I hate '
for layer in range(1, layers):
	feeling = feeling + 'that I ' + emotions[layer % 2] + ' '
feeling += 'it'
print(feeling)


import sys
N = int(sys.stdin.readline())
result = 'I hate '
for i in range(N - 1):
	if i % 2:
		result += 'that I hate '
	else:
		result += 'that I love '
result += 'it'
print(result)


n = int(input())
if n % 2 == 0:
	print(' that '.join(['I hate', 'I love'] * (n // 2)), 'it')
else:
	print(' that '.join(['I hate'] + ['I love', 'I hate'] * (n // 2)), 'it')


def rec_love(n):
	if n == 1:
		return 'I hate'
	elif not n & 1:
		return rec_love(n - 1) + ' that I love'
	elif n & 1:
		return rec_love(n - 1) + ' that I hate'
n = int(input())
print(rec_love(n) + ' it')


def get_values():
	num = int(input())
	connector = ' that '
	finish = []
	res = []
	out = ''
	for i in range(1, num + 1):
		if i % 2 == 0:
			res.append('I love')
		else:
			res.append('I hate')
	for i in range(len(res)):
		finish.append(res[i])
		if i != len(res) - 1:
			finish.append(connector)
		elif i == len(res) - 1:
			finish.append(' it')
	for i in finish:
		out += i
	return print(out)
get_values()


n = int(input())
starting_string = 'I hate '
love_string = 'that I love '
hate_string = 'that I hate '
whole_string = ''
if n >= 1:
	whole_string += starting_string
if n > 1:
	for i in range(2, n + 1):
		if i % 2 == 0:
			whole_string += love_string
		else:
			whole_string += hate_string
whole_string += 'it'
print(whole_string)


def string(n):
	if n == 1:
		return 'I hate it'
	r = ''
	i = 1
	while i <= n:
		if i % 2 == 0:
			r += 'I love' + ' '
		else:
			r += 'I hate' + ' '
		if i == n:
			r += ''
		else:
			r += 'that '
		i += 1
	r = r + 'it'
	return r
n = int(input())
print(string(n))


import sys
fin = sys.stdin
fout = sys.stdout
res = []
n = int(fin.readline())
for i in range(n):
	if i % 2 == 0:
		res.append('I hate')
	else:
		res.append('I love')
res2 = []
for i in range(len(res)):
	res2.append(res[i])
	res2.append('that')
res2.pop()
res2.append('it')
fout.write(' '.join(res2))


n = int(input())
s = 'that'
h = 'I hate '
l = 'I love '
k = ''
for i in range(1, n + 1):
	if i != n:
		if i == 1 or i % 2 != 0:
			print(h + s, end=' ')
		else:
			print(l + s, end=' ')
	elif i == 1 or i % 2 != 0:
		print(h + 'it')
	else:
		print(l + 'it')


n = int(input())
str_1 = 'I hate '
str_2 = 'I love '
str_btw = 'that '
str_end = 'it'
str_ans = ''
for i in range(n):
	if i % 2 != 0:
		str_ans += str_2
	else:
		str_ans += str_1
	if i < n - 1:
		str_ans += str_btw
	else:
		str_ans += str_end
print(str_ans)


n = int(input())
e = 'I love'
o = 'I hate'
m = ' that '
t = 1
res = ''
while t < n:
	if t % 2 == 0:
		res = res + e
	else:
		res = res + o
	res = res + m
	t = t + 1
if n == 1:
	print('I hate it')
elif n % 2 == 0:
	res = res + 'I love it'
	print(res)
else:
	res = res + 'I hate it'
	print(res)


n = int(input())
string = ''
for i in range(n):
	string += 'I %s %s ' % ('hate' if i % 2 == 0 else 'love', 'that' if i != n - 1 else 'it')
print(string.strip())


def main():
	n = int(input())
	i = 1
	while i <= n:
		if i & 1:
			print('I hate', end=' ')
		else:
			print('I love', end=' ')
		if i != n:
			print('that', end=' ')
		i += 1
	print('it')
main()


l = []
m = int(input())
for i in range(m):
	if i % 2 is 0:
		l.append('hate')
	else:
		l.append('love')
x = ' that '.join(['I ' + i for i in l]) + ' it'
print(x)


odd = 'I hate that'
even = 'I love that'
oddLast = 'I hate it'
evenLast = 'I love it'
n = int(input())
for i in range(n):
	if i == n - 1:
		if (i + 1) % 2 == 0:
			print(evenLast, end=' ')
		else:
			print(oddLast, end=' ')
	elif (i + 1) % 2 == 0:
		print(even, end=' ')
	else:
		print(odd, end=' ')


layers = int(input())
sentence = ''
for i in range(1, layers + 1):
	if i % 2 != 0:
		sentence += 'I hate '
	elif i % 2 == 0:
		sentence += 'I love '
	if i != layers:
		sentence += 'that '
	elif i == layers:
		sentence += 'it'
print(sentence)


n = int(input())
love = 'I love it'
hate = 'I hate it'
love_that = 'I love that'
hate_that = 'I hate that'
if n == 1:
	word = hate
else:
	word = hate_that
	for i in range(n - 2):
		if i % 2 == 0:
			word += ' ' + love_that
		else:
			word += ' ' + hate_that
	if n % 2 == 0:
		word += ' ' + love
	else:
		word += ' ' + hate
print(word)


n = int(input())
x = 'I hate it'
y = 'I hate that I love that '
z = 'I hate that I love it'
if n % 2 == 0:
	s = int(n / 2) - 1
	print(s * y + z)
elif n % 2 != 0:
	s = int(n // 2)
	print(s * y + x)


a = int(input())
feeling = 'I'
for i in range(a):
	if i % 2 == 1:
		feeling += ' love'
	else:
		feeling += ' hate'
	if i == a - 1:
		break
	feeling += ' that I'
print(feeling + ' it')


n = int(input())
data = ['I hate', 'I love']
ans = ' that '.join((str(x) for x in [str(data[i % 2]) for i in range(n)])) + ' it'
print(ans)


a = input()
alfa = '                                                                                                        '
b = list(alfa)
for i in range(int(a)):
	if (i + 4) % 2 == 0:
		b[i] = ' I hate '
	else:
		b[i] = ' I love '
	if i > 0 and i < int(a):
		b[i] = 'that' + b[i]
b[i] = b[i] + 'it'
print(''.join(b))


n = print(' that '.join([['I hate', 'I love'][k % 2] for k in range(int(input()))]), 'it')


Halk = int(input())
print('I hate ', end='')
for say in range(Halk - 1):
	if say % 2 == 0:
		print('that I love ', end='')
	else:
		print('that I hate ', end='')
print('it')


import sys

def main():
	N = sys.stdin.readline()
	N = int(N)
	answer = ''
	for i in range(N):
		if (i + 1) % 2 != 0:
			answer = answer + 'I hate'
		else:
			answer = answer + 'I love'
		if i != N - 1:
			answer = answer + ' that '
	answer = answer + ' it'
	print(answer)
main()


n = int(input())
s1 = 'I hate'
s2 = 'I love'
result = []
for i in range(n):
	if i & 1:
		result.append(s2)
	else:
		result.append(s1)
	if i != n - 1:
		result.append('that')
result.append('it')
print(' '.join(result))


n = int(input())
w = ''
for i in range(n):
	if i % 2 != 0:
		w = w + ' ' + 'I love that'
	elif i % 2 == 0 and i != 1:
		w = w + ' ' + 'I hate that'
w = w.split()
w[-1] = 'it'
print(' '.join(w))


layers = input()
str1 = ' I hate it'
str2 = ' I love it'
for x in range(1, int(layers) + 1):
	if x == 1:
		str0 = 'I hate it'
	elif x % 2 == 0:
		str0 = str0.replace('it', 'that') + str2
	elif x % 2 != 0:
		str0 = str0.replace('it', 'that') + str1
print(str0)


l = []
n = int(input())
odd = 'I hate it'
even = 'I love it'
for i in range(n):
	if len(l) < n:
		l.append('I hate that')
		l.append('I love that')
if n % 2 == 0:
	l[-1] = even
if n % 2 != 0:
	l.pop()
	l[-1] = odd
print(' '.join(l))


def main():
	n = int(input())
	hate = n % 2 == 1
	result = f"I {('hate' if hate else 'love')} it"
	for i in range(n - 1):
		hate = not hate
		result = f"I {('hate' if hate else 'love')} that {result}"
	print(result)
main()


n = int(input())
ans = ''
w = 'hate'
for i in range(n):
	ans += 'I ' + w + ' that '
	if w == 'love':
		w = 'hate'
	else:
		w = 'love'
print(ans[:-5] + 'it')


def hulksFeeling(n):
	lookup = ['I love', 'I hate']
	feeling = []
	for i in range(1, n + 1):
		feeling.append(lookup[i % 2])
	feeling = ' that '.join(feeling)
	return feeling + ' it'
n = int(input())
print(hulksFeeling(n))


num = int(input())
h = 'I hate'
l = 'I love'
r = ''
i = 0
while i < num:
	if i % 2 == 0:
		if i == 0:
			r += h
		else:
			r += ' that ' + h
	else:
		r += ' that ' + l
	i += 1
r += ' it'
print(r)


n = int(input())
s = ('I hate ', 'I love ')
j = 0
s2 = ''
for i in range(n):
	if i == 0:
		s2 += s[j]
	else:
		s2 += 'that ' + s[j]
	j += 1
	if j == 2:
		j = 0
print(s2.rstrip(), 'it')


n = int(input())
state = list()
for i in range(1, n + 1):
	if i % 2 != 0:
		state.append('I hate')
	else:
		state.append('I love')
for i in range(len(state)):
	if i == len(state) - 1:
		print(state[i], end=' it')
	else:
		print(state[i], end=' that ')


layers = int(input())
hate = 'I hate '
love = 'I love '
end = 'it'
middle = 'that '
output = ''
for layer in range(1, layers + 1):
	if layer % 2 == 0:
		output = output + love
	else:
		output = output + hate
	if layer == layers:
		output = output + end
	else:
		output = output + middle
print(output)


n = int(input())
if n >= 1 and n <= 100:
	hate = 'that I hate it'
	love = 'that I love it'
	s = 'I hate it'
	i = 1
	while i <= n:
		if i == 1:
			s = s
		elif i % 2 == 1:
			s = s[:-2] + hate
		else:
			s = s[:-2] + love
		i += 1
	print(s)


import sys
value = int(input())
stringvalue = ''
startvalue = True
hateorlove = ''
while 0 < value:
	if value % 2 == 0:
		hateorlove = 'love'
	else:
		hateorlove = 'hate'
	if startvalue:
		stringvalue = 'I ' + hateorlove + ' it ' + stringvalue
		startvalue = False
	else:
		stringvalue = 'I ' + hateorlove + ' that ' + stringvalue
	value -= 1
print(stringvalue)


n = int(input())
(s1, s2, s3) = ('I hate', 'I love', ' that ')
stroka = ''
for i in range(1, n + 1):
	if i % 2 == 1:
		stroka = stroka + s1
	else:
		stroka = stroka + s2
	if i != n:
		stroka = stroka + s3
print(stroka + ' it')


feelings = int(input())
for n in range(1, feelings + 1):
	if n % 2 == 0:
		print('I love ', end='')
	else:
		print('I hate ', end='')
	if n != feelings:
		print('that ', end='')
	n += 1
print('it')


n = int(input())
h = 'hate '
l = 'love '
t = 'that I'
print('I hate ', end='')
a = 1
while a < n:
	print(t, l, end='') if a % 2 != 0 else print(t, h, end='')
	a += 1
print('it')


n = int(input())
prev = 0
out = ''
for i in range(n):
	if prev == 0:
		out += 'I hate'
		prev = 1
	else:
		out += 'I love'
		prev = 0
	if i != n - 1:
		out += ' that '
	else:
		out += ' it'
print(out)


while 1:
	try:
		n = int(input())
	except:
		break
	p = ''
	for i in range(n):
		if not i & 1:
			p += 'I hate'
		else:
			p += 'I love'
		if i != n - 1:
			p += ' that '
		else:
			p += ' it'
	print(p)


x = ['I hate ', 'I love ', 'that ', 'it', '']
n = int(input())
for i in range(n):
	if i % 2 == 0:
		x[4] += x[0]
	else:
		x[4] += x[1]
	if i == n - 1:
		x[4] += x[3]
	else:
		x[4] += x[2]
print(x[4])


def hulk(n):
	s = ''
	s1 = 'I hate that '
	s2 = 'I hate that I love that '
	s3 = 'it'
	x = n // 2
	if n % 2 == 0:
		s = s2 * x
	else:
		s = s2 * x + s1
	return s[:-5] + s3
n = int(input())
print(hulk(n))


n = int(input())
w = 'I hate it'
x = 'I love it'
y = 'I hate that '
z = 'I love that '
s = ''
if n % 2 != 0:
	for i in range(0, (n + 1) // 2):
		if i < n // 2:
			s += y + z
		else:
			s += w
	print(s)
else:
	if n == 2:
		print(y + x)
	else:
		for i in range(0, n // 2):
			if i < (n - 1) // 2:
				s += y + z
			else:
				s += y + x
	print(s)


str1 = 'I hate '
for m in range(1, int(input())):
	if m % 2:
		str1 += 'that I love '
	else:
		str1 += 'that I hate '
str1 += 'it'
print(str1)


n = int(input())
s = ''
j = False
for i in range(n - 1):
	if i % 2 == 0:
		s += 'I hate '
	else:
		s += 'I love '
	s += 'that '
	j = not j
if j:
	s += 'I love it'
else:
	s += 'I hate it'
print(s)


num = int(input())
a = 'I hate it'
b = 'I love it'
c = 'I hate that'
d = 'I love that'
for i in range(1, num + 1):
	if num == i:
		if i % 2 == 0:
			print(f'{b}', end='')
		else:
			print(f'{a}', end='')
	elif i % 2 != 0:
		print(f'{c}', end=' ')
	else:
		print(f'{d}', end=' ')


n = int(input())
a = ['I hate', 'I love']
s = ' '
for i in range(n):
	if i % 2 != 0:
		s = s + a[1] + ' ' + 'that' + ' '
	else:
		s = s + a[0] + ' ' + 'that' + ' '
k = s.split()
j = ['it']
k = k[:-1] + j
print(' '.join(k))


n = int(input())
s = 1
emotion = ''
while s <= n:
	if s % 2 != 0 and s != n:
		emotion = emotion + 'I hate that '
	elif s % 2 != 0 and s == n:
		emotion = emotion + 'I hate it '
	elif s % 2 == 0 and s != n:
		emotion = emotion + 'I love that '
	elif s % 2 == 0 and s == n:
		emotion = emotion + 'I love it'
	s += 1
print(emotion)


t = int(input())
str1 = 'I hate that'
str2 = 'I love that'
str3 = 'I love it'
str4 = 'I hate it'
str5 = ''
if t % 2 == 0:
	for i in range(t - 1):
		if i % 2 == 0:
			str5 += 'I hate that ' + ' '
		else:
			str5 += str2 + ' '
	print(str5 + ' ' + str3)
else:
	if t == 1:
		print(str4)
		exit(0)
	for i in range(t - 1):
		if i % 2 == 0:
			str5 += str1 + ' '
		else:
			str5 += str2 + ' '
	print(str5 + ' ' + str4)


x = int(input())
a = 'I hate that '
y = int(x / 2)
if x % 2 == 0:
	result = y * 'I hate that I love that '
	print(result[:-5] + 'it')
elif x % 2 != 0:
	result = y * 'I hate that I love that '
	result = result + a
	print(result[:-5] + 'it')


def main():
	n = int(input())
	ans = ''
	i = 1
	while i <= n:
		if i % 2:
			ans += 'I hate '
		else:
			ans += 'I love '
		if i != n:
			ans += 'that '
		i += 1
	ans += 'it'
	print(ans)
main()


n = int(input())
ganjil = 'I hate'
genap = 'I love'
end = ['that', 'it']
for i in range(n):
	ending = end[1]
	if i + 1 != n:
		ending = end[0]
	if (i + 1) % 2 != 0:
		print(ganjil + ' ' + ending, end=' ')
	elif (i + 1) % 2 == 0:
		print(genap + ' ' + ending, end=' ')


n = int(input())
x = ' I hate'
y = ' I love'
r = ''
for i in range(1, n + 1):
	if i % 2 == 1:
		r = r + x + ' that'
	else:
		r = r + y + ' that'
r = r[:len(r) - 4]
print(r + 'it')


n = int(input())

def hulk(n):
	result = 'I hate'
	if n == 1:
		return result + ' it'
	if n > 1:
		for i in range(n - 1):
			if i % 2 == 0:
				result = result + ' that I love'
			else:
				result = result + ' that I hate'
	return result + ' it'
print(hulk(n))


import sys
count = int(input())
isHate = True
isStart = True
output = ''
while count > 0:
	count -= 1
	if not isStart:
		output = output + 'that '
	else:
		isStart = False
	if isHate:
		isHate = False
		output = output + 'I hate '
	else:
		isHate = True
		output = output + 'I love '
output = output + 'it'
print(output)


from sys import stdin, stdout
from math import ceil, floor, sqrt
from collections import deque, Counter
inp = stdin.readline
out = stdout.write
n = int(inp().strip())
res = ''
for i in range(n - 1):
	if i % 2 == 0:
		res += 'I hate that '
	else:
		res += 'I love that '
if n % 2 == 0:
	res += 'I love it '
else:
	res += 'I hate it '
out(res)


n = int(input())
a = 'I hate'
b = 'I love'
c = 'that'
d = 'it'
while n > 0:
	print(a, end=' ')
	if n == 1:
		print(d, end=' ')
		exit()
	else:
		print(c, end=' ')
	n -= 1
	print(b, end=' ')
	if n == 1:
		print(d, end=' ')
	else:
		print(c, end=' ')
	n -= 1


n = int(input())
print('I ' + ' that I '.join(['love' if i % 2 else 'hate' for i in range(n)]) + ' it')


list = ['I hate', 'I love']
nlayers = int(input())
nums = list
out = [nums[i % len(nums)] for i in range(nlayers)]
print(' that '.join(out) + ' it')


def feeling(n):
	res = []
	for i in range(1, n + 1):
		res.append('I love it' if n == i and i % 2 == 0 else 'I love that' if i % 2 == 0 else 'I hate it' if n == i else 'I hate that')
	return ' '.join((str(i) for i in res))
n = int(input())
print(feeling(n))


n = int(input())
odd = 'I hate that'
even = 'I love that'
lastodd = 'I hate it'
lasteven = 'I love it'
op = ''
for i in range(1, n + 1):
	if i == n:
		if i % 2 == 0:
			op += lasteven
		else:
			op += lastodd
	elif i % 2 == 0:
		op += even + ' '
	else:
		op += odd + ' '
print(op)


n = int(input())
odd = 'that I hate it'
even = 'that I love it'
o_string = 'that I hate '
e_string = 'that I love '
string = 'I hate that I love '
if n == 1:
	string = 'I hate it'
elif n == 2:
	string = 'I hate that I love it'
else:
	for i in range(3, n):
		if i % 2 == 1:
			string = string + o_string
		else:
			string = string + e_string
	if n % 2 == 0:
		string = string + even
	else:
		string = string + odd
print(string)


num = input()
num = int(num)
num2 = num - 1
ls = []
while num2 >= 1:
	if num2 % 2 == 1:
		ls.insert(0, 'that I love')
	else:
		ls.insert(0, 'that I hate')
	num2 = num2 - 1
if num == 1:
	print('I hate it')
elif num == 2:
	print('I hate that I love it ')
else:
	print('I' + ' hate ' + ' '.join(map(str, ls)) + ' it')


from itertools import cycle
n = int(input())
x = 'I hate it'
x1 = 'I hate that'
x2 = 'I love it'
x3 = 'I love that'
km = cycle([x3, x1])
if n == 1:
	print(x)
elif n == 2:
	print(x1 + ' ' + x2)
else:
	m = '{}'.format(x1)
	for k in range(n - 2):
		tmp = next(km)
		m += ' ' + str(tmp) + ' '
	if n % 2 == 0:
		print(m + x2)
	else:
		print(m + x)


love = 'I love'
out = 'I hate'
hate = 'I hate'
n = int(input())
for i in range(1, n + 1, 1):
	if i == n:
		hate = ' '.join([hate, 'it'])
	elif i % 2 == 0:
		hate = ' '.join([hate, 'that', out])
	else:
		hate = ' '.join([hate, 'that', love])
print(hate)


n = int(input())
a = ['hate', 'love'] * n
l = a[1:n]
i = 'I hate'
that = ' that I '
for x in l:
	i += that + x
print(i, 'it')


n = int(input())
ans = ''
odd = 'I hate that '
even = 'I love that '
for i in range(1, n + 1):
	if i % 2 == 1:
		ans += odd
	else:
		ans += even
print(ans[:-5] + 'it')


N = int(input())
s = 'I hate'
r = 'I love'
c = 'that'
w = 'it'
g = s
for i in range(0, N - 1):
	if i % 2 == 0:
		g = g + ' ' + c + ' ' + r
	else:
		g = g + ' ' + c + ' ' + s
print(g + ' ' + w)


def main():
	n = int(input().strip())
	phrase = 'I hate'
	ans = ''
	for i in range(n):
		ans += phrase
		phrase = 'I love' if phrase == 'I hate' else 'I hate'
		if i == n - 1:
			ans += ' it'
			print(ans)
			return
		else:
			ans += ' that '
main()


n = int(input())
arr = []
arr2 = ['hate']
i = 1
if n == 1:
	arr2 = ['hate']
else:
	while i <= n:
		if n % 2 == 0:
			arr.append('hate')
			arr.append('love')
		else:
			arr2.append('love')
			arr2.append('hate')
		i = i + 2
if n % 2 == 0:
	final = arr
else:
	final = arr2[0:len(arr2) - 2]
if n == 1:
	final = ['hate']
new = ''
if n == 1:
	new = 'hate'
else:
	i = 0
	while i < len(final):
		new = new + final[i] + ' that I '
		i = i + 1
	new = new[0:len(new) - 7]
print('I ' + new + ' it')


n = int(input())
ans = ''
p = True
while n > 0:
	if p:
		ans += 'I hate '
		p = False
		n -= 1
	else:
		ans += 'I love '
		p = True
		n -= 1
	if n > 0:
		ans += 'that '
ans += 'it'
print(ans)


n = int(input())
s = ''
for i in range(n):
	if i % 2 == 0:
		s = s + 'I hate that '
	else:
		s = s + 'I love that '
l = len(s)
S = s[:l - 5] + 'it'
print(S)


string1 = ''
times = int(input())
for x in range(1, times + 1):
	if times == 1:
		string1 += 'I hate it'
	elif x == 1:
		string1 += 'I hate'
	elif x % 2 != 0:
		string1 += ' that I hate'
		if x == times:
			string1 += ' it'
	elif x % 2 == 0:
		string1 += ' that I love'
		if x == times:
			string1 += ' it'
print(string1)


import sys
import io
import os

def run(test, res):
	x = io.StringIO()
	with io.StringIO(test) as sys.stdin:
		with x as sys.stdout:
			work()
			z = x.getvalue().strip()
	sys.stdout = sys.__stdout__
	print('Passed?', z == test)
	print('Expected: ', res)
	print('Actual  : ', z)

def work():
	n = int(input())
	z = ['I hate' if i % 2 == 0 else 'I love' for i in range(0, n)]
	print(' that '.join(z) + ' it')

def test():
	run('1', 'I hate it')
	run('2', 'I hate that I love it')
	run('3', 'I hate that I love that I hate it')
	run('4', 'I hate that I love that I hate that I love it')
if 'LOCALTEST' in os.environ:
	test()
else:
	work()


hate = ['I', 'hate', 'it']
love = ['I', 'love', 'it']
n = int(input())
res = ''
f = 0
for i in range(1, n + 1):
	if f == 0:
		if i == 1:
			if i == n:
				res += ' '.join(hate[:2])
			else:
				res += ' '.join(hate[:2]) + ' that'
		elif i == n:
			res += ' '.join(hate[:2])
		else:
			res += ' '.join(hate[:2]) + ' that'
		f = 1
	else:
		if i == 2 or i == n:
			if i == n:
				res += ' ' + ' '.join(love[:2])
			else:
				res += ' ' + ' '.join(love[:2]) + ' that '
		else:
			res += ' ' + ' '.join(love[:2]) + ' that '
		f = 0
res += ' it'
print(res)


ans = ''
prev = False
n = int(input())
while n > 0:
	if prev:
		if n == 1:
			ans += 'I love it'
		else:
			ans += 'I love that '
	elif n == 1:
		ans += 'I hate it'
	else:
		ans += 'I hate that '
	n -= 1
	prev = not prev
print(ans)


imp = []
n = int(input())
for i in range(0, n):
	if i % 2 == 0 and i != n - 1:
		imp.append('I hate that')
	elif i % 2 == 1 and i != n - 1:
		imp.append('I love that')
	if i % 2 == 0 and i == n - 1:
		imp.append('I hate')
	elif i % 2 == 1 and i == n - 1:
		imp.append('I love')
imp.append('it')
for i in range(0, len(imp)):
	print(imp[i], end=' ')


def recursive_hulk(i, m):
	if i == 1:
		m = 'I hate ' + m
		return m + 'it'
	elif i % 2 == 0:
		m = 'that I love ' + m
	else:
		m = 'that I hate ' + m
	return recursive_hulk(i - 1, m)
i = int(input())
print(recursive_hulk(i, ''))


n = int(input())
l = [['I hate', 'I love'][i % 2 != 0] for i in range(n)]
print(' that '.join(l) + ' it')


(a, b) = ['I hate', 'I love']
num = int(input())
s = ''
n = 1
while n <= num:
	if n % 2:
		s += a
	elif n % 2 == 0:
		s += b
	if n == num:
		s += ' it'
	elif n < num:
		s += ' that '
	n += 1
print(s)


a = int(input())
s = ''
b = 'I hate it'
k2 = 'I love it'
if a == 1:
	print(b)
elif a == 2:
	print('I hate that ' + k2)
else:
	for i in range(1, a):
		if i % 2 != 0:
			s = s + b
			s = s.replace('it', 'that ', 1)
		if i % 2 == 0:
			s = s + k2
			s = s.replace('it', 'that ', 1)
if a > 2:
	if a % 2 != 0:
		s = s + '' + b
	else:
		s = s + '' + k2
print(s)


inp = input()
lrep = ['I hate ', 'I love ']
text = ''
c = 0
for i in range(int(inp)):
	if c < 2:
		text = text + lrep[c] + 'that '
		c += 1
	else:
		c = 0
		text = text + lrep[c] + 'that '
		c += 1
print(text[0:len(text) - 5] + 'it')


hate = 'I hate'
love = 'I love'
end = 'it'
between = 'that'

def getMsg(i):
	if i % 2 == 0:
		return hate
	else:
		return love
n = int(input())
msg = ''
for i in range(n):
	if i == n - 1:
		msg += getMsg(i) + ' ' + end
	else:
		msg += getMsg(i) + ' ' + between + ' '
print(msg)


n = int(input())
ex1 = 'I hate that'
ex2 = 'I love that'
li = []
for i in range(1, n + 1):
	if i % 2 != 0:
		li.append(ex1)
	else:
		li.append(ex2)
l = len(li)
if l % 2 == 0:
	li[l - 1] = 'I love it'
else:
	li[l - 1] = 'I hate it'
print(' '.join((str(i) for i in li)))


n = int(input())
strs = ''
for i in range(n):
	if i & 1 == 0:
		if i + 1 != n:
			k = 'that '
		else:
			k = 'it '
		strs += 'I hate '
		strs += k
	else:
		if i + 1 != n:
			k = 'that '
		else:
			k = 'it '
		strs += 'I love '
		strs += k
print(strs[:-1])


n = int(input())
output = ''
for i in range(0, n):
	if i != n - 1:
		if i == 0 or i % 2 == 0:
			output = output + 'I hate that '
		else:
			output = output + 'I love that '
	elif n % 2 == 0:
		output = output + 'I love it'
	else:
		output = output + 'I hate it'
print(output)


n = int(input())
L = ['I hate ', 'I love ']
string = ''
kontrola = 0
a = 0
for i in range(n):
	if kontrola == 1:
		a = 0
		kontrola = 0
	string += L[a]
	if n > 1 and i != n - 1:
		string += 'that '
	if a == 1:
		kontrola = 1
	a += 1
string += 'it'
print(string)


num = int(input())
string = 'I hate '
start = 1
while start != num:
	if start & 1:
		string += 'that I love '
	else:
		string += 'that I hate '
	start += 1
string += 'it'
print(string)


ans = []
feeling = 'love'
n = int(input().strip())
for i in range(1, n + 1):
	if feeling == 'hate':
		feeling = 'love'
		if i != n:
			ans.append(f'I {feeling} that')
		else:
			ans.append(f'I {feeling} it')
	elif feeling == 'love':
		feeling = 'hate'
		if i != n:
			ans.append(f'I {feeling} that')
		else:
			ans.append(f'I {feeling} it')
print(' '.join(ans))


n = int(input())
p = 'I love'
q = 'I hate'
i = 1
r = ''
while i <= n:
	if i % 2 == 1:
		r = r + q
	else:
		r = r + p
	if i < n:
		r = r + ' that '
	i = i + 1
r = r + ' it'
print(r)


a = int(input())
x = 'I hate '
y = 'I love '
string = x
for i in range(1, a):
	if i % 2 == 0:
		string = string + 'that ' + x
	else:
		string = string + 'that ' + y
print(string + 'it')


n = int(input())
(state, res) = ('hate', '')
for _ in range(n - 1):
	res += 'I ' + state + ' that '
	state = 'love' if state == 'hate' else 'hate'
res += 'I ' + state + ' it'
print(res)


n = int(input())
c = n
arr = ['I hate that', 'I love that']
for i in range(1, n):
	if i % 2 == 0:
		print(arr[1], end=' ')
	else:
		print(arr[0], end=' ')
if c % 2 == 0:
	print('I love it', end=' ')
else:
	print('I hate it', end=' ')


a = int(input())
b = 'I hate'
c = ' I love'
d = ' that'
e = ' it'
i = 0
z = ' I hate'
j = 0
y = 0
x = 0
while a > i:
	y = i + 1
	if a == y:
		x = b + e
		break
	else:
		b = b + d
		b = b + c
		j = c
		c = z
		z = j
		i += 1
print(x)


a = int(input())
if a % 2 == 1:
	s = 'I hate it'
	s = 'I hate that I love that ' * (a // 2) + s
	print(s)
else:
	s = 'I love it'
	k = 'I hate that'
	if a == 2:
		print('I hate that I love it')
	else:
		print('I hate that I love that ' * (a // 2 - 1) + 'I hate that I love it')


def get_emotion(layers):
	if layers == 1:
		return 'I hate'
	elif layers % 2 == 0:
		return get_emotion(layers - 1) + ' that I love'
	else:
		return get_emotion(layers - 1) + ' that I hate'
layers = int(input())
print(get_emotion(layers) + ' it')


def even(n):
	return 1 if n % 2 == 0 else 0
a = int(input())
hate = 'I hate '
love = 'I love '
sentn = ''
for i in range(1, a + 1):
	if even(i):
		sentn += love
	else:
		sentn += hate
	if i < a:
		sentn += 'that '
	else:
		sentn += 'it'
print(sentn)


s = ''
h = 1

def rec(n):
	global s
	global h
	if n == 1 and h == 1:
		s += 'I hate it'
		return 1
	elif n == 1 and h == 0:
		s += 'I love it'
		return 1
	elif h == 1:
		s += 'I hate that '
		h = 0
		rec(n - 1)
	elif h == 0:
		s += 'I love that '
		h = 1
		rec(n - 1)
rec(int(input()))
print(s)


numberOfLayer = int(input())
love = 'I love'
hate = 'I hate'
layer = 1
print(hate, end=' ')
while layer < numberOfLayer:
	print('that', end=' ')
	if (layer + 1) % 2 == 0:
		print(love, end=' ')
	else:
		print(hate, end=' ')
	layer += 1
print('it')


import math
n = int(input())
a1 = 'I hate'
a2 = 'I love'
c1 = 'it'
c2 = 'that'
res = ''
i = 1
while n > 0:
	if i == 1:
		res = res + a1
	else:
		res = res + ' ' + a1
	n = n - 1
	if n == 0:
		res = res + ' ' + c1
		break
	else:
		res = res + ' ' + c2
	res = res + ' ' + a2
	n = n - 1
	if n == 0:
		res = res + ' ' + c1
		break
	else:
		res = res + ' ' + c2
	i = i + 1
print(res)


a = 'I hate'
b = 'that'
c = 'I love'
d = 'it'
n = int(input())
i = 2
res = []
res.append(a)
if n == 1:
	res.append(d)
	print(' '.join(res))
else:
	while True:
		if i != n:
			if int(i % 2) == 0:
				res.append(b)
				res.append(c)
				i += 1
			else:
				res.append(b)
				res.append(a)
				i += 1
		elif int(i % 2) == 0:
			res.append(b)
			res.append(c)
			res.append(d)
			break
		else:
			res.append(b)
			res.append(a)
			res.append(d)
			break
	print(' '.join(res))


def get_ints():
	return list(map(int, input().split()))

def get_input():
	return input()

def main():
	n = int(get_input())
	res = ''
	that = ('I hate that ', 'I love that ')
	for i in range(n - 1):
		res += that[i % 2]
	it = ('I love it', 'I hate it')
	res += it[n % 2]
	print(res)
	return res
main()


n = int(input())
x = []
p = 0
while 1:
	x.append('I hate')
	p += 1
	if p == n:
		break
	x.append(' that I love')
	p += 1
	if p == n:
		break
	x.append(' that ')
x.append(' it')
x = ''.join(x)
print(x)


felling1 = 'that I hate '
felling2 = 'that I love '
n = int(input())
answer = ''
if n == 1:
	answer += 'I hate '
else:
	i = 1
	while i < n + 1:
		if i == 1:
			answer += 'I hate '
		elif i % 2 != 0:
			answer += felling1
		else:
			answer += felling2
		i += 1
answer += 'it'
print(answer)


n = int(input())
res = str()
for x in range(n):
	if x:
		res = f'{res} that '
	if x % 2:
		res = f'{res}I love'
	else:
		res = f'{res}I hate'
res = f'{res} it'.strip()
print(res)


m = []
h = 'I hate'
l = 'I love'
for i in range(int(input())):
	m.append([h, l][i % 2])
out = ' that '.join(m)
print(out + ' it')


import sys
n = int(sys.stdin.readline())

def hulk(n):
	msg = ''
	for i in range(n):
		if i == 0:
			msg += 'hate '
		elif i % 2 != 0:
			msg += 'that I love '
		else:
			msg += 'that I hate '
	output = 'I ' + msg + 'it'
	print(output)
hulk(n)


def hate(x):
	i = 1
	ans = ''
	while i <= x:
		ans += 'I '
		if i % 2 != 0:
			ans += 'hate '
		else:
			ans += 'love '
		if i < x:
			ans += 'that '
		i += 1
	return ans + 'it'
n = int(input())
print(hate(n))


def hulkweird(n):
	words = ['I hate that ', 'I love that ']
	strx = ''
	for i in range(n):
		strx = strx + words[i % 2]
	return strx[:-5] + 'it'
n = int(input().strip())
print(hulkweird(n))


n = int(input())
txt = ['I hate that ', 'I love that ']
txt_end = ['I hate it', 'I love it']
for i in range(n):
	if i != n - 1:
		print(txt[i % 2], end='')
	else:
		print(txt_end[i % 2])


def solve(n):
	if n == 1:
		f = 'I hate it'
	else:
		fs = 'I hate'
		sl = ' that I love '
		sh = ' that I hate '
		cnt = 0
		while cnt < n - 1:
			if cnt % 2 == 0:
				fs += sl
			else:
				fs += sh
			cnt += 1
		f = fs + 'it'
	print(f)
i = int(input())
solve(i)


n = int(input())
encountered = False
sentence = []
for i in range(n):
	if not encountered:
		sentence.append('I hate')
		encountered = True
	else:
		sentence.append('I love')
		encountered = False
print(' that '.join(sentence), end=' it')


n = int(input())
q = ''
p1 = 'I hate that'
p2 = 'I love that'
for i in range(n):
	if i == n - 1:
		if i % 2 == 0:
			q += 'I hate it'
		else:
			q += 'I love it'
	elif i % 2 == 0:
		q += p1 + ' '
	else:
		q += p2 + ' '
print(q)


n = int(input())
if n == 1:
	print('I hate it')
elif n < 4:
	s = 'I hate that I love that' * (n // 2) + ' I hate that' * (n % 2)
	print(s[:-4] + 'it')
else:
	s = 'I hate that I love that ' * (n // 2) + ' I hate that' * (n % 2)
	if n % 2 != 0:
		print(s[:-5] + ' it')
	else:
		print(s[:-5] + 'it')


n = int(input())
if n == 1:
	print('I hate it')
else:
	temp = n

	def recur(n):
		if n % 2 == 0:
			start = 'love'
		else:
			start = 'hate'
		if n == temp:
			return recur(n - 1) + 'I ' + start + ' it '
		if n > 1:
			return recur(n - 1) + 'I ' + start + ' that '
		elif n == 1:
			return 'I hate that '
	print(recur(n))


Todd = ' I hate that '
Teven = ' I love that '
res = ''
for i in range(int(input())):
	if i % 2 == 1:
		res += Teven
	else:
		res += Todd
print(res[:-5] + ' it')


def main():
	N = int(input())
	string = ''
	state = 1
	while N > 1:
		string += 'I hate that '
		N -= 1
		state = 0
		if N > 1:
			string += 'I love that '
			N -= 1
			state = 1
	if state == 0:
		string += 'I love it'
	else:
		string += 'I hate it'
	print(string)
main()


a = input()
c = ['I hate', 'I love', ' that ', ' it ']
s = ''
for i in range(int(a) - 1):
	if (i + 1) % 2 != 0:
		s += c[0] + c[2]
	else:
		s += c[1] + c[2]
if int(a) % 2 == 0:
	s += c[1] + c[3]
else:
	s += c[0] + c[3]
print(s)


n = int(input())
ans = ''
index = 0
for j in range(1, n + 1):
	i = index - j
	if i % 2 == 1:
		ans += 'I hate {exp} '.format(exp='it' if j == n else 'that')
	else:
		ans += 'I love {exp} '.format(exp='it' if j == n else 'that')
print(ans)


n = int(input())
res = []
for i in range(n):
	if i % 2 == 0:
		res += ['I', 'hate', 'that']
	else:
		res += ['I', 'love', 'that']
res.pop()
res.append('it')
print(' '.join(res))


n = int(input())
ans = []
a = ' I hate that'
b = ' I love that'
if n == 1:
	print('I hate it')
else:
	for i in range(1, n + 1):
		if i % 2 == 0:
			ans.append(b)
		else:
			ans.append(a)
	s = ''.join(ans)
	print(s[1:-4] + 'it')


n = int(input())
arr = ['\n', ' that ']
kata1 = 'I hate'
kata2 = 'I love'
if n == 1:
	print(kata1 + ' it')
elif n == 2:
	print(kata1 + arr[1] + kata2 + ' it')
else:
	hasil = ''
	for i in range(1, n + 1):
		if i == n:
			if i % 2 != 0:
				hasil += kata1
			elif i % 2 == 0:
				hasil += kata2
			hasil += ' it'
		else:
			if i % 2 != 0:
				hasil += kata1
			elif i % 2 == 0:
				hasil += kata2
			hasil += arr[1]
	print(hasil)


n = int(input())
odd = 'I hate '
even = 'I love '
turn = True
ans = ''
while n > 0:
	if turn:
		ans += odd
	else:
		ans += even
	turn = not turn
	if n == 1:
		ans += 'it'
	else:
		ans += 'that '
	n = n - 1
print(ans)


a = int(input())
l = 'I love'
h = ' that I hate'
if a == 1:
	print('I hate it')
if a == 2:
	print('I hate that I love it')
if a % 2 != 0 and a != 1:
	k = ['I hate that I love that '] * (a // 2)
	(print(*k, sep='', end=''), print('I hate it'))
if a % 2 == 0 and a != 2:
	f = ['I hate that I love that '] * (a // 2 - 1)
	(print(*f, sep='', end=''), print('I hate that I love it'))


feel = ['I hate ', 'I love ']

def hulk(level, feelstr, parity):
	if level == 1:
		return feelstr + feel[parity] + 'it'
	else:
		return hulk(level - 1, feelstr + feel[parity] + 'that ', 0 if parity else 1)
level = int(input())
print(hulk(level, '', 0))


x = int(input())
imp = 'it '
par = 'that '
fraseimpar = 'I hate '
frasepar = 'I love '
s = ''
for i in range(1, x + 1):
	if i % 2 == 0:
		s += frasepar
	else:
		s += fraseimpar
	if i == x:
		s += imp
	else:
		s += par
print(s)


n = int(input())
f = 'I hate'
if n == 1:
	print('I hate it')
else:
	for m in range(2, n + 1):
		x = ' that '
		y = ' it'
		z = 'I hate'
		v = 'I love'
		if m % 2 == 0:
			f = f + x + v
		if m % 2 == 1:
			f = f + x + z
	print(f + y)


def input_layer():
	while True:
		layers = int(input())
		if 1 <= layers <= 100:
			break
		else:
			continue
	return layers

def create_layers(layer):
	layer_list = []
	if layer == 1:
		layer_list.append('hate')
	else:
		for i in range(1, layer + 1):
			if i % 2 == 1:
				layer_list.append('hate')
			else:
				layer_list.append('love')
	return layer_list

def print_result(layer_list):
	layer_str = ' that I '.join(layer_list)
	print('I', layer_str, 'it')
layer = input_layer()
layer_list = create_layers(layer)
print_result(layer_list)


n = int(input())
out = ''
while n >= 2:
	out += 'I hate that I love that '
	n -= 2
if n:
	out += 'I hate it'
else:
	out = out[:-6]
	out += ' it'
print(out)


n = int(input())
a = 'I hate'
b = 'I love'
c = 'that'
d = 'it'
ans = ''
k = 1
while k <= n:
	if k % 2 == 1:
		ans += a
	else:
		ans += b
	if k == n:
		ans += ' ' + d
	else:
		ans += ' ' + c + ' '
	k += 1
print(ans)


n = int(input())
hate = 'I hate '
love = 'I love '
m = n // 2
i = n % 2
ls = []
for k in range(m):
	ls.append(hate)
	ls.append(love)
if i == 1:
	ls.append(hate)
expression = 'that '.join(ls) + 'it'
print(expression)


l = ['I hate', 'I love'] * 50
print(' that '.join(l[:int(input())]) + ' it')


def func(n):
	s = ''
	for i in range(n):
		if i != n - 1:
			if i % 2 == 0:
				s = s + 'I hate that '
			else:
				s = s + 'I love that '
		elif i % 2 == 0:
			s = s + 'I hate it'
		else:
			s = s + 'I love it'
	print(s)
n = int(input())
func(n)


n = int(input())
hate = 'I hate '
love = 'I love '
middle = 'that '
end = 'it '
text = ''
while n > 0:
	text = text + hate
	n -= 1
	if n == 0:
		break
	text = text + middle
	text = text + love
	n = n - 1
	if n == 0:
		break
	text = text + middle
text = text + end
print(text)


MOD = 1000000007
ii = lambda : int(input())
si = lambda : input()
dgl = lambda : list(map(int, input()))
f = lambda : map(int, input().split())
il = lambda : list(map(int, input().split()))
ls = lambda : list(input())
from collections import *
a = []
b = []
n = ii()
for i in range(1, n + 1):
	if i % 2 != 0:
		a.append('I hate')
	else:
		a.append('I love')
b.append(' that '.join(a))
b.append('it')
print(' '.join(b))


n = int(input())
output = ''
if n % 2 == 0:
	f = 'I love it'
	g = 'I hate that '
	w = 'I love that '
else:
	f = 'I hate it'
	g = 'I love that '
	w = 'I hate that '
counter = n
for i in range(n - 1):
	counter -= 1
	if counter % 2 == 0:
		output += w
	else:
		output += g
print(output + f)


n = int(input())
a = 'I hate it '
b = 'I love it '
c = 'I hate that '
d = 'I love that '
ans = ''
if n & 1 == 1:
	ans = a
	for i in range(1, n):
		if i & 1 == 1:
			ans = d + ans
		else:
			ans = c + ans
else:
	ans = b
	for j in range(1, n):
		if j & 1 == 1:
			ans = c + ans
		else:
			ans = d + ans
print(ans)


num = int(input())
first = ' I hate '
second = 'I love '
res = ''
for i in range(num):
	if i % 2 == 0:
		res += first
	else:
		res += second
	if i != num - 1:
		res += 'that '
res += 'it'
print(res)


n = int(input())
tmp = n
while n != 0:
	if n == tmp:
		print('I hate', end=' ')
	else:
		print('that I hate', end=' ')
	n -= 1
	if n == 0:
		break
	else:
		print('that I love', end=' ')
		n -= 1
		if n == 0:
			break
print('it')


n = int(input(''))
lst = []
for i in range(1, n + 1):
	if i % 2 == 1 and i != n:
		lst.append('hate that I')
	if i % 2 == 1 and i == n:
		lst.append('hate')
	if i % 2 == 0 and i != n:
		lst.append('love that I')
	if i % 2 == 0 and i == n:
		lst.append('love')
print(str('I ') + ' '.join(map(str, lst)) + str(' it'))


n = int(input())
q = ['']
for i in range(1, n + 1):
	if i % 2 == 1:
		q.pop()
		q += ['that']
		q += ['I']
		q += ['hate']
		q += ['it']
	else:
		q.pop()
		q += ['that']
		q += ['I']
		q += ['love']
		q += ['it']
q = q[1:]
for i in q:
	print(i, end=' ')


n = int(input())
h = 'I hate that '
l = 'I love that '
fh = 'I hate it'
fl = 'I love it'
for i in range(n):
	if (i == n - 1) & (n % 2 == 0):
		print(fl, end='')
	elif i == n - 1:
		print(fh, end='')
	elif i % 2 == 0:
		print(h, end='')
	else:
		print(l, end='')


n = int(input())
a = 'I hate that'
b = 'I love that'
c = []
for x in range(n):
	if x % 2 == 0:
		c.append(a)
	else:
		c.append(b)
c[-1] = c[-1][:-4] + 'it'
print(*c)


n = int(input())
lst = ['I hate that', 'I love that']
st = ''
for i in range(n - 1):
	st += lst[i % 2] + ' '
if n % 2 == 1:
	st += 'I hate it'
else:
	st += 'I love it'
print(st)


b = iter(['that I love', 'that I hate'] * 50)
n = int(input())
print('I hate', end=' ')
for i in range(1, n):
	print(next(b), end=' ')
print('it')


n = int(input())

def feel(n, k):
	say = 'hate' if k % 2 == 0 else 'love'
	if k == n:
		return 'it'
	elif k == n - 1:
		return 'I {} '.format(say) + feel(n, k + 1)
	else:
		return 'I {} that '.format(say) + feel(n, k + 1)
print(feel(n, 0))


try:
	n = int(input())
	l = ['I hate that', 'I love that']
	i = 0
	if n == 1:
		print('I hate it')
	else:
		while i < n - 1:
			if i % 2 == 0:
				print(l[0], end=' ')
			else:
				print(l[1], end=' ')
			i += 1
		if i % 2 == 0:
			print('I hate it', end=' ')
		else:
			print('I love it', end=' ')
except:
	pass


import sys
a = 'that I hate'
b = 'that I love'
n = int(sys.stdin.readline())
d = [0] * (n + 1)
d[0] = 'I hate'
for i in range(1, n + 1):
	if i % 2 == 0:
		d[i] = a
		i += 1
	else:
		d[i] = b
		i += i
d[n] = 'it'
print(' '.join(d))


a = int(input())
s = ''
for i in range(a):
	if i != 0:
		s += ' that '
	if not i % 2:
		s += 'I hate'
	else:
		s += 'I love'
s += ' it'
print(s)


n = int(input())
hulk = ''
k = 1
while n >= k:
	if k % 2 == 1:
		hulk += 'I hate that '
	else:
		hulk += 'I love that '
	k += 1
hulk = hulk.rstrip('that ')
hulk += ' it'
print(hulk)


layers = list(map(int, input().strip().split()))[0]
str = ''
for i in range(layers):
	if i >= 1 and i <= layers:
		str += 'that '
	if i % 2 == 1:
		str += 'I love '
	if i % 2 == 0:
		str += 'I hate '
str += 'it'
print(str)


def function():
	tmp = input().split(' ')
	n = int(tmp[0])
	str = 'I hate '
	hate_flag = False
	for i in range(n - 1):
		if hate_flag:
			str += 'that I hate '
			hate_flag = False
		else:
			str += 'that I love '
			hate_flag = True
	str += 'it'
	print(str)
function()


n = int(input())
str = 'I '
feelings = ('hate', 'love')
for x in range(n):
	str += feelings[x % 2]
	if x < n - 1:
		str += ' that I '
str += ' it'
print(str)


apn = int(input())
z = []
for i in range(apn):
	if i + 1 != apn:
		if i % 2 == 0:
			z.append('I hate that')
		else:
			z.append('I love that')
	elif i % 2 == 0:
		z.append('I hate it')
	else:
		z.append('I love it')
print(*z)


import sys
input = lambda : sys.stdin.readline().rstrip()
n = int(input())
a = ['I hate that ', 'I love that ']
b = ['I hate it', 'I love it']
k = 1
s = ''
for i in range(n - 1):
	k ^= 1
	s += a[k]
k ^= 1
s += b[k]
print(s)


n = int(input())
a = 0
listy = []
for i in range(n):
	if a % 2 == 0:
		listy.append('I hate ')
	else:
		listy.append('I love ')
	a += 1
listy = list('that '.join(listy))
listy.append('it')
print(''.join(listy))


n = int(input())
dct = {0: 'I hate that', 1: 'I love that'}
dct1 = {0: 'I hate it', 1: 'I love it'}
n = max(0, n - 1)
for i in range(n):
	print(dct[i % 2], end=' ')
print(dct1[n % 2])


i = int(input(''))
p1 = ' I love it'
p = ' I hate it'
s = ''
for m in range(i):
	if m % 2 == 0:
		s = s + p
	else:
		s = s + p1
print(s.replace('it', 'that', s.count('it') - 1))


def strconcat(n):
	two = 'I hate that I love that '
	if n == 0:
		return 'I hate that '
	elif n == 1:
		return two
	for i in range(n):
		if i == 0:
			continue
		two = two * 2
	return two
strbin = str(bin(int(input())).replace('0b', ''))
size = len(strbin)
revstrbin = strbin[size::-1]
lastPos = size - 1 - revstrbin.index('1')
s = ''
j = 0
for i in range(size - 1, -1, -1):
	if strbin[j] == '1':
		if j == lastPos:
			s += strconcat(i)
			break
		else:
			s += strconcat(i)
	j += 1
s = s[0:-5]
s += 'it'
print(s)


n = int(input())
sh = 'I hate that '
sl = 'I love that '
h = 'I hate it'
l = 'I love it'
ans = ''
for i in range(n - 1):
	ans += sh if i % 2 == 0 else sl
if n % 2 == 1:
	print(ans + h)
else:
	print(ans + l)


res = []
num = int(input())
for x in range(0, num):
	if x % 2 == 0:
		res.append('I hate ')
	else:
		res.append('I love ')
print('that '.join(res) + 'it')


n = int(input())
res = ''
if n == 1:
	res = res + 'I hate it'
if n > 1:
	if n % 2 != 0:
		for i in range(1, n + 1):
			if i == n:
				res = res + ' ' + 'I hate it'
				break
			if i % 2 != 0:
				res = res + ' ' + 'I hate that'
			if i % 2 == 0:
				res = res + ' ' + 'I love that'
	if n % 2 == 0:
		for i in range(1, n + 1):
			if i == n:
				res = res + ' ' + 'I love it'
				break
			if i % 2 != 0:
				res = res + ' ' + 'I hate that'
			if i % 2 == 0:
				res = res + ' ' + 'I love that'
print(res)


from sys import stdout
num = int(input())
halfNum = int(num / 2)
isOdd = num % 2 == 1
x = 'I hate that I love '
y = 'I hate that I love that '
stdout.write('I hate it' if num == 1 else y * (halfNum - 1) + x + ('that I hate it' if isOdd else 'it'))


k = int(input())
for i in range(1, k + 1):
	if i == k and i % 2 == 0:
		print('I love it', end=' ')
		break
	elif i == k and i % 2 == 1:
		print('I hate it', end=' ')
		break
	if i % 2 == 0:
		print('I love that', end=' ')
	if i % 2 == 1:
		print('I hate that', end=' ')


n = int(input())
c1 = 'I hate that '
c2 = 'I love that '
cf1 = 'I love it'
cf2 = 'I hate it'
if n % 2 == 0:
	for i in range(n // 2 - 1):
		print(c1 + c2, end='')
	print(c1 + cf1)
else:
	for i in range(n // 2):
		print(c1 + c2, end='')
	print(cf2)


n = int(input())
stringOdd = 'I hate '
stringEven = 'I love '
answer = []
for i in range(0, n):
	if i % 2 == 0:
		answer.append(stringOdd)
	else:
		answer.append(stringEven)
	if i == n - 1:
		answer.append('it')
	else:
		answer.append('that ')
print(''.join((str(e) for e in answer)))


n = int(input())
i = 1
flag = 0
s = ''
while i < n + 1:
	if i % 2 == 0:
		s += 'I love '
		flag = 1
	elif i % 2 != 0:
		s += 'I hate '
		flag = 1
	else:
		pass
	if i < n:
		s += 'that '
		flag = 0
	i += 1
s += 'it'
print(s)


lay = int(input())
msg = ''
for i in range(lay):
	if i == lay - 1:
		if (i + 1) % 2 == 1:
			msg += 'I hate it'
		else:
			msg += 'I love it'
	elif (i + 1) % 2 == 1:
		msg += 'I hate that '
	else:
		msg += 'I love that '
print(msg)


n = int(input())
a = 1
msg = ''
while a != n:
	if a % 2 == 0:
		msg += 'I love that '
	else:
		msg += 'I hate that '
	a += 1
if n % 2 == 0:
	msg += 'I love it'
else:
	msg += 'I hate it'
print(msg)


n = int(input())
(c, f, s) = (0, 0, '')
while c != n:
	if f == 1:
		s = s + 'that '
	if c % 2 == 0:
		s = s + 'I hate '
	else:
		s = s + 'I love '
	c += 1
	f = 1
print(s + 'it')


a = int(input())
print(''.join(('I hate that +I love that +' * ((a + 1) // 2)).split('+')[:a])[:-5] + 'it')


dict = {1: 'I hate that ', 2: 'I love that ', 3: 'I hate it ', 4: 'I love it '}
n = int(input())
count = 1
while n != 0:
	if count == 3:
		count = 1
	if n == 1:
		print(dict[count + 2])
	else:
		print(dict[count], end='')
	n -= 1
	count += 1


n = int(input())
s = ''
flag = False
for i in range(n):
	if i == n - 1:
		if n % 2 == 0:
			s = s + 'I love it'
		else:
			s = s + 'I hate it'
	elif not flag:
		s = s + 'I hate that '
		flag = True
	else:
		s = s + 'I love that '
		flag = False
print(s)


lst = ['I hate', 'I love']
n = int(input())
lst2 = []
for i in range(1, n + 1):
	if i % 2 != 0:
		lst2.append(lst[0])
	else:
		lst2.append(lst[1])
str1 = ' that '.join(lst2)
str2 = str1 + ' it'
print(str2)


x = int(input())

def ans(x):
	if x == 1:
		return 'I hate it'
	if x == 2:
		return 'I hate that I love it'
	if x % 2 == 1:
		return 'I hate that I love that ' * (x // 2) + 'I hate it'
	if x % 2 == 0:
		return 'I hate that I love that ' * (x // 2 - 1) + 'I hate that I love it'
print(ans(x))


n = int(input())
msg = ['I hate', 'I love']
res = [msg[i % 2] for i in range(0, n)]
print(*res, sep=' that ', end=' it')


L = input()
n = int(L)
a = 'I hate'
b = ' that I love'
c = ' that I hate'
f = 0
i = 1
while i < n:
	if f == 0:
		a += b
	if f == 1:
		a += c
	f = 1 - f
	i += 1
print(a + ' it')


n = int(input())
a = 'I hate it'
b = 'I hate that I love it'
c = 'I hate that I love that I hate it'
e = 'I hate that I love that'
f = 'I hate that I love that I hate that'
d = n // 2
w = 'I hate that'
q = 'I love it'
if n == 1:
	print(a)
elif n == 2:
	print(b)
elif n == 3:
	print(c)
elif n == 4:
	print(e + ' ' + b)
elif int(n) > 3:
	if int(n) // 2 == int(n) / 2:
		print((e + ' ') * (d - 1) + ' ' + w + ' ' + q)
	elif int(n) // 2 != int(n) / 2:
		print((e + ' ') * (d - 1) + c)


level = int(input())
base_feeling = 'I hate'
feelings = [' that I love', ' that I hate']
counter = 1
if level == 1:
	print(base_feeling + ' it ')
else:
	hulk_says = base_feeling
	while counter < level:
		hulk_says = hulk_says + feelings[counter % 2 - 1]
		counter += 1
	print(hulk_says + ' it')


def main():
	layers = int(input())
	output = 'I'
	for i in range(layers):
		if i % 2 == 0:
			output += ' hate '
		elif i % 2 == 1:
			output += ' love '
		if i != layers - 1:
			output += 'that I'
	output += 'it'
	print(output)
main()


n = int(input())
a = 'I hate '
b = 'I love '
while n:
	n = n - 1
	if n != 0:
		print(a + 'that ', end='')
	else:
		print(a + 'it')
		break
	n = n - 1
	if n != 0:
		print(b + 'that ', end='')
	else:
		print(b + 'it')
		break


n = int(input())
m = []
for i in range(n - 1):
	if i % 2:
		m.append('I love that')
	else:
		m.append('I hate that')
if len(m) % 2:
	m.append('I love it')
else:
	m.append('I hate it')
print(*m)


a = int(input())
hate1 = 'I hate that '
hate2 = 'I hate it '
love1 = 'I love that '
love2 = 'I love it '
s = ''
for i in range(1, a + 1):
	if i == a and i % 2 == 0:
		s = s + love2
	elif i == a and i % 2 != 0:
		s = s + hate2
	elif i < a and i % 2 == 0:
		s = s + love1
	elif i < a and i % 2 != 0:
		s = s + hate1
print(s)


n = eval(input())
for i in range(1, n + 1):
	if i % 2 != 0:
		print('I hate', end=' ')
	if i % 2 == 0:
		print('I love', end=' ')
	if i != n:
		print('that', end=' ')
	if i == n:
		print('it')


a = input()
k = ['I hate ', 'I love ']
s = []
sent = ''
for i in range(int(a)):
	if i % 2 == 1:
		s.append(k[1])
	else:
		s.append(k[0])
sent = 'that '.join(s)
sent += 'it'
print(sent)


feel = ''
layer = int(input())
for i in range(1, layer + 1):
	if i % 2 != 0:
		feel = feel + 'I hate'
	else:
		feel = feel + 'I love'
	if i == layer:
		feel = feel + ' it'
		break
	else:
		feel = feel + ' that '
print(feel)


import math
import bisect
n = int(input())
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
else:
	n -= 1
	a = ['I hate that ', 'I love that ']
	stri = ''
	for i in range(n):
		stri += a[i % 2]
	if n % 2 == 1:
		stri += 'I love it'
	else:
		stri += 'I hate it'
	print(stri)


n = int(input())
odd = 'I hate that '
even = 'I love that '
Banners_feeling = ''
i = 1
while i < n:
	if i % 2 == 0:
		Banners_feeling += even
	else:
		Banners_feeling += odd
	i += 1
if n % 2 == 0:
	Banners_feeling += 'I love it'
else:
	Banners_feeling += 'I hate it'
print(Banners_feeling)


f1 = 'I hate '
f2 = 'I love '
th = 'that '
it = 'it'
n = int(input())
for i in range(n):
	if i == 0:
		print(f1, end='')
	elif i % 2 == 0:
		print(th + f1, end='')
	else:
		print(th + f2, end='')
print(it)


layers = int(input())
c = 'a' * layers + 'a'
b = []
for i in range(len(c)):
	if i <= 3:
		if i == 1:
			b.append('')
			b.remove('')
		elif i == 2:
			b.append('that I love')
		elif i == 3:
			b.append('that I hate')
	elif i % 4 == 0:
		b.append('that I love')
	elif i % 4 == 1:
		b.append('that I hate')
	elif i % 4 == 2:
		b.append('that I love')
	elif i % 4 == 3:
		b.append('that I hate')
a = ' '.join(b)
print('I hate' + ' ' + a + ' ' + 'it')


def hulk(n):
	s = ''
	love = 0
	while n - 1:
		if love == 1:
			s += 'I love that '
			love = 0
		else:
			s += 'I hate that '
			love = 1
		n = n - 1
	return s
n = int(input())
if n % 2 == 0:
	print(hulk(n) + 'I love it')
else:
	print(hulk(n) + 'I hate it')


e = eval(input())
i = 1
y = 'I hate'
b = 'I love'
c = ''
while i <= e:
	if i == 1:
		c = y
		i += 1
	if i <= e:
		c += ' that ' + b
		i += 1
	if i <= e:
		c += ' that ' + y
		i += 1
print(c, 'it')


n = int(input())

def f(x, s, n):
	if x == n:
		return s + ' it'
	if x % 2 == 1:
		return s + ' that I love' + f(x + 1, s, n)
	if x % 2 == 0:
		return s + ' that I hate' + f(x + 1, s, n)
print('I hate' + f(1, '', n))


n = int(input())
str1 = 'that I love'
str2 = 'that I hate'
ls = ['I', 'hate', 'it']
index = 2
if n >= 2:
	for i in range(n - 1):
		if i % 2 == 0:
			ls.insert(index, str1)
		else:
			ls.insert(index, str2)
		index += 1
result = ' '.join(ls)
print(result)


n = int(input())
m = ['I hate', 'I love'] * n
print(' that '.join(m[:n]), 'it')


n = int(input())
if n % 2 == 0 and n != 2:
	k = n // 2
	print((k - 1) * 'I hate that I love that ' + 'I hate that I love ' + 'it')
elif n == 2:
	print('I hate that I love it')
else:
	l = (n - 1) // 2
	print(l * 'I hate that I love that ' + 'I hate it')


import sys
import math
s = ''
n = int(input())
for i in range(1, n):
	if i % 2 == 0:
		s += 'I love that '
	else:
		s += 'I hate that '
if n % 2 == 0:
	s += 'I love it'
else:
	s += 'I hate it'
print(s)


n = int(input())
p = ('I hate', 'I love') * n
y = ' that '.join(p[:n]) + ' it '
print(y)


t = int(input())
x = 'I love that'
y = 'I hate that'
xx = 'I love it'
yy = 'I hate it'
k = []
for i in range(t - 1):
	if i % 2 == 0:
		k.append(y)
	else:
		k.append(x)
if t % 2 != 0:
	k.append(yy)
else:
	k.append(xx)
a = ' '.join(k)
print(a)


def main():
	n = int(input())
	start = 'I hate'
	love_hate = [' that I hate', ' that I love']
	end = ' it'
	text = start
	layer = 1
	while layer < n:
		text += love_hate[layer % 2]
		layer += 1
	text += end
	print(text)
main()


n = int(input())
h = ' I hate that'
l = ' I love'
if n == 1:
	print('I hate it')
elif n % 2 == 0:
	print((h + l + ' that') * (n // 2 - 1), h + l, ' it', sep='')
else:
	print((h + l + ' that') * (n // 2), ' I hate it', sep='')


n = int(input())
p1 = 'I hate that '
p2 = 'I love that '
s = ''
if n == 1:
	s = s + p1
else:
	for i in range(n):
		if i % 2 != 0:
			s = s + p2
		else:
			s = s + p1
it = 'it'
c = s[:-5] + it
print(c)


n = int(input())
s1 = 'I hate it '
s2 = 'I love it '
s3 = 'I hate that I love that '
s4 = 'I hate that '
if n % 2 == 0 and n > 2:
	print(s3 * ((n - 2) // 2) + s4 + s2)
elif n == 1:
	print(s1)
elif n == 2:
	print(s4 + s2)
else:
	print(s3 * ((n - 1) // 2) + s1)


def hulk(n):
	arr = []
	x = ''
	if n % 2 == 0:
		if n == 2:
			return 'I hate that I love it'
		arr.append('I hate that I love it')
	else:
		if n == 1:
			return 'I hate it'
		arr.append('I hate it')
	n -= 2
	for i in range(int(n / 2) + n % 2):
		x += 'I hate that I love that '
	x += arr[0]
	return x
n = int(input())
print(hulk(n))


n = int(input())
d = False
T = ['I hate ', 'I love ']
for i in range(n):
	print(T[d], end='')
	d = not d
	if i != n - 1:
		print('that ', end='')
print('it')


x = int(input())
string = []
index = -1
for i in range(x):
	if i % 2 == 0:
		string.append('I')
		string.append('hate')
		string.append('it')
	else:
		string.append('I')
		string.append('love')
		string.append('it')
	if index != -1:
		string[index] = 'that'
	index += 3
print(' '.join(string))


import sys
n = int(sys.stdin.readline())
times = 0
if n == 1:
	text = 'I hate it'
else:
	times = int(n / 2)
	if n % 2 == 1:
		text = times * 'I hate that I love that ' + 'I hate it'
	else:
		text = (times - 1) * 'I hate that I love that ' + 'I hate that I love it'
print(text)


s = int(input())
if s % 2 == 1:
	print('I hate that I love that ' * (s // 2) + 'I hate it')
else:
	print('I hate that I love that ' * ((s - 2) // 2), end='' + 'I hate that I love it')


n = int(input())
e = 'that I love '
o = 'that I hate '
res = ''
if n == 1:
	print('I hate it')
else:
	for i in range(2, n + 1):
		if i % 2 == 0:
			res += e
		else:
			res += o
	print('I hate ' + res + 'it')


n = int(input())
first_word = 'I hate'
second_word = 'I love'
middle_word = ' that '
last_word = ' it'
disp = first_word
for i in range(2, n + 1):
	disp += middle_word
	if i % 2 == 0:
		disp += second_word
	else:
		disp += first_word
disp += last_word
print(disp)


n = int(input())
debut = 'I hate '
fin = 'it'
hate = 'that I hate '
love = 'that I love '
for i in range(1, n):
	if i % 2:
		debut += love
	else:
		debut += hate
print(debut + fin)


q = ['I hate ']
x = int(input())
for z in range(x - 1):
	if z % 2 == 0:
		q.append('that I love ')
	else:
		q.append('that I hate ')
q.append('it')
for m in range(0, x + 1):
	print(q[m], end='')


n = int(input())
k = 'I hate '
j = 'I love '
r = k[:]
for i in range(1, int(n)):
	r += 'that '
	if i % 2 == 1:
		r += j
	else:
		r += k
r += 'it'
print(r)


n = int(input())
result = 'I hate that I love that ' * (n // 2)
if n % 2 == 1:
	result += 'I hate it'
else:
	result = result[:-5] + 'it'
print(result)


n = int(input())
ans = ''
num = 1
while num <= n:
	if num % 2 == 1 and num == n:
		ans = ans + 'I hate it'
	elif num % 2 == 0 and num == n:
		ans = ans + 'I love it'
	elif num % 2 == 1:
		ans = ans + 'I hate that '
	elif num % 2 == 0:
		ans = ans + 'I love that '
	num = num + 1
print(ans)


def fun():
	n = int(input())
	cnt = 1
	l = ['I', 'hate', 'it']
	if n == 1:
		print(' '.join(l))
		return
	while cnt < n:
		if cnt % 2 == 0:
			l.pop()
			l.append('that')
			l.append('I')
			l.append('hate')
			l.append('it')
		else:
			l.pop()
			l.append('that')
			l.append('I')
			l.append('love')
			l.append('it')
		cnt += 1
	print(' '.join(l))
fun()


from sys import stdin, stdout
input = stdin.readline()

def main():
	k = int(input)
	n = 1
	str = ''
	while n < k:
		if n % 2 == 1:
			str += 'I hate that '
		else:
			str += 'I love that '
		n = n + 1
	if n % 2 == 1:
		str += 'I hate it'
	else:
		str += 'I love it'
	print(str)
main()


from math import *
n = input()
n = int(n)
a = 'I hate that '
b = 'I love that '
c = ''
for i in range(1, n + 1):
	if i == n:
		if n % 2 == 1:
			c += 'I hate it'
		else:
			c += 'I love it'
	elif i % 2 == 1:
		c += a
	else:
		c += b
print(c)


import sys, math
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return s[:len(s) - 1]

def invr():
	return map(int, input().split())
t = 1
for tt in range(t):
	n = inp()
	q = ['hate', 'love']
	s = ''
	for i in range(n):
		s = s + 'I ' + q[i % 2] + ' that '
	print(s[:-5] + ' it')


n = int(input())
expression = []
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
else:
	for i in range(n):
		if i % 2 == 0:
			mood = 'I hate that'
			expression.append(mood)
		else:
			mood = 'I love that'
			expression.append(mood)
	t = ' '.join(expression)
	t = t[0:-4]
	print(t + ' it')


n = int(input().strip())
re = 'I hate it'
for i in range(2, n + 1):
	if i % 2 != 0:
		re = re.replace('it', 'that I hate it')
	else:
		re = re.replace('it', 'that I love it')
print(re)


n = int(input())
hate = 'I hate '
love = 'I love '
cnt = 1
while cnt <= n:
	if cnt % 2 == 0:
		print(love, end='')
	else:
		print(hate, end='')
	if not cnt == n:
		print('that ', end='')
	else:
		print('it', end='')
	cnt += 1


n = int(input())
a = 'I hate'
b = 'I love'
c = 'that'
l1 = []
for i in range(1, n + 1):
	if i % 2 == 0:
		l1.append(b)
	else:
		l1.append(a)
	l1.append(c)
l1.pop()
l1.append('it')
print(' '.join(l1))


n = int(input())
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
else:
	st = 'I hate that I love that '
	st2 = 'I hate that I love it'
	st3 = 'I hate it'
	if n % 2 == 0:
		n = n // 2
		st = st * (n - 1)
		print(st + st2)
	else:
		n -= 1
		n = n // 2
		st = st * n
		print(st + st3)


class Main:
	n = int(input())
	hate = 'I hate that '
	love = 'I love that '
	feel = ''
	for i in range(1, n + 1):
		if i % 2 == 1:
			feel += hate
		else:
			feel += love
	feel = feel.strip('that ') + ' it'
	print(feel)
Main()


ehjdtym = int(input())
print('I hate ', end='')
for gjdnjh in range(ehjdtym - 1):
	if gjdnjh % 2 == 0:
		print('that I love ', end='')
	else:
		print('that I hate ', end='')
print('it')


from math import ceil

def main():
	n = int(input())
	hateEnd = 'I hate it'
	loveEnd = 'I love it'
	hate = 'I hate that '
	love = 'I love that '
	ans = ''
	for i in range(n - 1):
		if i % 2:
			ans += love
		else:
			ans += hate
	if n % 2:
		ans += hateEnd
	else:
		ans += loveEnd
	print(ans)
	return
main()


from math import *

def main():
	n = int(input())
	ans = ''
	for i in range(1, n + 1):
		if i % 2 == 0:
			ans += 'I love'
		else:
			ans += 'I hate'
		if i < n:
			ans += ' that '
		else:
			ans += ' it'
	print(ans)
main()


a = 'I hate it'
t = 'that'
b = 'I love it'
z = int(input())
b = ['I hate ', 'I love '] * z
for i in range(z):
	if i == z - 1:
		print(b[i] + 'it')
	else:
		print(b[i] + 'that', end=' ')


n = int(input())
s1 = 'I hate '
s2 = 'I love '
s = ''
i = 1
while i <= n:
	if i == n:
		if i & 1 == 1:
			s += s1
		else:
			s += s2
		s += 'it'
	else:
		if i & 1 == 1:
			s += s1
		else:
			s += s2
		s += 'that '
	i += 1
print(s)


a = 'I hate '
b = 'I hate that I love that '
c = 'it'
x = int(input())
y = b * (x // 2)
if x % 2 == 0:
	print(y[:len(y) - 5] + c)
else:
	print(y[:len(y)] + a + c)


n = int(input())
begin = 'I hate'
end = 'it'
print(begin, end=' ')
c = 1
while n > 1:
	n -= 1
	if c == 1:
		print('that I love', end=' ')
	else:
		print('that I hate', end=' ')
	c *= -1
print(end)


n = int(input())
h = 'I hate'
it = 'it'
that = 'that'
love = 'I love'
ans = []
for i in range(1, n + 1):
	if i % 2 != 0 and i != n:
		ans.append(h)
		ans.append(that)
	elif i % 2 != 0 and i == n:
		ans.append(h)
		ans.append(it)
	elif i % 2 == 0 and i != n:
		ans.append(love)
		ans.append(that)
	elif i % 2 == 0 and i == n:
		ans.append(love)
		ans.append(it)
print(' '.join(ans))


import sys
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
n = inp()
a = 'I hate '
b = 'I love '
c = 'that '
d = 'it '
i = 0
e = ''
while i < n:
	if i % 2 == 0:
		e += a
		if i < n - 1:
			e += c
	else:
		e += b
		if i < n - 1:
			e += c
	i += 1
e = e + d
print(e)


n = int(input())
a = 'I hate '
b = 'I love '
feeling = []
for i in range(1, n + 1):
	if i % 2 != 0:
		feeling.append(a)
	else:
		feeling.append(b)
c = ''.join(feeling)
c = c.replace('I hate I love', 'I hate that I love')
c = c.replace('I love I hate', 'I love that I hate')
c = list(c)
c.append('it')
print(''.join(c))


def hulk(n):
	feelings = ''
	for layer in range(n):
		feelings += 'I '
		if (layer + 1) % 2 == 1:
			feelings += 'hate '
		else:
			feelings += 'love '
		if layer + 1 != n:
			feelings += 'that '
	feelings += 'it'
	return feelings
layers = int(input())
print(hulk(layers))


n = int(input())
feelings = ['hate', 'love'] * n
print('I', ' that I '.join(feelings[:n]), 'it')


a = int(input(''))
i = 1
data = ['I hate', 'I love']
new = ''
while True:
	if i < a:
		if i % 2 == 1:
			new += data[0] + ' that '
		else:
			new += data[1] + ' that '
	else:
		if i % 2 == 1:
			new += data[0] + ' it'
		else:
			new += data[1] + ' it'
		break
	i = i + 1
print(new)


reps = int(input())
while reps > 0:
	print('I hate ', end='')
	reps -= 1
	if reps > 0:
		print('that I love ', end='')
		reps -= 1
	if reps > 0:
		print('that ', end='')
print('it')


first_felling = 'I hate'
second_felling = 'I love'
result = 'I hate'
n = int(input())
for i in range(2, n + 1):
	result += ' ' + 'that'
	if i % 2 == 0:
		result += ' ' + second_felling
	elif i % 2 == 1:
		result += ' ' + first_felling
result += ' ' + 'it'
print(result)


n = int(input(''))
hate = 'I hate'
love = 'that I love'
statement = ''
if n == 1:
	print('I hate it')
elif n % 2 == 0:
	for i in range(n // 2 - 1):
		statement = statement + f'{hate} {love} that '
	statement = statement + hate + ' ' + love + ' it'
	print(statement)
else:
	for i in range(n // 2):
		statement = statement + f'{hate} {love} that '
	statement = statement + hate + ' it'
	print(statement)


i_hate = 'I hate'
i_love = 'I love'
it = ' it '
that = ' that '
out = ''
i = int(input())
for j in range(i - 1):
	if j % 2 == 0:
		out = out + that + i_love
	else:
		out = out + that + i_hate
print(i_hate + out + it)


layer = int(input())
feelings = ['I hate', 'I love'] * layer
print(' that '.join(feelings[:layer]), 'it')


n = int(input())
st = ''
for i in range(1, n + 1):
	if i % 2 == 1:
		st = st + 'I hate'
		st = st + ' that '
	if i % 2 == 0:
		st = st + 'I love'
		st = st + ' that '
print(st[:-6] + ' it')


INPUT_VALUE = int(input())
OUTPUT_LIST = []
flag = -1
for i in range(0, INPUT_VALUE):
	if flag < 0:
		OUTPUT_LIST.append('I hate')
	else:
		OUTPUT_LIST.append('I love')
	flag = flag * -1
OUTPUT_WORD = str(OUTPUT_LIST).replace('[', '').replace(']', '').replace(',', ' that').replace("'", '')
print(OUTPUT_WORD + ' it')


n = int(input())
a = 'I hate it'
aa = 'I hate that'
c = 'I love it'
cc = 'I love that'
if n == 1:
	print(a)
else:
	s = ''
	for i in range(1, n):
		if i % 2 != 0:
			s += aa + ' '
		else:
			s += cc + ' '
	if n % 2 == 0:
		print(s + c)
	else:
		print(s + a)


num = input()
num = int(num)
hate = 'I hate it'
love = 'I love it'
res = 'I hate it'
for i in range(1, num):
	phrase = ''
	if i % 2 == 1:
		phrase = love
	else:
		phrase = hate
	res = res[:-2] + 'that ' + phrase
print(res)


n = int(input())
n -= 1
d = n / 2
m = n % 2
print('I hate ', end='')
print('that I love that I hate ' * int(d), end='')
print('that I love ' * m, end='')
print('it')


n = int(input())
x = 'I hate it '
y = 'I love it '
x1 = 'I hate that '
y1 = 'I love that '
xy = ''
for i in range(1, n + 1):
	if i == n:
		if i % 2 != 0:
			xy += x
		else:
			xy += y
	elif i % 2 == 0:
		xy += y1
	else:
		xy += x1
print(xy)


n = int(input())
loveIt = 'I love it '
hateIt = 'I hate it '
loveThat = 'I love that '
hateThat = 'I hate that '
text = ''
i = 1
if n == 1:
	text = hateIt
if n > 1:
	if n % 2 == 0:
		while i <= n:
			if i == n:
				text = text + loveIt
			elif i % 2 == 0:
				text = text + loveThat
			else:
				text = text + hateThat
			i += 1
	else:
		while i <= n:
			if i == n:
				text = text + hateIt
			elif i % 2 == 0:
				text = text + loveThat
			else:
				text = text + hateThat
			i += 1
print(text)


def hulk():
	n = int(input())
	string = ''
	for i in range(1, n):
		if i % 2 == 1:
			string += 'I hate that '
		else:
			string += 'I love that '
	if n % 2 == 1:
		string += 'I hate it '
	else:
		string += 'I love it '
	print(string)
hulk()


n = int(input())
s1 = 'I hate'
s2 = 'I love'
s3 = 'that'
s4 = 'it'
s5 = ' '
res = ''
for i in range(1, n + 1):
	if i % 2 != 0:
		res += s1
		res += s5
		if n > 1 and i != n:
			res += s3
			res += s5
	elif i % 2 == 0:
		res += s2
		res += s5
		if n > 1 and i != n:
			res += s3
			res += s5
res += s4
print(res)


n = int(input())

def f(i):
	if i & 1 == 0:
		return 'I hate '
	return 'I love '
print('that '.join([f(i) for i in range(n)]) + 'it')


n = int(input())
str = ''
if n == 1:
	str = 'I hate it'
if n != 1:
	str = 'I hate that'
	n -= 1
	for i in range(n):
		if n - i == 1 and (i % 10 == 1 or i % 10 == 3 or i % 10 == 5 or (i % 10 == 7) or (i % 10 == 9)):
			str += ' I hate it'
		elif n - i == 1 and (i % 10 == 2 or i % 10 == 4 or i % 10 == 6 or (i % 10 == 8) or (i % 10 == 0)):
			str += ' I love it'
		elif n - i != 1 and (i % 10 == 2 or i % 10 == 4 or i % 10 == 6 or (i % 10 == 8) or (i % 10 == 0)):
			str += ' I love that'
		elif n - i != 1 and (i % 10 == 1 or i % 10 == 3 or i % 10 == 5 or (i % 10 == 7) or (i % 10 == 9)):
			str += ' I hate that'
print(str)


from sys import stdin, stdout

def parser():
	c = stdin.readline()
	return c
n = int(parser())
ret = 'I hate'
for i in range(2, n + 1):
	if i % 2 != 0:
		ret += ' that I hate'
	else:
		ret += ' that I love'
stdout.write(ret + ' it')


import sys
n = int(sys.stdin.readline())
str = 'I hate'
for i in range(n - 1):
	str += ' that I '
	if i % 2 == 0:
		str += 'love'
	else:
		str += 'hate'
str += ' it'
print(str)


def hulk(n):
	l = []
	hate_love = -1
	for i in range(n):
		if i == n - 1:
			if hate_love == -1:
				l.append('I hate it')
			else:
				l.append('I love it')
			break
		if hate_love == -1:
			l.append('I hate that')
		else:
			l.append('I love that')
		hate_love *= -1
	return ' '.join(l)
data = input()
n = int(data)
print(hulk(n))


print((lambda x: 'I hate that I love that ' * ((x - 1) // 2) + ('I hate that I love it', 'I hate it')[x & 1])(int(input())))


num = int(input())
speech = 'I hate it'
s_w = speech.split()
for i in range(1, num):
	del s_w[-1]
	s_w.append('that')
	s_w.append('I')
	if i % 2 == 0:
		s_w.append('hate')
	else:
		del s_w[-1]
		s_w.append('I')
		s_w.append('love')
	s_w.append('it')
speech = ' '.join(s_w)
print(speech)


n = int(input())
a = []
b = 'I hate it'
c = 'I hate that I love it'
d = 'I hate that I love that'
m = n / 2 - 1
l = n / 2
if n == 1:
	a.append(b)
elif n == 2:
	a.append(c)
elif n % 2 == 0 and n > 2:
	for i in range(int(m)):
		a.append(d)
elif n % 2 != 0 and n > 2:
	for i in range(int(l)):
		a.append(d)
if n > 2 and n % 2 == 0:
	a.append(c)
elif n > 2 and n % 2 != 0:
	a.append(b)
for k in a:
	print(k, end=' ')


n = int(input())
s = []
for i in range(1, n + 1):
	if i % 2 == 1:
		s.append('I hate')
	if i % 2 == 0:
		s.append('I love')
print(' that '.join(s), end=' it ')


n = int(input())
string = ''
first = 'I hate'
second = 'I love'
final = ' it'
seperator = ' that '
for x in range(n):
	if x % 2 == 0:
		string = string + first
	else:
		string = string + second
	if x == n - 1:
		string = string + final
	else:
		string = string + seperator
print(string)


from sys import stdin
c = int(stdin.readline().rstrip())
s = 'I hate '
for x in range(c - 1):
	s += ('that I love ', 'that I hate ')[x % 2]
s += 'it'
print(s)


HalkYROVEN = int(input())
print('I hate ', end='')
for ret in range(HalkYROVEN - 1):
	if ret % 2 == 0:
		print(' that I love ', end='')
	else:
		print(' that I hate ', end='')
print('it')


import math
pair1 = 'I hate that I love that '
pair2 = 'I hate that I love it'
str1 = 'I hate it'
n = int(input())
if n == 1:
	print(str1)
elif n % 2 == 0:
	print(pair1 * ((n + 1) // 2 - 1) + pair2)
else:
	print(pair1 * ((n + 1) // 2 - 1) + str1)


value = int(input())
num = value
flag = 0
while value > 1:
	if flag == 0:
		print('I hate that ', end='')
		flag = 1
	else:
		print('I love that ', end='')
		flag = 0
	value -= 1
if num % 2 == 0:
	print('I love it')
else:
	print('I hate it')


def _705A(number):
	sentence = [' hate ', ' love '] * (number // 2)
	if number % 2 != 0:
		sentence.extend([' hate '])
	return 'I' + 'that I'.join(sentence) + 'it'
number = int(input())
print(_705A(number))


import sys
import math
import os
n = int(sys.stdin.readline())
feel = ''
for x in range(n):
	if x % 2 == 0:
		temp = 'I hate '
		if x == n - 1:
			temp += 'it'
		else:
			temp += 'that '
		feel += temp
	else:
		temp = 'I love '
		if x == n - 1:
			temp += 'it'
		else:
			temp += 'that '
		feel += temp
print(feel)


(a, b) = (int(input()) - 1, [])
b.extend(['that I love that I hate '] * (a // 2))
if a % 2 != 0:
	b.extend(['that I love'])
b = ['I hate'] + b + ['it']
print(' '.join(b))


number = int(input())
first = 'I '
last = ' it'
for i in range(number):
	if i % 2 == 0:
		first += 'hate'
	else:
		first += 'love'
	if number > 1 and i < number - 1:
		first += ' that I '
first += last
print(first)


a = int(input())
b = 'I hate'
b1 = 'I hate that '
c = 'I love'
c1 = 'I love that '
r = ''
i = 0
for i in range(a):
	if (i + 1) % 2 == 0 and i + 1 == a:
		r += c
		break
	if (i + 1) % 2 != 0 and i + 1 == a:
		r += b
		break
	if (i + 1) % 2 == 0 and i + 1 < a:
		r += c1
	if (i + 1) % 2 != 0 and i + 1 < a:
		r += b1
if a == 1:
	r = b
r += ' it'
print(r)


n = int(input())
j = ''
for u in range(0, n):
	j += 'I '
	if u % 2 == 0:
		j += 'hate '
	else:
		j += 'love '
	if u != n - 1:
		j += 'that '
	else:
		j += 'it'
print(j)


n = int(input())
im = ['I hate it', 'I love it', 'I hate that ', 'I love that ']
ans = ''
i = 1
for i in range(n - 1):
	if i % 2 == 0:
		ans += im[2]
	else:
		ans += im[3]
if i % 2 == 0:
	ans += im[1]
else:
	ans += im[0]
print(ans)


n = int(input())
arr = []
i = 0
while i < n:
	if i % 2 == 0:
		arr.append('I hate that')
		i += 1
	else:
		arr.append('I love that')
		i += 1
if len(arr) % 2 == 0:
	arr[-1] = 'I love it'
else:
	arr[-1] = 'I hate it'
print(' '.join(arr))


n = int(input())
a = 'I hate'
b = 'I love'
result = []
for i in range(n):
	if i % 2 == 0:
		result.append(a)
		if i == n - 1:
			result.append(' it')
		else:
			result.append(' that ')
	else:
		result.append(b)
		if i == n - 1:
			result.append(' it')
		else:
			result.append(' that ')
for i in result:
	print(i, end='')


import sys

def solve():
	x = int(input())
	cnt = 0
	result = ''
	i = x
	while i > 1:
		if cnt == 0:
			result = result + ' I hate that'
			cnt = 1
		else:
			result = result + ' I love that'
			cnt = 0
		i = i - 1
	if x % 2 == 1:
		result = result + ' I hate it'
	else:
		result = result + ' I love it'
	return result
print(solve().strip())


def getEmotionIndex(i):
	if i % 2 == 0:
		return 1
	else:
		return 0
emotionLayer = [['I hate that', 'I hate it'], ['I love that', 'I love it']]
layerCount = int(input())
i = 1
while i < layerCount:
	print(emotionLayer[getEmotionIndex(i)][0], end=' ')
	i += 1
print(emotionLayer[getEmotionIndex(layerCount)][1])


x = int(input())
i_hate = 'I hate '
love = 'I love '
it = 'it '
that = 'that '
string = ''
for i in range(1, x + 1):
	if i % 2 == 1:
		string += i_hate
	else:
		string += love
	if i == x:
		string += it
	else:
		string += that
print(string.strip())


n = int(input())
s0 = 'I hate that I love that '
if n == 1:
	s = 'I hate it'
else:
	if n % 2 == 0:
		s = s0 * (n // 2 - 1) + ' ' + 'I hate that I love it'
	if n % 2 != 0:
		s = s0 * (n // 2) + 'I hate it'
print(s)


num = int(input())
l = ['I hate', 'I love']
space = ''
for i in range(num):
	space += l[i % 2] + ' that '
print(space[0:len(space) - 5] + 'it')


n = int(input())
k = n
s1 = 'I hate '
s2 = 'I love '
if n == 1:
	print('I hate it')
	exit()
if n == 2:
	print(s1 + 'that' + ' ' + s2 + 'it')
	exit()
else:
	while n >= 1:
		if n == 1 and k % 2 == 0:
			print(s2 + 'it')
			exit()
		if n == 1 and k % 2 != 0:
			print(s1 + 'it')
			exit()
		if n != 1:
			print(s1 + 'that', end=' ')
			n -= 1
		if n != 1:
			print(s2 + 'that', end=' ')
			n -= 1


n = int(input()) - 1
res = ['I', 'hate', '']
add = ' that I love'
while n != 0:
	res[2] += add
	if add == ' that I love':
		add = ' that I hate'
	elif add == ' that I hate':
		add = ' that I love'
	n -= 1
res[2] += ' it'
print(' '.join(' '.join(res).split()))


n = int(input()) - 1
hate = 'I hate it'
love = 'I love it'
feeling = hate
for layer in range(n):
	if layer % 2 == 0:
		feeling = feeling.replace('it', 'that ' + love)
	else:
		feeling = feeling.replace('it', 'that ' + hate)
print(feeling)


import heapq as hp

def unpack(func=int):
	return map(func, input().split())

def range_n():
	return range(int(input()))

def main():
	n = int(input())
	odd = 'I hate'
	even = 'I love'
	mid = 'that'
	end = 'it'
	a = []
	for i in range(1, n):
		a.append(odd if i & 1 else even)
		a.append(mid)
	a.append(odd if n & 1 else even)
	a.append(end)
	print(' '.join(a))
main()


n = int(input())
arr = [' that ', ' it']
mood = [' love', ' hate']
i = 1
ans = ''
while i <= n:
	if i % 2 != 0:
		ans += 'I' + mood[1]
	elif i % 2 == 0:
		ans += 'I' + mood[0]
	if i != n:
		ans += arr[0]
	elif i == n:
		ans += arr[1]
	i += 1
print(ans)


no = 'I hate it'
ye = 'I love it'
no2 = 'I hate that '
ye2 = 'I love that '
p = int(input())
a = ''
for i in range(p):
	if i == 0 and p == 1:
		a = a + no
	elif i % 2 == 0 and i < p - 1:
		a = a + no2
	elif i % 2 != 0 and i < p - 1:
		a = a + ye2
	elif i % 2 == 0 and i == p - 1:
		a = a + no
	elif i % 2 != 0 and i == p - 1:
		a = a + ye
print(a)


n = int(input())
print(*('I hate', 'I love') * (n // 2) + ('I hate',) * (n % 2), sep=' that ', end=' it\n')


n = int(input())
lst = []
s = None
for x in range(1, n + 1):
	if x % 2 == 0:
		if x == n:
			s = 'I love it'
			lst.append(s)
		else:
			s = 'I love that'
			lst.append(s)
	elif x == n:
		s = 'I hate it'
		lst.append(s)
	else:
		s = 'I hate that'
		lst.append(s)
print(*lst)


input_num = int(input())
lst = []
for i in range(input_num // 2, 0, -1):
	lst.append('I hate')
	lst.append('that')
	lst.append('I love')
	lst.append('that')
if input_num % 2 == 0:
	lst[-1] = 'it'
else:
	lst.append('I hate')
	lst.append('it')
for i in lst:
	print(i + ' ', end='')


n = int(input())
h = 'I hate '
l = 'I love '
s = ''
for i in range(0, n):
	if i == n:
		if n % 2 == 0:
			s = s + l + 'it'
		else:
			s = s + h + 'it'
	elif i % 2 == 0:
		s = s + h + 'that '
	else:
		s = s + l + 'that '
print(s[:-5] + 'it')


s = 'I hate '
p = 'I love '
b = ''
x = int(input())
for i in range(1, x + 1):
	if i == x and i % 2 != 0:
		b = b + s
	elif i == x and i % 2 == 0:
		b = b + p
	elif i % 2 != 0:
		b = b + s + 'that '
	else:
		b = b + p + 'that '
if x == 1:
	print('I hate it')
else:
	print(b + 'it')


m = eval(input())
if m % 2 != 0:
	while m != 1:
		print('I hate that I love that', end=' ')
		m = m - 2
	print('I hate it')
else:
	if m != 2:
		while m != 2:
			print('I hate that I love that', end=' ')
			m = m - 2
	print('I hate that I love it')


number = int(input())
x = ''
for i in range(0, number):
	x = x.replace('it', 'that')
	if i % 2 == 0:
		x += ' I hate it'
	if i % 2 == 1:
		x = x.replace('it', 'that')
		x += ' I love it'
print(x)


n = int(input(''))
if n % 2 != 0:
	rep = n // 2
	str = 'I hate that I love that '
	if rep > 0:
		print(rep * str, end='')
	print('I hate it')
else:
	str = 'I hate that I love that '
	k = n // 2 - 1
	if k > 0:
		print(k * str, end='')
	print('I hate that I love it')


n = int(input())
lst = []
index = 1
for i in range(n):
	if index % 2 == 1:
		lst.append('I hate')
	if index % 2 == 0:
		lst.append('I love')
	index += 1
x = ' that '.join(lst)
print(x + ' it')


odd = 'I hate '
even = 'I love '
n = int(input(''))
output = ''
for counter in range(1, n + 1):
	if counter == 1 and n > 1:
		feeling = odd + 'that '
	elif counter == 1:
		feeling = odd
	elif counter % 2 == 0:
		feeling = even + 'that '
	else:
		feeling = odd + 'that '
	if counter == n and n != 1:
		length = len(feeling)
		feeling = feeling[0:length - 6]
		feeling += ' it'
	elif counter == n:
		feeling += 'it'
	output += feeling
print(output)


n = int(input())
k = 0
for _ in range(n - 1):
	print('I ' + ['hate', 'love'][k] + ' that ', end='')
	k ^= 1
print('I ' + ['hate', 'love'][k] + ' it')


import sys
from itertools import islice
fin = sys.stdin
fout = sys.stdout
lines = (line.strip() for line in fin)
(n,) = map(int, next(lines).split())

def gen_feelings():
	while True:
		yield 'I hate'
		yield 'I love'
print(*list(islice(gen_feelings(), n)), sep=' that ', end=' it', file=fout)


N = int(input())
T = ''
A = 'I hate'
B = 'I love'
for j in range(N):
	if j > 0:
		T += ' that '
	if j % 2 == 0:
		T += A
	if j % 2 == 1:
		T += B
T += ' it'
print(T)


def hate(n, s, h, l):
	if n - 1 == 0:
		s = s + h
		print(s, end=' ')
	else:
		print(h[:len(h) - 2] + 'that', end=' ')
	n -= 1
	if n != 0:
		love(n, s, h, l)

def love(n, s, h, l):
	if n - 1 == 0:
		s = s + l
		print(s, end=' ')
	else:
		print(l[:len(h) - 2] + 'that', end=' ')
	n -= 1
	if n != 0:
		hate(n, s, h, l)
h = 'I hate it'
l = 'I love it'
n = int(input())
s = ''
hate(n, s, h, l)


def hulk(num):
	for i in range(1, num):
		if i % 2 == 1:
			print('I hate that', end=' ')
		else:
			print('I love that', end=' ')
	if num % 2 == 1:
		print('I hate it', end=' ')
	else:
		print('I love it', end=' ')
num = int(input())
hulk(num)


flag = True
ans = 'I hate'
for i in range(1, int(input())):
	if i % 2:
		ans += ' that I love'
	else:
		ans += ' that I hate'
print(ans + ' it')


from sys import stdin, stdout
n = int(input())
a = 'I'
for i in range(1, n + 1):
	if i % 2 == 0:
		a = a + ' love'
	else:
		a = a + ' hate'
	if i == n:
		a = a + ' it'
		break
	else:
		a = a + ' that I'
stdout.write(str(a) + '\n')


num = int(input())
wirds = []
a = 'I hate '
b = 'I love '
for i in range(1, num + 1):
	if i % 2 != 0:
		wirds.append(a)
	else:
		wirds.append(b)
hum = 'that '.join(wirds)
hum += 'it'
print(hum)


def mCheckInputs(inputList):
	input1 = inputList[0]
	if input1.isdigit() and 1 <= int(input1) <= pow(10, 2):
		pass
	else:
		exit(1)

def mHandleInputs(inputList):
	x = input()
	inputList.append(x)
	mCheckInputs(inputList)

def mDoWork(inputList, outputList):
	x = int(inputList.pop())
	loveSentence = 'I love that'
	hateSentence = 'I hate that'
	finalHate = 'I hate it'
	finalLove = 'I love it'
	if x == 1:
		outputList.append(finalHate)
		return
	preFix = [loveSentence if i % 2 == 0 else hateSentence for i in range(1, x)]
	result = ' '.join(preFix) + ' ' + (finalHate if x % 2 != 0 else finalLove)
	outputList.append(result)

def mFormatResult(outputList):
	print(outputList[0])

def main():
	inputList = []
	mHandleInputs(inputList)
	outputList = []
	mDoWork(inputList, outputList)
	mFormatResult(outputList)
main()


x = int(input(''))
list = []
for c in range(1, 101):
	if c == x:
		if c / 2 != int(c / 2):
			list.append('I hate it ')
		if c / 2 == int(c / 2):
			list.append('I love it ')
		break
	if c / 2 != int(c / 2):
		list.append('I hate that ')
	if c / 2 == int(c / 2):
		list.append('I love that ')
m = ''
m = m.join(map(str, list))
print(m)


count = int(input())
odd = 'I hate that'
even = 'I love that'
end1 = 'I hate it'
end2 = 'I love it'
for i in range(count):
	if i == count - 1 and i % 2 == 0:
		print(end1, end=' ')
		break
	elif i == count - 1 and i % 2 != 0:
		print(end2, end=' ')
		break
	if i % 2 == 0:
		print(odd, end=' ')
	else:
		print(even, end=' ')


def hulk(n):
	layer1 = ['I', 'hate', 'that']
	layer2 = ['I', 'love', 'that']
	out = []
	for i in range(n):
		if i % 2 == 0:
			out += layer1
		else:
			out += layer2
	out.pop()
	out.append('it')
	out = ' '.join(out)
	return out
layer = int(input())
print(hulk(layer))


def Bruce(n):
	ans = ''
	if n <= 3:
		if n == 1:
			return 'I hate it'
		elif n == 2:
			return 'I hate that I love it'
		else:
			return 'I hate that I love that I hate it'
	else:
		for i in range(1, n + 1):
			if i % 2 != 0:
				if i == n:
					ans += 'I hate it'
				else:
					ans += 'I hate that '
			elif i == n:
				ans += 'I love it'
			else:
				ans += 'I love that '
	return ans
n = int(input())
print(Bruce(n))


n = int(input())
if n >= 1 and n <= 100:
	s = 'I hate'
	t = 'that I love'
	u = 'that I hate'
	v = 'it'
	x = s
	for i in range(2, n + 1):
		if i % 2 == 0:
			x = x + ' ' + t
		else:
			x = x + ' ' + u
	x = x + ' ' + v
	print(x)


n = int(input())
a = 'I hate'
b = 'I love'
li = []
for x in range(1, n + 1):
	if x % 2 != 0:
		li.append(a)
	elif x % 2 == 0:
		li.append(b)
print(' that '.join(li) + ' it')


n = int(input()) - 1
c = 'I hate '
x = 1
s1 = 'that I love '
s2 = 'that I hate '
for i in range(n):
	if x == 1:
		c += s1
	else:
		c += s2
	x = 1 - x
print(c + 'it')


class CodeforcesTask705ASolution:

	def __init__(self):
		self.result = ''
		self.n = 0

	def read_input(self):
		self.n = int(input())

	def process_task(self):
		feelings = ['I hate', 'I love']
		feels = feelings * (self.n // 2) + feelings[:self.n % 2]
		self.result = ' that '.join(feels) + ' it'

	def get_result(self):
		return self.result
Solution = CodeforcesTask705ASolution()
Solution.read_input()
Solution.process_task()
print(Solution.get_result())


n = int(input())
odd = 'I hate '
eve = 'I love '
end = 'it'
midd = 'that '
s = ''
for i in range(1, n + 1):
	if i % 2 == 0:
		s = s + eve
	else:
		s = s + odd
	if i == n:
		s = s + end
	else:
		s = s + midd
print(s)


while True:
	try:
		n = int(input())
		if n in range(1, 101):
			break
	except:
		continue
L = ['I hate', 'I love']
x = n // 2
ch = ''
if n % 2 == 0:
	for i in range(x - 1):
		ch = ch + ' ' + L[0] + ' that ' + L[1] + ' that'
	print(ch + ' I hate that I love it')
else:
	for i in range(x):
		ch = ch + ' ' + L[0] + ' that ' + L[1] + ' that'
	print(ch + ' I hate it')


n = int(input())
first = 'I hate'
conj = ' that '
last = 'I love'
for i in range(n):
	if i % 2 == 0:
		if i == n - 1:
			print(first + ' it')
		else:
			print(first + conj, end='')
	elif i == n - 1:
		print(last + ' it')
	else:
		print(last + conj, end='')


from sys import stdin, setrecursionlimit
setrecursionlimit(10 ** 6)
input = stdin.readline
n = int(input())
s = ['I hate ', 'I love ']
ans = ''
for i in range(n):
	ans += s[i & 1] + 'that '
print(ans[:-5] + 'it')


from sys import stdin, stdout
n = int(stdin.readline().rstrip())
sentence = ''
for i in range(1, n + 1):
	if i == 1:
		sentence = sentence + 'I hate'
		continue
	if i % 2 == 0:
		sentence = sentence + ' that I love'
	else:
		sentence = sentence + ' that I hate'
sentence = sentence + ' it'
stdout.write(sentence)


def hulk_feeling(n):
	result = ''
	feeling = True
	while n >= 1:
		if n == 1:
			if feeling:
				result += 'I hate it'
				return result
			else:
				result += 'I love it'
				return result
		if feeling:
			result += 'I hate that '
		else:
			result += 'I love that '
		feeling = not feeling
		n -= 1
	return result
n = int(input())
result = hulk_feeling(n)
print(result)


z = 'that'
z1 = 'it'
number = int(input())
ab = [' I hate ', ' I love '] * number
ab_ = z.join(ab[:number])
print(ab_ + 'it')


n = int(input())
layers = ['hate', 'love']
feeling = ''
for i in range(n - 1):
	feeling += f'I {layers[i % 2]} that '
feeling += f'I {layers[(n - 1) % 2]} it'
print(feeling)


re = int(input())
sen = ['I hate']
for i in range(re - 1):
	if i % 2 == 0:
		sen.append('that I love')
	else:
		sen.append('that I hate')
sen.append('it')
res = ' '.join(sen)
print(res)


n = int(input())
a = 'I hate that'
b = 'I love that'
s = ''
switch = False
for i in range(n):
	if switch:
		s += ' ' + b
		switch = False
	else:
		s += ' ' + a
		switch = True
print(s[:-4] + 'it')


n = int(input())
a = 'I hate'
b = 'I love'
c = 'that'
p = ''
for i in range(n):
	if i % 2 == 0:
		p = p + a + ' '
	if i % 2 == 1:
		p = p + b + ' '
	if i != n - 1:
		p += c + ' '
print(p + 'it')


n = int(input())
sen2 = 'that I love '
sen3 = 'that I hate '
answer = 'I hate '
if n == 1:
	print('I hate it ')
else:
	for i in range(1, n):
		if i % 2 == 0:
			answer += sen3
		else:
			answer += sen2
	answer += 'it'
	print(answer)


N = int(input())
word_0 = 'I hate'
word_1 = 'I love'
l = []
for i in range(N):
	if i % 2 == 0:
		l.append(word_0)
	else:
		l.append(word_1)
sentence = ' that '.join(l) + ' it'
print(sentence)


n = int(input())
t = 1
s = 'I hate that'
c = ['love', 'hate']
for i in range(n - 1):
	print(s, end=' ')
	s = s.replace(c[t], c[1 - t])
	t = 1 - t
s = s.replace('that', 'it')
print(s)


n = int(input())
res = ''
res_odd = ' I hate'
res_even = ' I love '
res_mid = ' that'
res_end = ' it'
for i in range(1, n + 1):
	if i % 2 == 0:
		res += res_even
	else:
		res += res_odd
	if i == n:
		res += res_end
	else:
		res += res_mid
print(res.strip())


x = int(input())
y = str()
if x % 2 == 0:
	for i in range(int(x / 2) - 1):
		y += 'I hate that I love that '
	y += 'I hate that I love it'
elif x == 1:
	y += 'I hate it'
else:
	for i in range(int(x / 2)):
		y += 'I hate that I love that '
	y += 'I hate it'
print(y)


n = int(input())
s1 = 'I hate that '
s2 = 'I love that '
s = ''
j = 1
for i in range(n):
	if j == 1:
		s += s1
		j = 2
	else:
		s += s2
		j = 1
d = s.split()
l = len(d)
d[l - 1] = 'it'
s = ''
for i in d:
	s += i + ' '
print(s)


num = int(input())

def hate():
	print('I hate it')

def hate_that():
	print('I hate that', end=' ')

def love():
	print('I love it')

def love_that():
	print('I love that', end=' ')
for i in range(1, num + 1):
	if i % 2 == 0:
		if i == num:
			love()
		else:
			love_that()
	elif i == num:
		hate()
	else:
		hate_that()


import sys

def solution(n):
	str_1 = 'I hate'
	str_2 = 'I love'
	result = ''
	for i in range(n):
		if i % 2 == 0:
			result += str_1
			if i < n - 1:
				result += ' that '
		else:
			result += str_2
			if i < n - 1:
				result += ' that '
	result += ' it'
	return result
line = sys.stdin.readline()
while line:
	n = line.strip()
	print(solution(int(n)))
	line = sys.stdin.readline()


n = int(input())
s1 = 'I hate'
s2 = 'I love'
s3 = 'that'
s4 = ' it'
s = ''
y = 1
for i in range(n):
	if y == 1:
		s = s1 + s4
		y += 1
	elif y % 2 == 0:
		s = s.replace('it', '')
		s = s + s3 + ' ' + s2 + s4
		y += 1
	else:
		s = s.replace('it', '')
		s = s + s3 + ' ' + s1 + s4
		y += 1
print(s)


(layer, count) = (int(input()), 1)
feeling = ['I hate it', 'I love it', 'I love that', 'I hate that']
while count < layer:
	print(feeling[count % 2 + 2], end=' ')
	count += 1
if layer % 2 == 0:
	print(feeling[1])
elif layer % 2 == 1:
	print(feeling[0])


import sys
import math
import os
import itertools
import string
import heapq
import _collections
from collections import Counter
from collections import defaultdict
from functools import lru_cache
import bisect
import re
import queue

class Scanner:

	@staticmethod
	def int():
		return int(sys.stdin.readline().rstrip())

	@staticmethod
	def string():
		return sys.stdin.readline().rstrip()

	@staticmethod
	def map_int():
		return [int(x) for x in Scanner.string().split()]

	@staticmethod
	def string_list(n):
		return [input() for i in range(n)]

	@staticmethod
	def int_list_list(n):
		return [Scanner.map_int() for i in range(n)]

	@staticmethod
	def int_cols_list(n):
		return [int(input()) for i in range(n)]

class Math:

	@staticmethod
	def gcd(a, b):
		if b == 0:
			return a
		return Math.gcd(b, a % b)

	@staticmethod
	def lcm(a, b):
		return a * b // Math.gcd(a, b)

	@staticmethod
	def round_up(a, b):
		return -(-a // b)

	@staticmethod
	def is_prime(n):
		if n < 2:
			return False
		if n == 2:
			return True
		if n % 2 == 0:
			return False
		d = int(n ** 0.5) + 1
		for i in range(3, d + 1, 2):
			if n % i == 0:
				return False
		return True

class PriorityQueue:

	def __init__(self, l=[]):
		self.q = l
		heapq.heapify(self.q)
		return

	def push(self, n):
		heapq.heappush(self.q, n)
		return

	def pop(self):
		return heapq.heappop(self.q)
MOD = int(1000000000.0) + 7
INF = int(1000000000000000.0)

def main():
	n = Scanner.int()
	for i in range(n - 1):
		if i % 2 == 0:
			print('I hate that ', end='')
		else:
			print('I love that ', end='')
	if n % 2 == 0:
		print('I love it')
	else:
		print('I hate it')
main()


n = int(input())
s = ''
for i in range(0, n):
	if i == 0:
		s += 'I hate it'
	elif i % 2 != 0:
		s = s[:-3]
		s += ' that I love it'
	elif i % 2 == 0:
		s = s[:-3]
		s += ' that I hate it'
print(s)


layer = int(input())
text_beginning = 'I hate it'
text_end = 'I love it'
text_one = 'I hate that'
text_two = 'I love that'
output = ''
last_element = layer
if layer == 1:
	output = 'I hate it'
else:
	for index in range(layer):
		last_element = last_element - 1
		if last_element == 0 and layer % 2 == 0:
			output = output + text_end
			break
		if last_element == 0 and layer % 2 == 1:
			output = output + text_beginning
			break
		if index % 2 == 1 and last_element != 0:
			output = output + text_two + ' '
		if index % 2 == 0 and last_element != 0:
			output = output + text_one + ' '
print(output)


n = int(input())
first = ' that I hate'
second = ' that I love'
result = 'I hate that I love'
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
else:
	for i in range(3, n + 1):
		if not i % 2:
			result += second
		else:
			result += first
	print(result + ' it')


user = int(input())
list = []
list.append('I hate')
c = 0
if user > 2:
	for i in range(2, user + 1):
		if i % 2 == 0:
			list.append(' that I love ')
			c = 1
		else:
			list.append('that I hate')
			c = 0
if c == 0:
	list.append(' it')
else:
	list.append('it')
s = ''.join(list)
if user == 1:
	print('I hate it')
elif user == 2:
	print('I hate that I love it')
elif user > 2:
	print(s)


import sys
n = int(input())
i = n
if i == 1:
	print('I hate it')
	sys.exit()
s = ''
while i > 1:
	if i % 2 == 0 and i == n:
		s = 'I love it ' + s
	elif i % 2 == 0 and i != n:
		s = 'I love that ' + s
	elif i % 2 != 0 and i != n:
		s = 'I hate that ' + s
	else:
		s = 'I hate it ' + s
	i = i - 1
s = 'I hate that ' + s
print(s)


t = int(input())
x = 0
str1 = ''
while t != 0:
	str1 = str1 + 'I '
	if x == 0:
		x = 1
		str1 = str1 + 'hate '
	else:
		x = 0
		str1 = str1 + 'love '
	if t == 1:
		str1 = str1 + 'it'
	else:
		str1 = str1 + 'that '
	t = t - 1
print(str1)


n = int(input())
arr = ['I hate', 'I love', 'that', 'it']
for i in range(n - 1):
	print(arr[i % 2], arr[2], sep=' ', end=' ')
print(arr[(n - 1) % 2], arr[3], sep=' ', end='\n')


number_of_levels = int(input())
hate = 'I hate'
love = 'I love'
that = 'that'
feelings = []
for level in range(1, number_of_levels + 1):
	if level % 2 != 0:
		feelings.append(hate)
	else:
		feelings.append(love)
if number_of_levels == 1:
	feelings.append('it')
	print(*feelings)
else:
	print(' that '.join(feelings) + ' it')


n = int(input())
lst = list()
for i in range(n):
	if i % 2 == 0:
		lst.append('I hate')
	else:
		lst.append('I love')
print(' that '.join(lst) + ' it')


import sys
n = int(input())
answer = ''
hate = True
while n > 0:
	if hate:
		if n - 1 > 0:
			answer = answer + 'I hate that '
		else:
			answer = answer + 'I hate it'
		hate = False
	else:
		if n - 1 > 0:
			answer = answer + 'I love that '
		else:
			answer = answer + 'I love it'
		hate = True
	n = n - 1
print(answer)


n = int(input())
dr_banners_feelings = ''
hate = 'I hate that '
love = 'I love that '
for i in range(n):
	dr_banners_feelings += hate if i % 2 == 0 else love
print(dr_banners_feelings.strip().rsplit(' ', 1)[0] + ' it')


mot = 'I hate '
aut = 'I love '
a = 'that '
b = 'it'
ch = ''
n = int(input())
for i in range(n - 1):
	if i % 2 == 0:
		ch = ch + mot + a
	else:
		ch = ch + aut + a
if n % 2 == 0:
	print(ch + aut + b)
else:
	print(ch + mot + b)


def Hulk(n):
	X = ''
	for i in range(n - 1):
		if i % 2 == 0:
			X += 'I hate that '
		else:
			X += 'I love that '
	if n % 2 == 1:
		X += 'I hate it'
	else:
		X += 'I love it'
	return X
n = int(input())
print(Hulk(n))


n = int(input())
s = 'I'
for k in range(n):
	if k == 0:
		s += ' hate that'
	elif k % 2 == 0:
		s += ' I hate that'
	else:
		s += ' I love that'
s = s.split(' ')
s = s[:len(s) - 1]
s = ' '.join(s)
print(s + ' it')


n = int(input())
a = []
d1 = 'I hate it'
d2 = 'I love it'
for i in range(1, n + 1):
	a.append(str(i))
for i in range(n):
	if int(a[i]) % 2 != 0:
		a[i] = 'I hate that'
	else:
		a[i] = 'I love that'
a = a[:-1]
if len(a) % 2 != 0:
	a.append(d2)
else:
	a.append(d1)
print(*a)


class Solution:

	def solve(self, n):
		feelings = ['hate', 'love']
		result = []
		for i in range(n):
			result.append('I')
			result.append(feelings[i % 2])
			result.append('it' if i == n - 1 else 'that')
		return ' '.join(result).strip()
sol = Solution()
n = int(input().strip())
print(sol.solve(n))


dive = int(input())
abd = ''
for i in range(dive - 1):
	if i % 2 == 0:
		abd += 'I hate'
	else:
		abd += 'I love'
	abd += ' that '
if dive % 2 == 0:
	abd += 'I love it'
else:
	abd += 'I hate it'
print(abd)


def solve(n):
	result = 'I hate '
	for i in range(1, n):
		if i % 2 == 1:
			result += 'that I love '
		elif i % 2 == 0:
			result += 'that I hate '
	print(result + 'it')
solve(int(input()))


x = int(input())
k = 'I hate'
k2 = 'I love'
fin = ''
for i in range(x):
	if i != 0:
		fin += ' that '
	if i % 2 == 0:
		fin += k
	else:
		fin += k2
fin += ' it'
print(fin)


n = int(input())
o = 'I hate '
e = 'I love '
s = ''
if n == 1:
	print(o + 'it')
	exit(0)
for i in range(1, n + 1):
	if i % 2 != 0:
		s += o
	if i % 2 == 0:
		s += e
	if i != n:
		s += 'that '
print(s + 'it')


number = int(input())
count = 2
print('I hate', end=' ')
while number >= count:
	if count % 2 == 0:
		print('that I love', end=' ')
		count += 1
	else:
		print('that I hate', end=' ')
		count += 1
print('it')


import sys
n = int(input())
hate = True
hulkSays = ['I']
flag = True
while n > 0:
	if flag:
		hulkSays.append('hate')
		flag = False
	else:
		hulkSays.append('love')
		flag = True
	hulkSays.append('that')
	n -= 1
	if n > 0:
		hulkSays.append('I')
hulkSays = hulkSays[:-1]
hulkSays.append('it')
print(' '.join(hulkSays))


def halk(n):
	(phrases, k, result) = (['I hate', 'I love'], 0, list())
	for i in range(n):
		result.append(phrases[k])
		k = 1 - k
		if i < n - 1:
			result.append('that')
		else:
			result.append('it')
	return ' '.join(result)
print(halk(int(input())))


n = int(input())
k = 1
i = 1
feelings = [' hate', ' love']
ans = ['I ', 'hate', ' it']
while k < n:
	ans[ans.index(' it')] = ' that'
	ans.append(' I')
	ans.append(feelings[i])
	ans.append(' it')
	k += 1
	if i == 0:
		i = 1
	elif i == 1:
		i = 0
final_ans = ''
for u in ans:
	final_ans = final_ans + u
print(final_ans)


n = int(input())
s = 'I hate it'
p = 'I love it'
x = ''
a = 'I hate that '
b = 'I love that '
for i in range(n - 1):
	if i % 2 == 0:
		x += a
	else:
		x += b
if n % 2:
	x += s
else:
	x += p
print(x)


layer = int(input())
for i in range(1, layer + 1):
	if i % 2 == 0:
		print('I love', end=' ')
	elif i % 2 == 1:
		print('I hate', end=' ')
	else:
		print('error')
	if i == layer:
		print('it')
	else:
		print('that', end=' ')


n = int(input())
h = []
l = []
hh = 'I hate'
ll = 'I love'
for i in range(n):
	if i % 2 == 0:
		h.append(hh)
	elif i % 2 == 1:
		h.append(ll)
ss = ''
for i in range(n - 1):
	ss = ss + str(h[i]) + ' that '
ss = ss + str(h[-1]) + ' it'
print(ss)


x = int(input())
s = 'I hate '
i = 2
if x == 1:
	s = 'I hate it'
elif x > 1:
	while i <= x:
		if i % 2 == 0:
			s += 'that I love '
		else:
			s += 'that I hate '
		i += 1
	s += 'it'
print(s)


f = int(input())
ans = []
for i in range(f):
	if i & 1:
		ans.append('I love ')
	else:
		ans.append('I hate ')
	ans.append('that ')
del ans[-1]
print(''.join(ans) + ' it')


n = int(input())
s = ['I hate', 'I love'] * n
print(*s[:n], sep=' that ', end=' it')


n = int(input())
hate = 'I hate that '
love = 'I love that '
s = ''
for i in range(n):
	s += hate if not i % 2 else love
s = s[:-5] + 'it'
print(s)


n = int(input())
first = True
count = 0
for i in range(n):
	if first:
		print('I hate ', end='')
		first = False
	else:
		print('I love ', end='')
		first = True
	count += 1
	if count < n:
		print('that ', end='')
print('it')


level = int(input())
disc = ['I hate ', 'I love ', 'it ', 'that ']
discc = ['I hate that ', 'I love that ']
if level == 1:
	print(disc[0] + disc[2])
if level > 1:
	for i in range(1, level + 1):
		it = i // 2
		itt = i / 2
		itm = i // 2 - 1
		write = (discc[0] + discc[1]) * it
		writte = (discc[0] + discc[1]) * itm
	if i % 2 == 0:
		print(write[0:-5] + 'it')
	elif i % 2 != 0:
		print(write + 'I hate it')


n = int(input())
feels = ['hate', 'love']
i = 0
while i in range(n - 1):
	print('I', feels[i % 2], 'that', end=' ')
	i += 1
print('I', feels[(n - 1) % 2], 'it')


n = int(input())
last = 'it'
hate = 'I hate'
love = 'I love'
ans = ''
if n == 1:
	exit(print(hate + ' ' + last))
for i in range(1, n):
	if i % 2 == 0:
		ans += love
	else:
		ans += hate
	ans += ' that '
if n % 2 == 0:
	ans += love
else:
	ans += hate
ans += ' ' + last
print(ans)


import sys
import math
import bisect

def main():
	A = []
	n = int(input())
	for i in range(n):
		if i % 2 == 0:
			A.append('I')
			A.append('hate')
		else:
			A.append('I')
			A.append('love')
		if i == n - 1:
			A.append('it')
		else:
			A.append('that')
	print(' '.join(A))
main()


n = input()
n = int(n)
c = 'I hate '
d = 'I love '
kolihestvoshagov = 0
c = ''
while kolihestvoshagov < n:
	if (kolihestvoshagov + 1) % 2 != 0:
		c = c + 'I hate '
	else:
		c = c + 'I love '
	kolihestvoshagov = kolihestvoshagov + 1
	if kolihestvoshagov == n:
		c = c + 'it '
	else:
		c = c + 'that '
print(c)


a = int(input())
k = a
for q in range(a):
	s = 'I hate that'
	d = 'I love that'
	r = 'I hate it'
	f = 'I love it'
	if q % 2 == 0 and k != 1:
		k = k - 1
		print(s, end=' ')
	elif q % 2 != 0 and k != 1:
		k = k - 1
		print(d, end=' ')
	elif k == 1:
		if a % 2 == 0:
			print(f)
		else:
			print(r)


n = int(input())
ans = []
for i in range(1, n + 1):
	if i == n:
		if i % 2 != 0:
			ans.append('I hate it')
			break
		else:
			ans.append('I love it')
			break
	if i % 2 != 0:
		ans.append('I hate that')
	else:
		ans.append('I love that')
print(*ans)


n = int(input())
hate = 'I hate it'
love = 'I love it'
x = []
if n % 2 == 0:
	for i in range(n // 2):
		hate = hate.replace('it', 'that')
		x.append(hate)
		love = love.replace('it', 'that')
		x.append(love)
	x.pop(-1)
	x.append(hate.replace('that', 'it'))
	x.pop(-1)
	x.append(love.replace('that', 'it'))
	for i in range(len(x)):
		print(x[i], '', end='')
		i += 1
else:
	for i in range(n // 2):
		hate = hate.replace('it', 'that')
		x.append(hate)
		love = love.replace('it', 'that')
		x.append(love)
	x.append(hate.replace('that', 'it'))
	for i in range(len(x)):
		print(x[i], '', end='')
		i += 1


import sys
n = int(input())
i = 1
if n == 1:
	print('I hate it')
	sys.exit()
while i < n:
	if i % 2 == 0:
		print('I love that', end=' ')
	else:
		print('I hate that', end=' ')
	i += 1
if n % 2 == 0:
	print('I love it')
else:
	print('I hate it')


n = int(input())
a = ['I hate']
a1 = ['that I love']
a2 = ['that I hate']
for i in range(n):
	if i % 2 != 0 and i != 0:
		a += a1
	elif i % 2 == 0 and i != 0:
		a += a2
c = a + ['it']
print(' '.join(c))


input_number = int(input())
lst = []
for i in range(input_number):
	if i % 2 == 0:
		lst.append('I hate')
	else:
		lst.append('I love')
new_str = ' that '.join(lst)
answer = new_str + ' it'
print(answer)


def phrase(n, f):
	if n == 1:
		if f:
			return 'I hate it'
		else:
			return 'I love it'
	elif f:
		return 'I hate that ' + phrase(n - 1, not f)
	else:
		return 'I love that ' + phrase(n - 1, not f)
n = int(input())
print(phrase(n, True))


n = int(input())
s = ''
count = True
for i in range(1, n):
	if i % 2 == 0:
		print('I love that ', end='')
	else:
		print('I hate that ', end='')
if n % 2 == 0:
	print('I love it', end='')
else:
	print('I hate it', end='')


n = int(input())
hate = 'I hate it'
love = 'I love it'
result = ''
for i in range(n):
	result = result.replace('it', 'that')
	if not i % 2:
		result += ' {}'.format(hate)
	else:
		result += ' {}'.format(love)
print(result.strip())


levels_cnt = int(input())
full_str = ['I hate that', 'I love that']
res = [*full_str] * int(levels_cnt / 2) + (['I hate it'] if levels_cnt % 2 else [])
res[-1] = res[-1].replace('that', 'it')
print(' '.join(res))


local = False
if local:
	file = open('A.txt', 'r')

def inp():
	if local:
		return file.readline().rstrip()
	else:
		return input().rstrip()

def ints():
	return [int(_) for _ in inp().split()]
n = int(inp())
last = 'I love it' if n % 2 == 0 else 'I hate it'
sent = []
hate = True
while n > 1:
	if hate:
		sent.append('I hate that')
	else:
		sent.append('I love that')
	n -= 1
	hate = not hate
sent = sent + [last]
print(' '.join(sent))


n = int(input())
oddpart = ['I', 'hate', 'that']
evenpart = ['I', 'love', 'that']
output = []
for i in range(1, n + 1):
	if i % 2 != 0:
		output += oddpart
	else:
		output += evenpart
output[-1] = 'it'
print(' '.join(output))


def Hulk_Sequency(n):
	i = 2
	result = 'I hate'
	for _ in range(n - 1):
		if i == 1:
			result += ' that I hate'
		if i == 2:
			result += ' that I love'
		if i == 2:
			i = 1
		else:
			i += 1
	return result + ' it'
n = int(input())
print(Hulk_Sequency(n))


n = int(input())
hate_it = 'I hate it'
hate_that = 'I hate that'
love_it = 'I love it'
love_that = 'I love that'
if n == 1:
	print(hate_it)
elif n == 2:
	print(hate_that + ' ' + love_it)
elif n % 2 == 0:
	for i in range(2 * n // 2):
		if i % 2 == 0:
			print(hate_that, end=' ')
		elif i == 2 * (n // 2) - 1:
			print(love_it, end=' ')
		else:
			print(love_that, end=' ')
else:
	for i in range(2 * (n // 2) + 1):
		if i % 2 == 0:
			if i == 2 * (n // 2):
				print(hate_it, end=' ')
			else:
				print(hate_that, end=' ')
		else:
			print(love_that, end=' ')


num = int(input())
test = ['I hate', 'I love']
print(*(test[i % 2] for i in range(num)), sep=' that ', end=' it')


def main():
	while 1:
		try:
			love = 'I love'
			hate = 'I hate'
			message = ''
			n_iter_ = int(input())
			initial_value = 1
			while initial_value <= n_iter_:
				if initial_value % 2 == 1:
					message += hate
				elif initial_value % 2 == 0:
					message += love
				if initial_value != n_iter_:
					message += ' that '
				else:
					message += ' it'
				initial_value += 1
			print(message)
		except:
			break
main()


x = input()
i = int(x)
u = 1
string = ''
while u <= i:
	if u % 2 != 0:
		string += 'I hate '
	else:
		string += 'I love '
	if u == i:
		string += 'it'
	else:
		string += 'that '
	u += 1
print(string)


n = int(input())
connect = ' that '
end = ' it'
res = ''
for i in range(n):
	if i % 2 != 0:
		res += 'I love'
	else:
		res += 'I hate'
	if i == n - 1:
		res += end
	else:
		res += connect
print(res)


l = ['I love that' if _ % 2 else 'I hate that' for _ in range(int(input()))]
l[-1] = l[-1].replace('that', 'it')
print(' '.join(l))


length = input()
hate = 'I hate'
love = 'I love'
even = lambda x: hate if x % 2 == 0 else love
feels = [even(x) for x in range(int(length))]
res = ' that '.join(feels) + ' it'
print(res)


n = int(input())
hate = 'I hate'
love = 'I love'
join = 'that'
space = ' '
words = ''
what = 'it'
if n == 1:
	words = words + hate + space
else:
	for i in range(1, n + 1):
		if i % 2 != 0:
			if i == n:
				words = words + hate + space
			else:
				words = words + hate + space + join + space
		elif i == n:
			words = words + love + space
		else:
			words = words + love + space + join + space
print(words + what)


li = ['I', 'hate', 'it']
a = int(input()) - 1
if a % 2 == 0:
	li[2:2] = ['that', 'I', 'love', 'that', 'I', 'hate'] * (a // 2)
else:
	li[2:2] = ['that', 'I', 'love', 'that', 'I', 'hate'] * (a // 2) + ['that', 'I', 'love']
print(' '.join(li))


number = int(input())
answer = 'I hate '
for i in range(2, number + 1):
	if i % 2 == 0:
		answer += ''.join('that I love ')
	else:
		answer += ''.join('that I hate ')
answer += ''.join('it')
print(answer)


number = int(input())
tbp = ''
switch = True
for i in range(number):
	if switch and i != number - 1:
		tbp += 'I hate that '
		switch = False
	elif switch and i == number - 1:
		tbp += 'I hate it'
		switch = False
	elif not switch and i != number - 1:
		tbp += 'I love that '
		switch = True
	elif not switch and i == number - 1:
		tbp += 'I love it'
		switch = True
print(tbp)


level = int(input())
feelings = ['I hate']
for i in range(level - 1):
	if i & 1:
		feelings.append('that I hate')
	else:
		feelings.append('that I love')
feelings.append('it')
print(' '.join(feelings))


n = int(input())
for (i, j) in enumerate(range(n), start=1):
	if i % 2 == 0:
		if i == n:
			print('I love it')
		else:
			print('I love that', end=' ')
	elif i == n:
		print('I hate it')
	else:
		print('I hate that', end=' ')


def HulkFeelings(n):
	feeling = []
	ans = ''
	for i in range(n):
		if i % 2 == 0:
			feeling.append('I hate')
		else:
			feeling.append('I love')
	for i in range(n):
		ans += feeling[i]
		if i < n - 1:
			ans += ' that '
	ans += ' it'
	return ans
n = input()
print(HulkFeelings(int(n)))


n = int(input())
s1 = 'I hate that '
s2 = 'I love that '
s = ''
for i in range(n):
	if i % 2 == 0:
		s += s1
	else:
		s += s2
print(s[:-5] + 'it')


x = int(input())
if x == 1:
	print('I hate it')
a = ''
if x > 1 and x % 2 == 0:
	y = 'I hate that '
	z = 'I love that '
	for i in range(0, x // 2):
		a = y + z + a
		d = a[:len(a) - 5] + a[len(a) - 5:].replace('that', 'it')
	print(d)
elif x > 1 and x % 2 != 0:
	y = 'I hate that '
	z = 'I love that '
	for i in range(0, (x - 1) // 2):
		a = y + z + a
	print(a, end='')
	print('I hate it')


n = int(input())
s = ''
for i in range(1, n + 1):
	if i % 2 == 1:
		s = s + 'I hate '
	else:
		s = s + 'I love '
s = s.replace('hate', 'hate that')
s = s.replace('love', 'love that')
s = s[::-1]
s = s.replace('taht', 'ti', 1)
s = s[::-1]
s = s.rstrip()
print(s)


feeling1 = 'I hate it '
feeling2 = 'I love it '
num = int(input())
if num == '1':
	print(feeling1)
elif num % 2 == 1:
	print(((feeling1 + feeling2) * (num // 2)).replace('it', 'that') + feeling1)
else:
	print(((feeling1 + feeling2) * (num // 2)).replace('it', 'that')[:-5] + 'it')


inp = int(input())
I_hate_it = 'I hate it'
I_love_it = 'I love it'
I_hate_that = 'I hate that'
I_love_that = 'I love that'
listt = [None] * 101
for i in range(1, inp + 1):
	if inp % 2 == 0 and i == inp:
		listt[i] = I_love_it
	elif inp % 2 != 0 and i == inp:
		listt[i] = I_hate_it
	elif i % 2 == 0:
		listt[i] = I_love_that
	elif i % 2 != 0:
		listt[i] = I_hate_that
for i in range(1, inp + 1):
	print(listt[i], end=' ')


s = ' '
count = 1
t = int(input())
while count < t:
	if count % 2 == 0:
		s = s + 'I love that '
	else:
		s = s + 'I hate that '
	count = count + 1
if count % 2 == 0:
	s = s + 'I love it'
else:
	s = s + 'I hate it'
print(s)


feelings = int(input())
layer = 0
string = ''
for i in range(feelings):
	string += 'that '
	if layer == 0:
		string += 'I hate '
		layer = 1
	else:
		string += 'I love '
		layer = 0
print(string[5:] + 'it')


layers = int(input())
hateAndLove = ['I hate', 'I love']
feelings = hateAndLove[0]
layer = 1
while layer < layers:
	feelings = feelings + ' that ' + hateAndLove[layer % 2]
	layer = layer + 1
feelings = feelings + ' it'
print(feelings)


n = int(input())
words = ['it', 'that']
str = []
for i in range(n):
	if (i + 1) % 2 == 1:
		if i + 1 != 1:
			str[-1] = words[1]
		str.append('I hate')
		str.append(words[0])
	if (i + 1) % 2 == 0:
		str[-1] = words[1]
		str.append('I love')
		str.append(words[0])
print(' '.join([str[i] for i in range(len(str))]))


__author__ = 'artyom'

def main():
	n = read()
	if n == 1:
		return 'I hate it'
	s = 'I hate that I love that ' * (n // 2 - 1)
	if n & 1 == 1:
		s += 'I hate that I love that I hate it'
	else:
		s += 'I hate that I love it'
	return s

def read(mode=2, size=None):
	if mode == 0:
		return input().strip()
	if mode == 1:
		return input().strip().split()
	if mode == 2:
		return int(input().strip())
	if mode == 3:
		return list(map(int, input().strip().split()))
	a = []
	for _ in range(size):
		a.append(read(3))
	return a

def write(s='\n'):
	if s is None:
		s = ''
	if isinstance(s, tuple) or isinstance(s, list):
		s = ' '.join(map(str, s))
	s = str(s)
	print(s, end='\n')
res = main()
write(res)


n = int(input())
feel1 = 'I hate'
feel2 = 'I love'
p = ' '
res = ''
a = True
if n > 1:
	p = ' that '
for i in range(n):
	if a:
		res += feel1
		a = not a
	else:
		res += feel2
		a = not a
	if i != n - 1:
		res += p
print(res + ' it')


ih = 'I hate'
th = ' that '
il = 'I love'
it = ' it'
n = int(input())
if n == 1:
	print('I hate it')
	exit()
else:
	st = ''
	for i in range(1, n + 1):
		if i % 2 != 0:
			st += ih
		else:
			st += il
		if i != n:
			st += th
		else:
			st += it
print(st)


s = int(input())
x = []
k = s
for i in range(k):
	if s == 1:
		if i % 2 == 0:
			x.append('I hate it')
			break
		else:
			x.append('I love it')
			break
	elif i % 2 == 0:
		x.append('I hate that ')
	else:
		x.append('I love that ')
	s -= 1
print(''.join(x))


n = int(input())
a = 'I hate it'
b = 'I love it'
c = 'I hate that '
d = 'I love that '
z = n % 2
y = n // 2
if z == 0:
	print((c + d) * (y - 1) + c + b)
if z == 1:
	print((c + d) * y + a)


n = int(input())
a = 'I hate'
b = 'I love'
i = 0
while i < n:
	if i < n:
		print(a, end='')
		if i != n - 1:
			print(' that ', end='')
		i += 1
		if i < n:
			print(b, end='')
			if i != n - 1:
				print(' that ', end='')
	i += 1
print(' it')


n = int(input())
s = ''
s1 = 'I love it'
for i in range(1, n + 1):
	if i % 2 != 0:
		li = list(s)
		s = ''.join(li)
		s = s + 'I hate that '
	else:
		li = list(s)
		s = ''.join(li)
		s = s + 'I love that '
lis = list(s)
del lis[-5:]
s1 = ''.join(lis)
lis.extend(['i', 't'])
s2 = ''.join(lis)
print(s2)


n = input().split()[0]
n = int(n)
s = ''
feels = ['love', 'hate']
i = 1
while i <= n:
	feel = feels[i % 2]
	what = 'that' if i != n else 'it'
	layer = 'I ' + feel + ' ' + what + ' '
	s = s + layer
	i = i + 1
print(s[0:-1])


def get():
	return [int(x) for x in input().split()]
(n,) = get()
print(*('I love' if i % 2 else 'I hate' for i in range(n)), sep=' that ', end=' it\n')


def Main(s):
	hate = 'I hate '
	love = 'I love '
	it = 'it'
	that = 'that '
	n = 0
	str_ = ''
	while n != s:
		if n % 2 == 0:
			str_ = str_ + hate
		elif n % 2 == 1:
			str_ = str_ + love
		if n < s - 1 and s != 1:
			str_ = str_ + that
		else:
			str_ = str_ + it
		n += 1
	else:
		print(str_)
s = int(input())
Main(s)


i = int(input())
speak = ''
hate = 'I hate that '
hate_1 = 'I hate it '
love = 'I love that '
love_1 = 'I love it '
for x in range(1, i + 1):
	if x % 2 == 0:
		if x == i:
			speak += love_1
		else:
			speak += love
	elif x == i:
		speak += hate_1
	else:
		speak += hate
print(speak)


n = int(input())
temp = ['I hate' if x % 2 == 0 else 'I love' for x in range(n)]
res = '{} it'.format(' that '.join(temp))
print(res)


x = int(input())
i = '1'
string = ''
while 0 < x:
	if i == '0':
		string = string + 'I love '
		i = '1'
	else:
		string = string + 'I hate '
		i = '0'
	x -= 1
	if not x == 0:
		string = string + 'that '
string = string + 'it'
print(string)


n = int(input())
lista = ['I hate', 'I love']
sol = [lista[i % 2] for i in range(0, n)]
str1 = ' that '.join(sol)
str1 += ' it'
print(str1)


n = int(input())
l = ['I hate ', 'it']
for i in range(n - 1):
	l.insert(-1, 'that I ' + ['love ', 'hate '][i % 2])
print(''.join(l))


n = int(input())
s = ['I ', 'hate ', 'it']
if n > 1:
	for i in range(1, n):
		if i % 2:
			s.insert(-1, 'love ')
			s.insert(-2, 'I ')
			s.insert(-3, 'that ')
		else:
			s.insert(-1, 'hate ')
			s.insert(-2, 'I ')
			s.insert(-3, 'that ')
for i in s:
	print(i, end='')


import sys
n = int(sys.stdin.readline())
love = 'love '
hate = 'hate '
it = 'it'
that = 'that '
message = 'I '
if n == 1:
	print(message + hate + it)
else:
	for layer in range(n - 1):
		if layer % 2 == 1:
			message = message + love + that + 'I '
		else:
			message = message + hate + that + 'I '
	if n % 2 == 0:
		print(message + love + it)
	else:
		print(message + hate + it)


x = int(input())
say = ''
two = ['I hate ', 'I love ']
for i in range(x):
	say += two[i % 2]
	if i != x - 1:
		say += 'that '
	else:
		say += 'it'
print(say)


a = int(input())
x = ''
for i in range(a):
	if i % 2 == 0:
		x = x + 'I hate it '
	else:
		x = x + 'I love it '
x = x.replace('it', 'that')
x = x[:len(x) - 5] + 'it'
print(x)


n = int(input())
c = True
pr = 'I hate that'
for i in range(n - 1):
	if c == True:
		if i == n - 2:
			pr += ' ' + 'I love it'
		else:
			pr += ' ' + 'I love that'
		c = False
	else:
		if i == n - 2:
			pr += ' ' + 'I hate it'
		else:
			pr += ' ' + 'I hate that'
		c = True
if n == 1:
	print('I hate it')
else:
	print(pr)


n = int(input())
result = ''
feels = []
for i in range(1, n):
	if i % 2 == 1:
		feels.append('hate')
	else:
		feels.append('love')
for feel in feels:
	result += 'I ' + feel + ' that '
if n % 2 == 1:
	result += 'I hate it'
else:
	result += 'I love it'
print(result)


from itertools import cycle
n = int(input())
for (idx, word) in enumerate(cycle(['I hate', 'I love']), 1):
	print(word, end=' ')
	if idx == n:
		print('it')
		break
	else:
		print('that', end=' ')


a = int(input())
b = ''
r1 = 'I hate that '
r2 = 'I love that '
r3 = 'I hate it'
r4 = 'I love it'
for i in range(1, a + 1):
	if i == a:
		break
	if i % 2 == 1:
		b = b + r1
	if i % 2 == 0:
		b = b + r2
if a % 2 == 1:
	b = b + r3
	print(b)
else:
	b = b + r4
	print(b)


a = int(input())
l = 'I love'
h = 'I hate'
sep = ' that '
res = []
for i in range(a):
	if i & 1 == 0:
		res.append(h)
	else:
		res.append(l)
res = sep.join(res) + ' it'
print(res)


n = int(input())
feeling = ['I']
for i in range(n):
	if i == 0:
		feeling.append('hate')
	elif i % 2 == 1:
		feeling.append('that I love')
	else:
		feeling.append('that I hate')
feeling.append('it')
output = ' '.join(feeling)
print(output)


n = int(input())
a = []
for x in range(1, n + 1):
	if x % 2 != 0:
		if x == n:
			a.append('I hate it')
		else:
			a.append('I hate that ')
	elif x % 2 == 0:
		if x == n:
			a.append('I love it')
		else:
			a.append('I love that ')
for x in range(len(a)):
	print(a[x], end='')


A = int(input())
B = 'I hate'
C = ' it'
D = ' that I love'
E = ' that I hate'
for i in range(1, A):
	if i % 2 != 0:
		B += D
	if i % 2 == 0:
		B += E
print(B + C)


import sys
input = sys.stdin.readline()
while input:
	n = int(input)
	str_result = ''
	for i in range(1, n + 1):
		if i % 2 != 0:
			if i == 1:
				str_result += 'I hate it'
			else:
				str_result = str_result[:-3] + ' that I hate it'
		else:
			str_result = str_result[:-3] + ' that I love it'
	print(str_result)
	input = sys.stdin.readline()


import sys
n = int(sys.stdin.readline())
ans = ''
for level in range(n):
	if level % 2 == 0:
		ans = ans + 'I hate '
	else:
		ans = ans + 'I love '
	if level == n - 1:
		ans = ans + 'it'
	else:
		ans = ans + 'that '
print(ans)


n = int(input())
feel = ['I hate that ' if i % 2 else 'I love that ' for i in range(1, n + 1)]
feeling = ''.join(feel).rstrip()
feeling = feeling[:-4] + 'it'
print(feeling)


result_str = ''
end = 'it'
conjunction = 'that'
n = int(input())
for i in range(1, n + 1):
	if i % 2 != 0:
		result_str += 'I hate'
	else:
		result_str += 'I love'
	if i + 1 != n + 1:
		result_str += ' ' + conjunction + ' '
	else:
		result_str += ' ' + end
print(result_str)


a = int(input())
if a == 1:
	print('I hate it')
else:
	lst = []
	i = 1
	while i <= a:
		if i % 2 == 0:
			lst.append('I love')
		else:
			lst.append('I hate')
		lst.append('that')
		i = i + 1
	out = ''
	for i in range(0, len(lst) - 1):
		out = out + lst[i] + ' '
	out = out + 'it'
	print(out)


def main():
	n = int(input())
	s = 'I hate it'
	s2 = 'I love it'
	for i in range(n):
		if i == n - 1:
			if i % 2 == 0:
				print('{}'.format(s), end='')
			else:
				print('{}'.format(s2), end='')
		elif i % 2 == 0:
			print('I hate that ', end='')
		else:
			print('I love that ', end='')
main()


n = int(input())
feel = ''
hate = True
while n:
	n -= 1
	feel += 'I hate ' if hate else 'I love '
	hate = not hate
	if n:
		feel += 'that '
feel += 'it '
print(feel)


x = int(input())

def hulk(x):
	ans = ''
	i = 0
	while i < x:
		if ans != '':
			ans += ' that '
		ans += 'I hate'
		i += 1
		if i == x:
			break
		ans += ' that I love'
		i += 1
	ans += ' it'
	return ans
print(hulk(x))


n = int(input())
s1 = 'I hate'
s2 = 'I love'
e1 = ' that '
feeling = ''
for i in range(1, n):
	if i % 2 == 0:
		feeling += s2
	else:
		feeling += s1
	feeling += e1
if n % 2 == 0:
	feeling += s2
else:
	feeling += s1
print(feeling + ' it')


def main():
	n = int(input())
	s1 = 'I hate '
	s2 = 'I love '
	s3 = 'it'
	s4 = 'that '
	ans = ''
	for i in range(n):
		if i % 2 == 0:
			ans = ans + s1
		else:
			ans = ans + s2
		if i != n - 1:
			ans = ans + s4
		else:
			ans = ans + s3
	print(ans)
main()


n = input()
n = int(n)
b = ['I hate', 'I love']
ans = b[0]
i = 1
while i < n:
	ans += ' that '
	ans += b[i % 2]
	i += 1
ans += ' it'
print(ans)


n = int(input())
feeling = 'I '

def check_feeling(n):
	return 'love' if n % 2 == 0 else 'hate'
i = 1
while i != n + 1:
	if i == 1:
		feeling += check_feeling(i)
	else:
		feeling += ' that I ' + check_feeling(i)
	i += 1
feeling += ' it'
print(feeling)


a = ['I hate', 'I love'] * 50
n = int(input())
print(*a[:n], sep=' that ', end=' it')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 9
n = int(input())
r = 'I hate'
for i in range(1, n):
	if i % 2 == 1:
		r += ' that I love'
	else:
		r += ' that I hate'
print(r + ' it')


t = int(input())
q = 'I hate'
w = 'I love'
e = 'it'
r = 'that'
i = 0
while i < t:
	if i == t - 1:
		if i % 2 == 0:
			print(q, end=' ')
		elif i % 2 != 0:
			print(w, end=' ')
	elif i % 2 == 0:
		print(q, r, end=' ')
	elif i % 2 != 0:
		print(w, r, end=' ')
	i = i + 1
print(e)


x = input()
x = int(x)
output = ''
counter = 1
while counter < x + 1:
	if counter == x:
		if counter % 2 == 0:
			output += 'I love it'
		else:
			output += 'I hate it'
	elif counter % 2 == 0:
		output += 'I love that '
	else:
		output += 'I hate that '
	counter += 1
print(output)


n = int(input())
str_hate = 'I hate'
str_love = 'I love'
str_end = ' ' + 'it'
str_add = ' ' + 'that' + ' '
str_out = 'I hate'
for i in range(1, n + 1):
	if i != 1:
		str_out += str_add
		if i % 2 != 0:
			str_out += str_hate
		else:
			str_out += str_love
	if i == n:
		str_out += str_end
print(str_out)


def hulk(n):
	n = int(n)
	one = 'I hate'
	two = 'I love'
	conn = ' that '
	end = ' it'
	sen = ''
	for i in range(1, n + 1):
		if (i == 1 or i % 2 != 0) and i != n:
			sen += one + conn
		elif (i == 2 or i % 2 == 0) and i != n:
			sen += two + conn
		elif i == 1 or i % 2 != 0:
			sen += one + end
		elif i == 2 or i % 2 == 0:
			sen += two + end
	return sen
n = input().strip()
print(hulk(n))


n = int(input())
string1 = 'I hate that'
string2 = ' I love that '
ans = ''
count = 0
if n == 1:
	print('I hate it')
else:
	while n != 0:
		if count == 0:
			ans = ans + string1
			count += 1
			n = n - 1
		elif count == 1:
			ans = ans + string2
			n = n - 1
			count = count - 1
	print(ans[:-5] + ' it')


iteracion = int(input())
iter = iteracion
odio = 'I hate'
union = ' that '
amor = 'I love'
fin = ' it'
if iteracion == 1:
	print(odio + fin)
else:
	cantidad = union.join([odio, amor] * int(iteracion / 2))
	if iter % 2 == 1:
		print(cantidad + union + odio + fin)
	else:
		print(cantidad + fin)


g = lambda : map(int, input().split())
n = int(input())
hate = 'I hate'
love = 'I love'
for i in range(n):
	if i % 2 == 0:
		print(hate, end=' ')
	else:
		print(love, end=' ')
	if i < n - 1:
		print('that', end=' ')
print('it')


def main():
	n = int(input())
	hate = 'I hate'
	love = 'I love'
	that = ' that '
	it = ' it'
	ch = ''
	while n > 0:
		if ch != '':
			ch += that
		ch += hate
		n -= 1
		if n == 0:
			break
		ch += that
		ch += love
		n -= 1
	ch += it
	print(ch)
main()


a = int(input())
i = 1
f = ''
while i < a:
	if a == 1:
		f += 'I hate it '
		break
	else:
		f += 'I hate that '
		i += 1
		if i == a:
			break
		f += 'I love that '
		i += 1
if a % 2 == 0:
	f += 'I love it '
else:
	f += 'I hate it '
print(f)


n = int(input())
s = ''
l = [' I hate that', ' I love that']
for i in range(n):
	s += l[i % 2]
s = s[1:len(s) - 4] + 'it'
print(s)


n = int(input())
lis = []
fin = 'I '
fin1 = ''
if n % 2 == 0:
	for i in range(n // 2):
		lis.append('hate')
		lis.append('love')
else:
	for i in range(n // 2):
		lis.append('hate')
		lis.append('love')
	lis.append('hate')
for x in lis:
	fin += x + ' ' + 'that' + ' ' + 'I' + ' '
lis1 = fin.split()
for x in range(0, len(lis1) - 2):
	fin1 += lis1[x] + ' '
print(fin1 + 'it')


n = int(input())
s = ['I hate', 'I love']
t = ''
for i in range(n):
	t += s[i % 2] + ' that '
print(t[0:len(t) - 5] + 'it')


a = int(input())
phrase = []
for i in range(1, a + 1):
	if i % 2 == 0:
		if i == a:
			phrase.append('I')
			phrase.append('love')
			phrase.append('it')
		else:
			phrase.append('I')
			phrase.append('love')
			phrase.append('that')
	elif i == 0 or i == a:
		phrase.append('I')
		phrase.append('hate')
		phrase.append('it')
	else:
		phrase.append('I')
		phrase.append('hate')
		phrase.append('that')
print(' '.join(phrase))


layer = int(input())
feelings = 'I hate '
for i in range(layer - 1):
	if i % 2 == 0:
		feelings += 'that I love '
	if i % 2 != 0:
		feelings += 'that I hate '
final_feelings = feelings + 'it'
print(final_feelings)


angka = int(input())
x = 'I hate '
y = 'I love '
hasil = ''
for i in range(angka):
	if i % 2 == 0:
		hasil += x
		if i + 1 != angka:
			hasil += 'that '
	else:
		hasil += y
		if i + 1 != angka:
			hasil += 'that '
print(hasil, 'it')


def main():
	n = int(input())
	feel = ['hate', 'love']
	tmp = 0
	i = 1
	while i < n:
		print('I ' + feel[tmp] + ' that', end=' ')
		tmp = 1 - tmp
		i += 1
	print('I ' + feel[tmp] + ' it')
main()


print(' '.join((('I hate that', 'I love that')[i % 2] for i in range(int(input()))))[:-4] + 'it')


n = int(input())
result = ''
count = n - 1
if n == 1:
	result = 'I hate it'
while count != 0:
	result = result + 'I hate that '
	count = count - 1
	if count == 0:
		break
	result = result + 'I love that '
	count = count - 1
	if count == 0:
		break
if n % 2 == 0:
	result = result + 'I love it'
if n % 2 == 1 and n != 1:
	result = result + 'I hate it'
print(result)


n = int(input())
U = 'I hate it'
V = 'I hate that I love it'
if n == 1:
	print(U)
elif n == 2:
	print(V)
else:
	W = 'I hate that I love'
	for i in range(3, n + 1):
		if i % 2 == 0:
			W = W + ' that I love'
		else:
			W = W + ' that I hate'
	print(W + ' it')


n = int(input(''))
list1 = []
for i in range(1, n + 1):
	if i % 2 != 0:
		list1.append('I hate')
	else:
		list1.append('I love')
list1.append('it')
l = ' that '.join(list1)
m = l[len(l) - 7:].replace('that', '')
p = l[:len(l) - 7] + m
q = p.replace('  ', ' ')
print(q)


x = int(input())
feelings = ''
for _ in range(x):
	if _ == x - 1:
		if _ % 2 != 0:
			feelings = feelings + 'I love it '
		else:
			feelings = feelings + 'I hate it '
	elif _ % 2 != 0:
		feelings = feelings + 'I love that '
	else:
		feelings = feelings + 'I hate that '
print(feelings)


n = int(input())
i = 0
feelings = ''
while i < n:
	if i + 1 == n:
		prefix = 'it'
	else:
		prefix = 'that'
	if i % 2 == 0:
		feelings += ' I hate ' + prefix
	else:
		feelings += ' I love ' + prefix
	i += 1
print(feelings.strip())


n = int(input())
od = 'I hate '
ev = 'I love '
md = 'that '
res = ''
for i in range(1, n + 1):
	if i == 1:
		res += od
	if i % 2 == 0:
		res = res + md + ev
	if i % 2 != 0 and i > 1:
		res = res + md + od
res += 'it '
print(res)


import sys
import os
t = sys.stdin.readline()
vals = t.split()
init_number = int(vals[0])
text = ''
comment = 'I {} that'
for i in range(init_number):
	if (i + 1) % 2 == 1 and i != init_number - 1:
		text = text + comment.format('hate') + ' '
	elif (i + 1) % 2 == 0 and i != init_number - 1:
		text = text + comment.format('love') + ' '
	elif (i + 1) % 2 == 0 and i == init_number - 1:
		text = text + 'I love it'
	elif (i + 1) % 2 == 1 and i == init_number - 1:
		text = text + 'I hate it'
print(text)


integer = int(input())
count = 1
sentence = ''
while integer != 0:
	if count % 2:
		count += 1
		sentence += 'I hate '
		integer -= 1
		if integer != 0:
			sentence += 'that '
		elif integer == 0:
			sentence += 'it '
	elif not count % 2:
		count += 1
		sentence += 'I love '
		integer -= 1
		if integer != 0:
			sentence += 'that '
		elif integer == 0:
			sentence += 'it '
print(sentence)


t = int(input())
s1 = 'I hate that '
s2 = 'I love that '
s5 = s1 + s2
s3 = 'I hate it '
s4 = 'I love it '
if t == 1:
	print(s3)
elif t == 2:
	print(s1 + s4)
elif t == 3:
	print(s5 + s3)
elif t % 2 == 0:
	print(s5 * int(t / 2 - 1) + s1 + s4)
else:
	print(s5 * int((t - 1) / 2) + s3)


inp = int(input())
s1 = 'I hate'
s2 = 'I love'
s = s1
for i in range(1, inp):
	if i % 2 == 0:
		s = s + ' that ' + s1
	else:
		s = s + ' that ' + s2
s = s + ' it'
print(s)


n = int(input())
feel = 'I hate'
fir = ' that I love'
sec = ' that I hate'
for i in range(1, n):
	if i % 2 == 0:
		feel += sec
	else:
		feel += fir
feel += ' it'
print(feel)


import sys
t = int(sys.stdin.readline())
s1 = 'I hate that '
s2 = 'I love that '
s3 = 'I hate it '
s4 = 'I love it '
s = ''
for i in range(0, t):
	if i == t - 1:
		if i % 2 == 0:
			s = s + s3
		else:
			s = s + s4
	elif i % 2 == 0:
		s = s + s1
	else:
		s = s + s2
print(s)


n = int(input())
odd = 'I hate that '
even = 'I love that '
lastodd = 'I hate it'
lasteven = 'I love it'
c = ''
flag = 0
for i in range(n - 1):
	if flag == 0:
		c += odd
		flag = 1
	else:
		c += even
		flag = 0
if n % 2 == 0:
	c += lasteven
else:
	c += lastodd
print(c)


a = int(input())
texts = ['I hate that ', 'I love that ', 'I hate it', 'I love it']
index = []
for i in range(a):
	index.append(i % 2)
index[-1] += 2
feels = []
for i in range(a):
	feels.append(texts[index[i]])
string = ''.join(feels)
print(string)


n = int(input())
t = 4
a = ''
for _ in range(n):
	if t == 4:
		a += 'I hate '
		t = 0
	elif t % 2 == 0:
		a += 'that I love '
		t = 1
	else:
		a += 'that I hate '
		t = 0
a += 'it'
print(a)


n = int(input())
c = ''
if n == 1:
	c = 'I hate it'
else:
	d = n + 1
	for i in range(1, d):
		if i != n:
			if i % 2 == 0:
				c += ' I love that'
			else:
				c += ' I hate that'
		elif i % 2 == 0:
			c += ' I love it'
		else:
			c += ' I hate it'
print(c)


n = int(input())
feeling = ''
for i in range(n):
	if i % 2 == 0:
		feeling += 'I hate'
	else:
		feeling += 'I love'
	feeling += ' that '
feeling = feeling[0:-6]
feeling += ' it'
print(feeling)


n = int(input())
l = 'I love '
h = 'I hate '
i = 'it'
main = ''
b = 1
while b <= n:
	if b % 2 == 1:
		main = main + h
	else:
		main = main + l
	if b != n:
		main = main + 'that '
	b += 1
print(main + i)


j = input()
j = int(j)
o = 'that I love that I hate '
e = 'that I hate that I love '
if j == 1:
	print('I hate it')
elif j == 2:
	print('I hate that I love it')
elif j % 2 == 1:
	o *= int((j - 1) / 2)
	print('I hate', o, 'it')
elif j % 2 == 0:
	e *= int((j - 2) / 2)
	print('I hate that I love', e, 'it')


n = int(input())
l = 'I hate'
if n == 1:
	l = l + ' it'
	print(l)
	exit(0)
for i in range(1, n + 1):
	if i == n:
		l = l + ' it'
		break
	elif i % 2 != 0:
		l = l + ' that I love'
	else:
		l = l + ' that I hate'
print(l)


n = int(input())
string = ''
for i in range(n):
	if i % 2 == 0:
		layer = 'I hate that '
	else:
		layer = 'I love that '
	if i == n - 1:
		layer = layer[:-5]
	string = string + layer
print('{}it'.format(string))


import os
import sys
from io import BytesIO, IOBase
import math

def main():
	n = int(input())
	last = 'it'
	first = 'that'
	s1 = 'I hate '
	s2 = 'I love '
	chk = 1
	for x in range(n - 1):
		if chk == 1:
			print(s1 + first, end=' ')
			chk = 0
		else:
			print(s2 + first, end=' ')
			chk = 1
	if chk == 1:
		print(s1 + last)
	else:
		print(s2 + last)
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
main()


def hulk(n):
	curr = ''
	for i in range(1, n + 1):
		if i % 2 == 1:
			curr += ' that I hate'
		else:
			curr += ' that I love'
	curr += ' it'
	curr = curr[6:]
	return curr

def main():
	n = int(input())
	print(hulk(n))
main()


n = input()
n = int(n)
str1 = 'I hate it'
str2 = 'I love it'
str3 = 'that '
str_finale = ''
for x in range(n):
	if x % 2 == 0:
		if str_finale != '':
			a = str_finale[0:len(str_finale) - 2]
			a = a + str3
			str_finale = a + str1
		else:
			str_finale = str1
	else:
		a = str_finale[0:len(str_finale) - 2]
		a = a + str3
		str_finale = a + str2
print(str_finale)


shate = 'I hate that '
slove = 'I love that '
shatelast = 'I hate it'
slovelast = 'I love it'
s = ''
n = input()
n = int(n)
for i in range(1, n + 1):
	if i == n and i % 2 != 0:
		s += shatelast
	elif i == n and i % 2 == 0:
		s += slovelast
	elif i % 2 != 0:
		s += shate
	else:
		s += slove
print(s)


odd = 'I hate that '
even = 'I love that '
xstr = ''
n = int(input())
if n == 1:
	print('I hate it')
else:
	for i in range(1, n + 1):
		if i % 2 == 0:
			xstr += even
		else:
			xstr += odd
	xstr += 'it'
	lxstr = xstr.split()
	lxstr.pop(-2)
	print(' '.join(lxstr))


n = int(input())
a = 'I hate it '
b = 'I hate that I love it '
c = 'I hate that I love that '
if n == 1:
	print(a[:-1])
elif n == 2:
	print(b[:-1])
else:
	answer = ''
	for _ in range(int(n / 2) - 1):
		answer += c
	if n % 2 == 1:
		answer += c + a
	else:
		answer += b
	print(answer[:-1])


no = int(input())
for i in range(no):
	print('I ', end='')
	if i == no - 1:
		if i & 1 == 0:
			print('hate ', end='')
		else:
			print('love ', end='')
		print('it')
		continue
	if i & 1 == 0:
		print('hate ', end='')
	else:
		print('love ', end='')
	print('that ', end='')


n = int(input())
nech = ' that I hate'
chet = ' that I love'
konec = ' it'
s = 'I hate'
for i in range(2, n + 1):
	if i % 2 != 0:
		s = s + nech
	elif i % 2 == 0:
		s = s + chet
print(s + konec)


t = int(input())
H = 'I hate '
L = 'I love '
T = 'that '
I = 'it '
for test in range(0, t - 1):
	if test % 2 == 0:
		print(H + T, end='')
	else:
		print(L + T, end='')
if t % 2 == 0:
	print(L + I)
else:
	print(H + I)


def hulk(num):
	str1 = 'I hate'
	str2 = 'I love'
	end1 = 'it'
	end2 = 'that'
	output = ''
	for i in range(num):
		if i != num - 1:
			if i == 0:
				output += str1 + ' ' + end2
			elif i % 2 != 0:
				output += ' ' + str2 + ' ' + end2
			else:
				output += ' ' + str1 + ' ' + end2
		elif i % 2 != 0:
			output += ' ' + str2 + ' ' + end1
		else:
			output += ' ' + str1 + ' ' + end1
	return output
num = int(input())
print(hulk(num))


def main():
	n = int(input())
	s = 'I hate '
	if n % 2 == 1:
		s += 'that I love that I hate ' * (n // 2)
	else:
		s += 'that I love that I hate ' * (n // 2 - 1)
		s += 'that I love '
	s += 'it'
	print(s)
main()


n = int(input())
h = 'I hate '
a = 'that '
l = 'I love '
i = 'it'
st = ''
for j in range(1, n + 1):
	if j == 1:
		st = st + h
	elif j % 2 == 0:
		st = st + a + l
	elif j % 2 != 0:
		st = st + a + h
print(st + i)


n = int(input())
i = 1
s = 'I hate '
while i < n:
	if not i % 2:
		s += 'that I hate '
	else:
		s += 'that I love '
	i += 1
s += 'it'
print(s)


try:
	x = int(input())
	p = 1
	if x == 1:
		print('I hate it')
	else:
		while p <= x - 1:
			if p % 2 == 1:
				print('I hate that', end=' ')
			else:
				print('I love that', end=' ')
			p += 1
		if p % 2 == 1:
			print('I hate it', end=' ')
		else:
			print('I love it', end=' ')
except:
	pass


t = input
p = print
r = range
n = int(t())
s1 = 'I hate it'
s2 = 'I love it'
s3 = 'I hate that'
s4 = 'I love that'
ans = [''] * n
for i in r(n - 1):
	if i & 1:
		ans[i] = s4
	else:
		ans[i] = s3
p(' '.join(ans) + (s1 if n & 1 == 1 else s2))


def hulk_feelings(n):
	sentence = 'I '
	for i in range(1, n + 1):
		if i % 2 != 0:
			sentence = sentence + 'hate '
		if i % 2 == 0:
			sentence = sentence + 'love '
		if n + 1 - i == 1:
			sentence = sentence + 'it'
		elif n + 1 - i != 1:
			sentence = sentence + 'that I '
	return sentence
n = input()
print(hulk_feelings(int(n)))


def insert_in_bw(str, x):
	st = ''
	for i in range(2, x + 1):
		if i % 2 == 0:
			st += 'that I love '
		else:
			st += 'that I hate '
	return str[:7] + st + str[7:]
n = int(input())
str = 'I hate it'
if n > 1:
	str = insert_in_bw(str, n)
print(str)


def hulk(n):
	odd_end = 'I hate it'
	even_end = ' I love it'
	if n == 1:
		return odd_end
	output = ''
	i = 0
	str = 'hate'
	prev = None
	while i < n:
		if prev == 'hate':
			str = 'love'
		else:
			str = 'hate'
		output += ' I ' + str + ' that'
		prev = str
		i += 1
	return output
n = int(input())
output = hulk(n).lstrip()
output = output.split()
output[-1] = 'it'
output = ' '.join((c for c in output))
print(output)


no = int(input())
a = ['I hate', 'I love'] * no
print(' that '.join(a[:no]), 'it')


n = int(input())
answer = ['I hate that']
for i in range(n - 1):
	if i % 2 == 0:
		answer.append('I love that')
	else:
		answer.append('I hate that')
ans = ' '.join(answer)
tmp = ans.split()
tmp.reverse()
tmp.remove('that')
tmp.reverse()
tmp.append('it')
ans = ' '.join(tmp)
print(ans)


def solve():
	n = int(input())
	s = ''
	for i in range(n):
		if i > 0:
			s += ' that '
		if i % 2 == 0:
			s += 'I hate'
		else:
			s += 'I love'
	s += ' it'
	print(s)
solve()


n = int(input())
arr = ['I hate ', 'I love ']
flag = True
for i in range(n - 1):
	if flag:
		print(arr[0], end='that ')
	else:
		print(arr[1], end='that ')
	flag = not flag
if flag:
	print(arr[0], end='it')
else:
	print(arr[1], end='it')


x = int(input())
hat = 'I hate'
lov = 'I love'
it = 'it'
that = 'that'
if x == 1:
	print(hat, it)
else:
	for y in range(x):
		if y % 2 == 0 and y + 1 != x:
			print(hat, that, end=' ')
		elif y % 2 != 0 and y + 1 != x:
			print(lov, that, end=' ')
		elif y % 2 == 0:
			print(hat, it, end=' ')
		else:
			print(lov, it, end=' ')


n = int(input())
hate = 'I hate '
that = 'that '
love = 'I love '
it = 'it'
string = str()
out_string = [hate, love]
conjunction = [that, '']
i = 0
while n:
	string += out_string[i] + conjunction[n == 1]
	n -= 1
	i = (i + 1) % 2
print(string + it)


n = int(input())
ans = ''
for i in range(n):
	if ans == '':
		exp = 'I hate' if i % 2 == 0 else 'I love'
	else:
		exp = ' that I hate' if i % 2 == 0 else ' that I love'
	ans += exp
ans += ' it'
print(ans)


def main():
	n = int(input())
	love = 'love'
	hate = 'hate'
	print('I {} it'.format(' that I '.join((love if i & 1 else hate for i in range(n)))))
main()


n = int(input())
n -= 1
output = 'I hate'
mode = 0
if n % 2 == 1:
	mode = 1
while n != 0:
	if mode == 1:
		if n % 2 == 1:
			output = output + ' that I love'
		else:
			output = output + ' that I hate'
	elif mode == 0:
		if n % 2 == 0:
			output = output + ' that I love'
		else:
			output = output + ' that I hate'
	n -= 1
else:
	print(output + ' it')


num_feelings = int(input())
hate = 'I hate'
love = 'I love'
connector = 'that'
ending = 'it'
flag = 0
feelings = ''
for i in range(0, num_feelings):
	if flag == 0:
		feelings += hate
		flag = 1
	else:
		feelings += love
		flag = 0
	if i != num_feelings - 1:
		feelings += ' ' + connector + ' '
feelings += ' ' + ending
print(feelings)


def go(i, n):
	if i == n:
		return
	elif i & 1:
		print('I hate that', end=' ')
		go(i + 1, n)
	else:
		print('I love that', end=' ')
		go(i + 1, n)
n = int(input())
go(1, n)
print('I hate it') if n & 1 else print('I love it')


n = int(input())
list1 = []
m = n
if n % 2 == 0:
	for i in range(n):
		if n % 2 == 0 and n != 1:
			list1.append('I hate that')
		elif n % 2 != 0 and n != 1:
			list1.append('I love that')
		elif n % 2 != 0 and n == 1:
			list1.append('I love it')
		n = n - 1
	x = ' '.join(list1)
	print(x)
elif n % 2 != 0:
	for i in range(n):
		if n % 2 != 0 and n != 1:
			list1.append('I hate that')
		elif n % 2 == 0 and n != 1:
			list1.append('I love that')
		elif n % 2 != 0 and n == 1:
			list1.append('I hate it')
		n = n - 1
	x = ' '.join(list1)
	print(x)


def main():
	n = int(input())
	answer = []
	s1 = 'I'
	s2 = 'that'
	s3 = 'it'
	for i in range(1, n):
		answer.append(s1)
		if i & 1:
			answer.append('hate')
			pass
		else:
			answer.append('love')
			pass
		answer.append(s2)
	answer.append(s1)
	if n & 1:
		answer.append('hate')
		pass
	else:
		answer.append('love')
		pass
	answer.append(s3)
	s = ' '.join(answer)
	print(s)
	pass
main()


def judge_mood(nNum):
	m_list = ['I hate', 'I love']
	nNum2 = int(nNum / 2)
	if nNum == 1:
		print(m_list[0], 'it')
	elif nNum % 2 == 0:
		for i in range(nNum2 - 1):
			print(m_list[0], end=' ')
			print('that', end=' ')
			print(m_list[1], end=' ')
			print('that', end=' ')
		print(m_list[0], end=' ')
		print('that', end=' ')
		print(m_list[1], end=' ')
		print('it')
	else:
		for i in range(nNum2):
			print(m_list[0], end=' ')
			print('that', end=' ')
			print(m_list[1], end=' ')
			print('that', end=' ')
		print(m_list[0], end=' ')
		print('it')
nNum = int(input())
judge_mood(nNum)


print(f"{' that '.join(['I hate' if str(i)[-1] in '02468' else 'I love' for i in range(int(input()))])} it")


def main():
	n = int(input())
	s = ''
	hate = True
	while n >= 1:
		if len(s) > 0:
			s += 'that '
		if hate:
			s += 'I hate '
		else:
			s += 'I love '
		hate = not hate
		n -= 1
	s += 'it'
	print(s)
main()


talk = ['I hate ', 'I love ']
n = int(input())
i = 0
while i < n - 1:
	print(talk[i % 2] + 'that ', end='')
	i = i + 1
print(talk[n % 2 - 1] + 'it')


import sys
it = (int(x) for x in sys.stdin.read().split())
n = next(it)
r = 'I hate'
for i in range(2, n + 1):
	if i % 2 == 0:
		r += ' that I love'
	else:
		r += ' that I hate'
r += ' it'
print(r)


x = n = int(input())
s = ''
while n > 1:
	if (x - n) % 2 == 0:
		s = s + 'I hate that'
	else:
		s += 'I love that'
	n -= 1
if x % 2 == 0:
	s += 'I love it'
else:
	s = s + 'I hate it'
print(s.replace('tI', 't I'))


n = int(input())
a = ['I hate', 'that', 'I love', 'it']
i = 1
y = n
x = n - 1
if n == 1:
	print('I hate it')
else:
	print(a[0], end=' ')
	while n != 1:
		print(a[i], end=' ')
		if (y - x) % 2 == 1:
			print(a[i + 1], end=' ')
		else:
			print(a[i - 1], end=' ')
		n -= 1
		x = x - 1
	print(a[3], end=' ')


a = int(input())
n = ['I hate', 'I love'] * 50
print(' that '.join(n[:a]), 'it')


val = input()
n = int(val)
x = ' I hate '
y = ' I love '
z = ' that '
a = 'it '
string = ''
temp = 1
while temp <= n:
	if temp == 1:
		string = x
	elif temp % 2 == 0:
		string = string + z + y
	else:
		string = string + z + x
	temp = temp + 1
print(string + a)


n = int(input())
t = 'I hate'
k = 'I love'
f = ''
i = 1
while i <= n:
	if i % 2 == 0:
		f = f + ' that ' + k
	elif i == 1:
		f = f + t
	else:
		f = f + ' that ' + t
	i = i + 1
print(f + ' it')


def check(n):
	w1 = ['I hate', 'I love']
	w2 = ['that', 'it']
	sen = ''
	curr = 0
	for i in range(n - 1):
		sen += w1[curr] + ' ' + w2[0] + ' '
		if curr == 0:
			curr = 1
		else:
			curr = 0
	sen += w1[curr] + ' ' + w2[1] + ' '
	return sen
n = int(input())
print(check(n))


def output(n):
	words = ''
	length = n + 1
	for x in range(1, length):
		if x % 2 != 0 and x + 1 != length:
			words += 'I hate that '
		elif x % 2 != 0 and x + 1 == length:
			words += 'I hate it '
		elif x % 2 == 0 and x + 1 != length:
			words += 'I love that '
		else:
			words += 'I love it '
	return words
n = int(input())
print(output(n))


n = int(input())
answer = []
for i in range(n):
	if i % 2 == 1:
		answer.append('I love')
	if i % 2 == 0:
		answer.append('I hate')
result = ' that '.join(answer)
print(f'{result} it')


k = int(input())
s1 = 'I hate that '
s2 = 'I love that '
s3 = ''
for i in range(k):
	if i % 2 == 0:
		s3 += s1
	else:
		s3 += s2
s3 = s3[:-5]
s3 += 'it'
print(s3)


n = int(input())
evil = 'I hate'
love = 'I love'
p = 'that'
k = 'it'
s = ''
for x in range(1, n + 1):
	if x % 2 == 0:
		if x == n:
			s = s + love + ' ' + k + ' '
			break
		s = s + love + ' ' + p + ' '
	else:
		if x == n:
			s = s + evil + ' ' + k + ' '
			break
		s = s + evil + ' ' + p + ' '
print(s)


a = 'I hate it'
b = 'I love it'
c = 'I hate that'
d = 'I love that'
n = int(input())
ost = n % 2
hate = love = 0
while n > 0:
	if n - 1 == 0:
		if ost == 1:
			print(a)
		else:
			print(b)
	elif hate == love:
		print(c, end=' ')
		hate += 1
	else:
		print(d, end=' ')
		love += 1
	n -= 1


n = int(input())
ans = ''
for current in range(1, n + 1):
	if current % 2 == 1:
		ans += 'I hate '
	else:
		ans += 'I love '
	if current == n:
		ans += 'it'
	else:
		ans += 'that '
print(ans)


n = list(range(1, int(input()) + 1))
s = ''
for i in range(len(n)):
	if n[i] % 2 != 0:
		s += 'I hate '
	else:
		s += 'I love '
	if i < len(n) - 1:
		s += 'that '
	else:
		s += 'it'
print(s)


n = int(input())
phrase = []
for i in range(n):
	if i % 2 == 0:
		x = 'hate'
	else:
		x = 'love'
	if i != n - 1:
		phrase.append(f'I {x} that')
	else:
		phrase.append(f'I {x} it')
print(' '.join(map(str, phrase)))


n = int(input())
c = 1
k = ''
for i in range(n):
	if c == 1:
		k += 'I hate that '
		c = 0
	elif c == 0:
		k += 'I love that '
		c = 1
k = k[:len(k) - 5] + 'it'
print(k)


n = int(input())

def f(n):
	x = 'that I love '
	y = 'that I hate '
	z = 'it'
	out = 'I hate '
	for i in range(1, n):
		if i % 2 == 0:
			out += y
		else:
			out += x
	out += z
	return out
print(f(n))


import sys

def main():
	n = int(input())
	i = 1
	j = 1
	for x in range(n):
		if j > 2:
			j = 1
		if j == 1:
			if x != n - 1:
				sys.stdout.write('I hate')
				j += 1
			else:
				sys.stdout.write('I hate it')
				j += 1
			if x < n - 1:
				sys.stdout.write(' that ')
		else:
			if x == n - 1:
				sys.stdout.write('I love it')
				j += 1
			else:
				sys.stdout.write('I love')
				j += 1
			if x < n - 1:
				sys.stdout.write(' that ')
main()


n = int(input())
hate = 'I hate '
love = 'I love '
preps = ['that ', 'it']
final_s = ''
for i in range(1, n + 1):
	if i == n:
		end = preps[1]
	else:
		end = preps[0]
	if i % 2 == 0:
		sent = love
	else:
		sent = hate
	final_s = final_s + sent + end
print(final_s)


a = int(input())
Even = False
if a % 2 == 0:
	Even = True
while a > 0:
	a -= 1
	if a == 0 and Even:
		print('I love it', end=' ')
	elif a == 0 and (not Even):
		print('I hate it', end=' ')
	elif Even:
		if a % 2 != 0:
			print('I hate that', end=' ')
		else:
			print('I love that', end=' ')
	elif a % 2 == 0:
		print('I hate that', end=' ')
	else:
		print('I love that', end=' ')
print('\n')


n = input()
n = float(n)
s = []
i = 0
while i < n:
	if (i + 1) % 2 == 0:
		s.append('I love')
	else:
		s.append('I hate')
	if n - i == 1:
		s.append(' it')
	else:
		s.append(' that ')
	i += 1
str = ''
s = str.join(s)
print(s)


def hulk(n, S):
	if n == 1:
		S = 'I hate '
		return S
	elif n == 2:
		S = 'I hate that I love '
		return S
	else:
		if n % 2 == 0:
			t = 2
		else:
			t = 1
		S += hulk(n - t, S) + 'that ' + hulk(t, S)
		return S
	return S
print(hulk(int(input()), '') + 'it')


n = int(input())
s = ''
h = 'I hate that'
l = 'I love that'
hend = 'I hate it'
lend = 'I love it'
for i in range(1, n):
	if i % 2 == 1:
		s += h + ' '
	else:
		s += l + ' '
if n % 2 == 1:
	s += hend
else:
	s += lend
print(s)


def getNumber():
	n = int(input())
	return n

def getSentence(n):
	message = ['I love', 'I hate']
	m12 = [' it', ' that']
	result = ''
	concatenation = ''
	m = ''
	for i in range(n):
		if i % 2 == 0:
			concatenation = message[1]
		else:
			concatenation = message[0]
		if i + 1 == n:
			m = m12[0]
		else:
			m = m12[1]
		result += concatenation + m + ' '
	return result
n = getNumber()
print(getSentence(n))


from sys import stdin
inp = stdin.readline
phrases = ['I hate ', 'I love ']
i = 0
n = int(inp())
while n > 0:
	n -= 1
	print(phrases[i], end='')
	i = (i + 1) % 2
	if n != 0:
		print('that ', end='')
print('it')


_1 = '236a'
_2 = '339a'
_3 = '266a'
_4 = '96a'
_5 = '236a'
_6 = '281a'
_7 = '546a'
_8 = '116a'
_9 = '977a'
_10 = '266b'
_11 = '110a'
_12 = '41a'
_13 = '734a'
_14 = '133a'
_15 = '467a'
_16 = '158a'
_17 = '677a'
_18 = '580a'
_19 = '344a'
_20 = '1030a'
n = int(input())
n1 = 0
if n % 2 == 0:
	n1 = n / 2 - 1
	n1 = int(n1)
else:
	n1 = (n + 1) / 2 - 1
	n1 = int(n1)
h = 'I hate '
t = 'that '
l = 'I love '
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n == 3:
	print('I hate that I love that I hate it')
elif n > 3:
	if n % 2 == 0:
		print((h + t + (l + t)) * n1 + (h + t + (l + 'it')))
	else:
		print((h + t + (l + t)) * n1 + (h + 'it'))


number = int(input())
one = 'I hate'
two = 'I love'
result = ''
first = True
second = False
for i in range(1, number + 1):
	if first is True and i is 1:
		result += one
		first = False
		second = True
	elif first is True and i is not 1:
		result += ' that '
		result += one
		first = False
		second = True
	elif second is True:
		result += ' that '
		result += two
		second = False
		first = True
result += ' it'
print(result)


statment1 = 'I hate that I love that'
statment2 = 'I hate it '
statment3 = 'I hate that I love it'
statment4 = 'I hate that I love that'
n = int(input(''))
if n == 1:
	print('I hate it', end=' ')
if n == 2:
	print('I hate that I love it', end=' ')
if n % 2 == 0 and n > 2:
	while n > 2:
		print(statment4, end=' ')
		n -= 2
	print(statment3, end=' ')
if n % 2 != 0 and n > 1:
	while n > 1:
		print(statment1, end=' ')
		n -= 2
	print(statment2)


n = int(input())
list1 = ['I hate']
for m in range(1, n):
	if m % 2 == 1:
		list1.append('that I love')
	else:
		list1.append('that I hate')
print(' '.join(list1) + ' it')


n = int(input())
hate = 'I hate it'
love = 'I love it'
hate_that = 'I hate that'
love_that = 'I love that'
s = []
if n == 1:
	print(hate)
else:
	for i in range(1, n):
		if i % 2 == 1:
			s.append(hate_that)
		else:
			s.append(love_that)
	if n % 2 == 1:
		s.append(hate)
	else:
		s.append(love)
print(' '.join(s))


num = int(input())
feelings = str()
i = 2
while i < num + 2:
	if i % 2 == 0:
		feelings += 'I hate that '
		i += 1
	else:
		feelings += 'I love that '
		i += 1
x = feelings.split()
x.pop()
x.append('it')
print(' '.join(x))


n = int(input())
a = n
b = []
count = 1
while a > 1:
	if count % 2 == 0:
		b.append('I love that')
		a -= 1
	elif count % 2 == 1:
		b.append('I hate that')
		a -= 1
	count += 1
if a == 1:
	if count % 2 == 0:
		b.append('I love it')
		a -= 1
	elif count % 2 == 1:
		b.append('I hate it')
		a -= 1
print(' '.join(b))


n = int(input())
ch = ''
a = int(n / 2)
for i in range(a):
	ch = ch + 'I hate that I love that '
if n % 2 == 1:
	ch = ch + 'I hate it'
else:
	l = len(ch)
	ch = ch[:l - 6]
	ch = ch + ' it'
print(ch)


a = int(input())
b = 'I hate'
c = 'I love'
result = ''
for i in range(a):
	if i % 2 == 0:
		result += b
	else:
		result += c
	if i == a - 1:
		result += ' it'
		break
	if i >= 0:
		result += ' that '
print(result)


x = int(input())
a = 'I hate'
b = 'I love'
mensaje = ''
k = 1
while k <= x - 1:
	if k % 2 != 0:
		mensaje = mensaje + a + ' ' + 'that '
	else:
		mensaje = mensaje + b + ' ' + 'that '
	k += 1
if x % 2 != 0:
	mensaje = mensaje + a + ' ' + 'it'
else:
	mensaje = mensaje + b + ' ' + 'it'
print(mensaje)


num = int(input())
sentence = []
for i in range(num):
	if i % 2 != 0:
		sentence.append('I love')
	else:
		sentence.append('I hate')
	if i == num - 1:
		sentence.append('it')
	else:
		sentence.append('that')
print(' '.join(sentence))


n = int(input())

def hulk(num):
	hate = 'I hate'
	love = 'I love'
	res = ''
	for i in range(1, num + 1):
		if i == 1:
			res += hate
		elif i % 2 == 0:
			res += ' that ' + love
		else:
			res += ' that ' + hate
	return res
print(hulk(n) + ' it')


x = int(input())
hate = 'I hate '
love = 'I love '
res = ''
count = 0
for i in range(x - 1):
	if count == 0:
		print(hate, 'that ', end='')
		count = 1
	else:
		print(love, 'that ', end='')
		count = 0
if count == 0:
	print(hate, 'it', end='')
else:
	print(love, 'it', end='')


n = int(input())
s1 = 'I '
s2 = 'it'
tt = ''
w = []
if n == 1:
	print('I hate it')
else:
	for i in range(n):
		x = i % 2
		if x == 0:
			t = 'hate that I '
		else:
			t = 'love that I '
		w.append(t)
	if w[-1] == 'love that I ':
		w[-1] = 'love '
	else:
		w[-1] = 'hate '
	for i in range(n):
		tt = tt + w[i]
		al = s1 + tt + s2
	print(al)


a = 'I hate it'
b = 'I love it'
string = ''
aa = int(input())
for i in range(1, aa + 1):
	if i % 2 == 1:
		if i == 1:
			string += a
		else:
			string = string.replace('it', 'that ')
			string += a
	else:
		string = string.replace('it', 'that ')
		string = string + b
print(string)


n = input()
count = 1
expression = ''
feelings = ''
while count <= int(n):
	if count % 2 == 1:
		expression = 'I hate it'
	else:
		expression = 'I love it'
	feelings = feelings + ' ' + expression
	if count != 1:
		list_for_changing = feelings.split()
		index = list_for_changing.index('it')
		list_for_changing[index] = 'that'
		feelings = ' '.join(list_for_changing)
	count += 1
print(feelings)


num = int(input())
while num > 0:
	if num > 2:
		print('I hate that I love that', end=' ')
	elif num == 2:
		print('I hate that I love it', end=' ')
	else:
		print('I hate it')
	num -= 2


__author__ = 'Alexander'
import sys
hate = 'I hate '
love = 'I love '
end = 'it'
middle = 'that '
height = int(sys.stdin.readline().strip())
out = ''
for i in range(height):
	if i != 0:
		out += middle
	if i % 2 == 0:
		out += hate
	else:
		out += love
out += end
sys.stdout.write(out)


n = int(input())
print_hate_love = 'I hate '

def hate_love(n, var1, var2, var3, var4, print_hate_love):
	for i in range(n - 1):
		if i % 2 == 0:
			print_hate_love += var2
		else:
			print_hate_love += var3
	print_hate_love += var4
	return print_hate_love
var1 = 'I hate '
var2 = 'that I love '
var3 = 'that I hate '
var4 = 'it'
if n == 1:
	print(var1 + ' ' + var4)
else:
	print(hate_love(n, var1, var2, var3, var4, print_hate_love))


a = int(input())
txt = ''
added = False
if a == 1:
	txt = 'I hate '
else:
	for x in range(a):
		if x % 2 == 0:
			txt += 'I hate '
		elif x % 2 != 0:
			txt += 'I love '
		if x != a - 1:
			txt += 'that '
txt += 'it'
print(txt)


n = int(input())
s1 = 'I hate it'
s2 = 'I love it'
s3 = 'I hate that'
s4 = 'I love that'
for i in range((n - 1) // 4):
	print(s3, end=' ')
	print(s4, end=' ')
	print(s3, end=' ')
	print(s4, end=' ')
if n % 4 == 1:
	print(s1)
elif n % 4 == 2:
	print(s3, end=' ')
	print(s2)
elif n % 4 == 3:
	print(s3, end=' ')
	print(s4, end=' ')
	print(s1)
else:
	print(s3, end=' ')
	print(s4, end=' ')
	print(s3, end=' ')
	print(s2)


a = int(input())
d = str()
if a == 1:
	print('I hate it')
else:
	for i in range(1, a + 1):
		if i % 2 != 0:
			d += 'I hate that '
		if i % 2 == 0:
			d += 'I love that '
	print(d[:-6] + ' it')


number = int(input())
if number % 2 == 1:
	print('I hate that I love that ' * int(number / 2), 'I hate it')
elif number % 2 == 0:
	print('I hate that' + ' I love that I hate that' * int(number / 2 - 1) + ' I love it')


a = int(input())
b = ''
z = True
if a == 1:
	print('I hate it')
else:
	for i in range(0, a):
		if i < a - 1:
			if z:
				b += 'I hate that '
				z = not z
			else:
				b += 'I love that '
				z = not z
		elif z:
			b += 'I hate it'
		else:
			b += 'I love it'
print(b)


def inception(number):
	temp = ''
	for i in range(number):
		if i % 2 == 0:
			temp = temp + 'that ' + 'I hate '
		else:
			temp = temp + 'that ' + 'I love '
	return temp[5:] + ' it'
number = int(input())
print(inception(number))


n = int(input())
love = False
k = 1
while k <= n:
	if k == n:
		if love:
			print('I love it')
		else:
			print('I hate it')
	elif k % 2 == 0:
		print('I love that ', end='')
		love = False
	else:
		print('I hate that ', end='')
		love = True
	k += 1


n = int(input())
curr = True
l = []
for i in range(n):
	if i + 1 == n:
		form = 'it'
	else:
		form = 'that'
	if curr:
		l.append(f'I hate {form}')
	else:
		l.append(f'I love {form}')
	curr = not curr
s = ' '
print(s.join(l))


def main():
	n = int(input().strip())
	str1 = 'I hate'
	str2 = 'I love'
	print(str1, end='')
	if n > 1:
		for number in range(2, n + 1):
			if not number % 2:
				print(f' that {str2}', end='')
				continue
			print(f' that {str1}', end='')
	print(' it')
main()


n = int(input())
s = 'I hate that'
s1 = 'I love that'
k = 0
for i in range(n - 1):
	if k == n - 1:
		break
	print(s, end=' ')
	k += 1
	if k == n - 1:
		break
	print(s1, end=' ')
	k += 1
if n % 2 == 0:
	print('I love it')
else:
	print('I hate it')


import sys
import math
import bisect
from sys import stdin, stdout
from math import gcd, floor, sqrt, log
from collections import defaultdict as dd
from bisect import bisect_left as bl, bisect_right as br
sys.setrecursionlimit(100000000)
ii = lambda : int(input())
si = lambda : input()
jn = lambda x, l: x.join(map(str, l))
sl = lambda : list(map(str, input().strip()))
mi = lambda : map(int, input().split())
mif = lambda : map(float, input().split())
lii = lambda : list(map(int, input().split()))
ceil = lambda x: int(x) if x == int(x) else int(x) + 1
ceildiv = lambda x, d: x // d if x % d == 0 else x // d + 1
flush = lambda : stdout.flush()
stdstr = lambda : stdin.readline()
stdint = lambda : int(stdin.readline())
stdpr = lambda x: stdout.write(str(x))
mod = 1000000007
n = ii()
sol = ''
for i in range(n):
	if i % 2 == 0:
		sol += 'I hate '
	else:
		sol += 'I love '
	if i != n - 1:
		sol += 'that '
	else:
		sol += 'it'
print(sol)


n = int(input())
a = 'that I hate it'
b = 'that I love it'
q = 'I hate it'
for i in range(0, n):
	if i == 0:
		pass
	elif i % 2 == 0:
		q = q.strip('it') + a
	elif i % 2 != 0:
		q = q.strip('it') + b
print(q)


import sys
n = int(sys.stdin.readline())
if n == 1:
	print('I hate it')
if n > 2 and n % 2 != 0:
	sys.stdout.write('I hate that I love that ' * (n // 2) + 'I hate it')
if n % 2 == 0 and n >= 2:
	sys.stdout.write('I hate that I love that ' * (n // 2 - 1) + 'I hate that I love it')


n = int(input())
h = ' I hate it'
l = ' I hate that I love it'
oh = ' I hate'
ol = ' I love'
lt = ' I love that'
ht = ' I hate that'
it = ' it '
cadena = ''
for i in range(n + 1):
	if n > 3:
		if i == n - 1:
			if n % 2 == 0:
				cadena += ol
			else:
				cadena += oh
			cadena += it
		elif i % 2 == 0 and i != n:
			cadena += ht
		elif i % 1 == 0 and i != n:
			cadena += lt
	elif i == 1:
		cadena = h
	elif i == 2:
		cadena = l
	elif i == 3:
		cadena = ' I hate that I love that I hate it'
print(cadena[1:])


i = int(input()) + 1
o = ''
for k in range(1, i):
	if k == len(range(1, i)) and k % 2 == 1:
		o += 'I hate it'
	elif k == len(range(1, i)) and k % 2 == 0:
		o += 'I love it'
	elif k % 2 == 1:
		o += 'I hate that '
	else:
		o += 'I love that '
print(o)


from collections import deque, Counter, OrderedDict
from heapq import nsmallest, nlargest
from math import ceil, floor, log, log2, sqrt, gcd, factorial, pow

def binNumber(n, size=4):
	return bin(n)[2:].zfill(size)

def iar():
	return list(map(int, input().split()))

def ini():
	return int(input())

def isp():
	return map(int, input().split())

def sti():
	return str(input())

def par(a):
	return ' '.join(list(map(str, a)))

def tdl(outerListSize, innerListSize, defaultValue=0):
	return [[defaultValue] * innerListSize for i in range(outerListSize)]

class pair:

	def __init__(self, f, s):
		self.fi = f
		self.se = s

	def __lt__(self, other):
		return (self.fi, self.se) < (other.fi, other.se)

def show2d(a):
	for i in a:
		for j in i:
			print(j, end=' ')
		print()
s = 'I hate '
n = ini()
c = 1
while True:
	n -= 1
	if n > 0:
		s += 'that '
		if c == 1:
			s += 'I love '
			c = 0
		else:
			s += 'I hate '
			c = 1
	else:
		s += 'it'
		break
print(s)


t = int(input())
a = 'I hate it'
b = 'I love it'
counter = 0
string = ''
for i in range(t):
	if t == 1:
		print(a)
	elif counter == 0 and i == 0:
		string += a
		counter = 1
	elif counter == 0:
		string = string[:-2] + 'that ' + a
		counter = 1
	else:
		string = string[:-2] + 'that ' + b
		counter = 0
print(string)


sol = ''
n = int(input())
if n == 1:
	print('I hate it')
else:
	for i in range(1, n + 1):
		if i == n:
			if n % 2:
				sol += 'I hate it'
			else:
				sol += 'I love it'
		elif i % 2 == 1:
			sol += 'I hate that '
		else:
			sol += 'I love that '
	print(sol)


n = int(input())
a = ''
for i in range(n):
	a = a.replace('it', 'that')
	if i % 2 != 0:
		a += 'I love it '
	else:
		a += 'I hate it '
print(a[:len(a) - 1])


number = int(input())
odd = 'I hate that '
even = 'I love that '
both = odd + even
sets_of_both = number // 2
left_over = number % 2
if sets_of_both != 0:
	print((both * sets_of_both + odd * left_over)[:-5] + 'it')
else:
	print((odd * left_over)[:-5] + 'it')


n = int(input())
p = 'I hate that I love it'
s = 'I hate that I love that '
if n == 1:
	print('I hate it')
elif n % 2 == 0:
	m = n // 2
	print(s * (m - 1) + p)
else:
	print(s * (n // 2) + 'I hate it')


x = int(input())
z = ''
for i in range(x):
	if i % 2 == 0:
		z += 'I hate '
		z += 'that '
	else:
		z += 'I love '
		z += 'that '
z = list(z)
z.pop()
z.pop()
z.pop()
z.pop()
z.pop()
z.append('i')
z.append('t')
z.append(' ')
k = ''.join(map(str, z))
print(k)


n = int(input())
countodd = 0
counteven = 0
for i in range(1, n + 1):
	if i % 2 != 0:
		if i > 2:
			print('that', end=' ')
		print('I hate', end=' ')
	if i % 2 == 0:
		if i > 1:
			print('that', end=' ')
		print('I love', end=' ')
print('it')


n = int(input())
m = 0
s = []
k = n - 1
for i in range(n):
	s.append('I ')
	if m == 0:
		s.append('hate ')
	else:
		s.append('love ')
	if i == k:
		s.append('it')
	else:
		s.append('that ')
	m ^= 1
print(''.join(s))


def main():
	n = int(input())
	if n == 1:
		res = 'I hate it'
	elif n == 2:
		res = 'I hate that I love it'
	else:
		res = 'I hate that I love that ' * ((n - 1) // 2)
		if n % 2 == 0:
			res += 'I hate that I love it'
		else:
			res += 'I hate it'
	print(res)
main()


def main():
	n = int(input())
	if n == 1:
		print('I hate it')
	else:
		his_feeling = []
		for i in range(1, n):
			if i % 2 != 0:
				his_feeling.append('I hate that')
			else:
				his_feeling.append('I love that')
		if n % 2 != 0:
			his_feeling.append('I hate it')
		else:
			his_feeling.append('I love it')
		print(' '.join(his_feeling))
main()


def main():
	stri = ''
	hate = 'hate'
	love = 'love'
	last = 'I {} it'
	nlast = 'I {} that'
	n = int(input())
	for i in range(1, n + 1):
		if i == n and i % 2 != 0:
			stri += ' ' + last.format(hate)
		elif i % 2 != 0:
			stri += ' ' + nlast.format(hate)
		elif i == n and i % 2 == 0:
			stri += ' ' + last.format(love)
		else:
			stri += ' ' + nlast.format(love)
	print(stri.strip())
main()


n = int(input(''))
if n == 0:
	print('Wrong input')
first_layer = 'that I hate '
second_layer = 'that I love '
message = 'I hate '
for i in range(0, n):
	if i % 2 != 0:
		message += second_layer
	if i % 2 == 0 and i != 0:
		message += first_layer
message += 'it'
print(message)


result = ''
count = int(input())
for n in range(1, count + 1):
	if n == 1:
		result = result + 'I hate it'
	elif n % 2 == 0:
		result = result.replace('it', 'that I love it')
	else:
		result = result.replace('it', 'that I hate it')
print(result)


def process(n, c=0):
	if c == n:
		return 'it'
	if c == 0:
		return 'I hate ' + process(n, c + 1)
	elif c % 2 == 0:
		return 'that I hate ' + process(n, c + 1)
	elif c % 2 == 1:
		return 'that I love ' + process(n, c + 1)
print(process(int(input())))


a = 'I hate it'
b = 'I hate that I love it'
c = 'I hate that I love that '
n = int(input())
x = (n - 1) // 2
print(c * x + [b, a][n % 2])


t = int(input())
p = 'I hate that '
q = 'I love that '
w = 'I hate it '
v = 'I love it '
r = ''
for i in range(t):
	if i % 2 == 0 and i < t - 1:
		r = r + p
	elif i % 2 == 1 and i < t - 1:
		r = r + q
	elif i % 2 == 0 and i == t - 1:
		r = r + w
	else:
		r = r + v
print(r.strip())


n = int(input())
if n == 1:
	print('I hate it')
elif n % 2 == 0 and n != 1:
	w = 'I love it'
	L = []
	a = 'I hate that '
	b = 'I love that '
	for i in range(n - 1):
		if i % 2 == 0 and i != 1:
			L.append(a)
		else:
			L.append(b)
	L.append(w)
	print(''.join(L))
elif n % 2 != 0:
	w = 'I hate it'
	L = []
	a = 'I hate that '
	b = 'I love that '
	for i in range(n - 1):
		if i % 2 == 0 and i != 1:
			L.append(a)
		else:
			L.append(b)
	L.append(w)
	print(''.join(L))


from sys import stdin, stdout
n = int(stdin.readline())
s = ''
for i in range(1, n + 1):
	s += 'I hate ' if i & 1 == 1 else 'I love '
	s += 'it' if i == n else 'that '
stdout.write(s)


import sys
n = int(input())
arr = ['I hate']
for i in range(0, n):
	last_element = arr[len(arr) - 1]
	if i == 0:
		continue
	if last_element in ('I hate', 'that I hate'):
		arr.append('that I love')
	else:
		arr.append('that I hate')
arr.append('it')
print(' '.join(arr))


layers = int(input())
it = 0
hulk = ''
while it < layers:
	if it % 2 == 0:
		hulk += 'I hate '
	else:
		hulk += 'I love '
	it += 1
	if it < layers:
		hulk += 'that '
hulk += 'it'
print(hulk)


no = int(input())
x = ['I hate', 'I love'] * no
print(' that '.join(x[:no]) + ' it')


x = int(input())
out = ''
for i in range(x):
	if (i + 1) % 2 == 1:
		out = ''.join((out, 'I hate '))
	else:
		out = ''.join((out, 'I love '))
	if i + 2 <= x:
		out = ''.join((out, 'that '))
print(out + 'it')


x = input()
a = int(x)
c = ''
b = 'I hate '
d = 'it'
e = 'that I love '
f = 'that I hate '
for o in range(a):
	if o > 0:
		if o % 2 == 0:
			c = c + f
		else:
			c = c + e
print(b + c + d)


import sys
cin = sys.stdin
ls = [l.rstrip() for l in cin.readlines()]
n = int(ls[0])
res = []
for i in range(n):
	res.append(['I hate', 'I love'][i % 2])
print(' that '.join(res) + ' it')


n = int(input())
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
elif n == 3:
	print('I hate that I love that I hate it')
elif n == 4:
	print('I hate that I love that I hate that I love it')
elif n % 2 == 0:
	t = (n - 2) // 2
	print('I hate that I love that ' * t + 'I hate that I love it')
else:
	t = (n - 1) // 2
	print('I hate that I love that ' * t + 'I hate it')


n = int(input())
out = 'I '
for i in range(n):
	if i % 2 == 0:
		out += 'hate '
	else:
		out += 'love '
	if i < n - 1:
		out += 'that I '
out += 'it'
print(out, flush=True)


n = int(input())
h = 'I hate'
l = 'I love'
a = [l if i % 2 != 0 else h for i in range(n)]
print(' that '.join(a) + ' it')


def main():
	lim = int(input())
	print('I hate ', end='')
	for x in range(1, lim):
		if x % 2 == 1:
			print('that I love ', end='')
		else:
			print('that I hate ', end='')
	print('it', end='')
main()


b = 'I love'
a = 'I hate'
printer = []
for i in range(int(input())):
	if (i + 1) % 2:
		printer.append(a)
	else:
		printer.append(b)
print(' that '.join(printer) + ' it')


n = int(input())
x = 'I hate '
y = 'I love '
connector = 'that '
msg = ''
for z in range(1, n + 1):
	if z % 2 == 1:
		msg = msg + str(x)
	else:
		msg = msg + str(y)
	if z != n:
		msg = msg + str(connector)
msg = msg + ' it'
print(msg)


n = int(input())
a = 'I hate it'
b = 'that I love it'
c = 'that I hate it'
n1 = list(range(1, n + 1))
if n == 1:
	print(a)
else:
	s = a
	for i in range(len(n1) - 1):
		if n1[0] % 2 == 1:
			s = s[:-2]
			s = s + b
			n1.reverse()
			n1.pop()
			n1.reverse()
		elif n1[0] % 2 == 0:
			s = s[:-2]
			s = s + c
			n1.reverse()
			n1.pop()
			n1.reverse()
	print(s)


def main(n):
	quote = []
	for i in range(n):
		if i % 2 == 0:
			quote.append('I hate')
		else:
			quote.append('I love')
	return ' that '.join(quote) + ' it'
n = int(input())
print(main(n))


n = int(input(''))
t = 'I hate it'

def texto(j):
	if j % 2 == 0:
		return 'I love it'
	else:
		return 'I hate it'
k = 2
while k <= n:
	t = t[0:len(t) - 2] + 'that ' + texto(k)
	k += 1
print(t)


feeling = 'I hate '
States = ['that I love ', 'that I hate ']
for i in range(int(input()) - 1):
	feeling += States[i % 2]
feeling += 'it'
print(feeling)


n = int(input())
flag = 0
sentence = []
if n == 1:
	sentence.append('I hate it')
else:
	for i in range(n):
		if flag == 0:
			sentence.append('I hate that ')
			flag = 1
		else:
			sentence.append('I love that ')
			flag = 0
	if flag == 1:
		sentence.pop(n - 1)
		sentence.append('I hate it')
	else:
		sentence.pop(n - 1)
		sentence.append('I love it')
print(''.join(sentence))


def main(n):
	l1 = 'I hate '
	l2 = 'I love '
	sol = ''
	for i in range(n):
		if i == 0:
			sol = l1
		elif i % 2 == 0:
			sol = sol + 'that ' + l1
		else:
			sol = sol + 'that ' + l2
	return sol + 'it'
try:
	while True:
		n = int(input())
		print(main(n))
except:
	pass


import sys
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
n = int(input())
k = 0
ans = ''
while k != n:
	k = k + 1
	if k == 1:
		ans += 'I hate '
	elif k % 2 == 0:
		ans += 'that I love '
	else:
		ans += 'that I hate '
ans += 'it'
print(ans)


def hulk(n):
	words = []
	for k in range(n - 1):
		words.append('I love that' if k % 2 else 'I hate that')
	words.append('I hate it' if n % 2 else 'I love it')
	return ' '.join(words)

def main():
	n = int(input())
	result = hulk(n)
	print(result)
main()


n = int(input())
l = []
for i in range(1, n + 1):
	if i == n:
		if i % 2 == 0:
			l.append('I love it')
		else:
			l.append('I hate it')
	elif i % 2 == 0:
		l.append('I love that ')
	else:
		l.append('I hate that ')
str = ''
for i in range(len(l)):
	str = str + l[i]
print(str)


number = int(input())
print(*(['I hate', 'I love'] * number)[:number], sep=' that ', end=' it')


s0 = 'I hate '
s1 = 'I love '
n = int(input())
for i in range(n):
	if i % 2 == 0:
		print(s0, end='')
	else:
		print(s1, end='')
	if i < n - 1:
		print('that ', end='')
print('it')


a = int(input())
i = 1
k = ''
lst = []
f = ''
e = 0
while i <= a:
	if i % 2 != 0:
		k = k + ' ' + 'I hate it'
	elif i % 2 == 0:
		k = k + ' ' + 'I love it'
	i = i + 1
m = k.replace('it', 'that')
d = m.lstrip(' ')
p = list(d)
y = len(p)
for e in range(y - 4):
	f = f + p[e]
print(f + 'it')


inp = int(input())
Feelings = 'I hate '
k = 1
while k < inp:
	if k % 2 == 0:
		Feelings += 'that I hate '
	else:
		Feelings += 'that I love '
	k += 1
print(Feelings + 'it')


th = 'that '
hf = 'I hate that I love '.split(th)

def fl(n):
	v = [hf[x % 2] for x in range(n)]
	return th.join(v) + 'it'
print(fl(int(input())))


n = int(input())
string_1 = 'I hate '
string_2 = 'that I love '
string_3 = 'that I hate '
string_4 = 'it'
final_string = 'I hate '
for i in range(1, n):
	if i % 2 != 0:
		final_string = final_string + string_2
	else:
		final_string = final_string + string_3
final_string = final_string + string_4
print(final_string)


n = int(input())

def hulk(n):
	f = ['I hate', 'I love', ' it', ' that ']
	(z, p) = (f[0], n)
	while n > 1:
		z += f[3]
		if p % 2 == 0:
			if n % 2 == 0:
				z += f[1]
			else:
				z += f[0]
		elif n % 2 == 0:
			z += f[0]
		else:
			z += f[1]
		n -= 1
	return z + f[2]
print(hulk(n))


n = int(input()) - 1
a = 'I hate it'
s = 0
while s < n:
	if s % 2 == 0:
		a = a.replace('it', 'that I love it', 1)
	else:
		a = a.replace('it', 'that I hate it', 1)
	s += 1
print(a)


def main():
	n = int(input())
	messages = ['I hate', 'I love']
	result = messages[0]
	for i in range(1, n):
		result += ' that ' + messages[bool(i % 2)]
	print(result + ' it')
main()


inp = int(input(''))
word = ''
tog = 1
while inp:
	word = 'it' if inp == 1 else 'that'
	if tog:
		print('I hate {}'.format(word), end=' ')
		tog = 0
	else:
		print('I love {}'.format(word), end=' ')
		tog = 1
	inp -= 1


a = int(input())
s = 'I hate '
ss = 'that '
sss = 'I love '
ssss = 'it '
for i in range(1, a + 1):
	if i % 2:
		print(s, end='')
	else:
		print(sss, end='')
	if i == a:
		print(ssss, end='')
	else:
		print(ss, end='')


n = int(input())
words = ['I hate', 'I love', 'it']
current = 0
feelings = []
for _ in range(n):
	feelings.append(words[current])
	current = current ^ 1
print(' that '.join(feelings) + ' it')


n = int(input())
print(' that '.join(['I hate', 'I love'] * (n // 2) + ['I hate'] * (n % 2)) + ' it')


n = int(input())
l = 'I hate '
r = 'I love '
t = 'that '
i = 'it'
if n == 1:
	print(l + i)
else:
	it = n // 2
	e = n % 2
	for z in range(it):
		if z == 0:
			print(l + t + r, end='')
		else:
			print(t + l + t + r, end='')
	if e == 1:
		print(t + l + i)
	else:
		print(i)


md = {'o': 'I hate', 'e': 'I love', 'f': 'that', 'l': 'it'}
n = int(input())
for i in range(1, n + 1):
	if i != n:
		if i % 2 != 0:
			print(md['o'], md['f'], end=' ')
		else:
			print(md['e'], md['f'], end=' ')
	elif i % 2 != 0:
		print(md['o'], md['l'], end=' ')
	else:
		print(md['e'], md['l'], end=' ')


n = int(input())
a = []
flag = 'f'
for i in range(1, n + 1):
	if i % 2 != 0:
		a.append('I hate')
	if i % 2 != 0:
		a.append('I love')
for i in range(n):
	if n == 1:
		print('I hate it')
		flag = 'n'
		break
	elif i == n - 1:
		print(a[i], end='')
	else:
		print(a[i] + ' that ', end='')
if flag == 'f':
	print(' it', end='')


n = int(input())
r = ' '.join(map(lambda x: 'I love that' if x % 2 else 'I hate that', range(n - 1)))
r += ' I hate it' if n % 2 else ' I love it'
print(r.strip())


n = int(input())
count = n
em = True
print('I ', end='')
if n == 1:
	print('hate ', end='')
else:
	for i in range(n):
		if em:
			if count == 1:
				print('hate ', end='')
			else:
				print('hate that I ', end='')
		elif count == 1:
			print('love ', end='')
		else:
			print('love that I ', end='')
		em = not em
		count -= 1
print('it')


n = int(input())
one = 'I hate that '
two = 'I love that '
re = ''
z = 1
for i in range(n, 0, -1):
	if z % 2 != 0:
		re += one
	else:
		re += two
	if i == 1:
		re = list(re)
		del re[-5:]
	z += 1
print(''.join(re) + 'it')


a = int(input())
if a == 1:
	print('I hate it')
elif a == 2:
	print('I hate that I love it')
elif a == 3:
	print('I hate that I love that I hate it')
elif a % 2 == 1:
	b = 'I hate that I love that ' * (a // 2) + 'I hate it'
	print(b)
else:
	b = 'I hate that I love that ' * (a // 2 - 1) + 'I hate that I love it'
	print(b)


n = int(input())
words = []
for i in range(1, n + 1):
	if i % 2 != 0 and i == n:
		words.append('I hate it')
	elif i % 2 == 0 and i == n:
		words.append('I love it')
	elif i % 2 != 0:
		words.append('I hate that')
	elif i % 2 == 0:
		words.append('I love that')
print(*words)


n = int(input())
a = 'I hate that'
b = 'it'
c = ' I love that '
z = ''
d = 1
e = 0
while 1:
	if d <= n and d % 2 != 0:
		z += a
		d += 1
	if d <= n and d % 2 == 0:
		z += c
		d += 1
	if d > n:
		break
if len(z) % 2 != 0:
	print(z[:len(z) - 4] + 'it')
else:
	print(z[:len(z) - 5] + 'it')


n = int(input())
h = 'I hate'
l = 'I love'
t = ' that '
str = ''
for i in range(n):
	if i % 2 == 0:
		str += h
	else:
		str += l
	str += t
lastThat = str.rfind(t)
print(str[:lastThat] + ' it')


n = int(input())
temp1 = 'I hate that '
temp2 = 'I love that '
temp3 = 'that'
if n == 1:
	print('I hate it')
elif n == 2:
	print('I hate that I love it')
else:
	a = ''
	for i in range((n - 1) // 2):
		a += temp1 + temp2
	if n % 2 == 0:
		a += 'I hate that I love it'
	else:
		a += 'I hate it'
	print(a)


n = int(input())
hate = 'I hate it'
love = ' I love it '
output = ''
if n == 1:
	output += hate
else:
	for i in range(1, n + 1):
		if i % 2 == 1 and i != n:
			output += hate.replace('it', 'that')
		if i % 2 == 0 and i != n:
			output += love.replace('it', 'that')
		if i % 2 == 1 and i == n:
			output += hate
		if i % 2 == 0 and i == n:
			output += love
print(output.lstrip())


f_input = int(input())
list = []
mood = 'love'
statring_phrase = 'I hate that '
str1 = ''
if f_input == 1:
	print('I hate it')
elif f_input == 2:
	print('I hate that I love it')
else:
	for n in range(f_input - 2):
		if mood == 'love':
			list.append('I love that ')
			mood = 'hate'
		else:
			list.append('I hate that ')
			mood = 'love'
	if mood == 'love':
		list.append('I love it')
	else:
		list.append('I hate it')
	statring_phrase = statring_phrase + str1.join(list)
	print(statring_phrase)


n = int(input())
p = str()
for i in range(1, n):
	if i % 2 == 1:
		x = 'I hate that '
	else:
		x = 'I love that '
	p = p + x
if n % 2 == 0:
	y = 'I love it'
else:
	y = 'I hate it'
w = p + y
print(w)


import math
from collections import *
import sys
from functools import reduce

def get_ints():
	return map(int, input().strip().split())

def get_list():
	return list(get_ints())

def getlistofstring():
	return list(input().strip().split())

def printxsp(*args):
	return print(*args, end='')

def printsp(*args):
	return print(*args, end=' ')
UGLYMOD = int(1000000000.0) + 7
SEXYMOD = 998244353
MAXN = int(100000.0)
n = int(input())
print(*['I love' if i % 2 else 'I hate' for i in range(n)], sep=' that ', end=' it')


n = int(input())
main = 'I hate '
odd = 'that I hate '
even = 'that I love '
res = ''
for i in range(1, n + 1):
	if i == 1:
		res = main
	elif i % 2 == 0:
		res = res + even
	else:
		res = res + odd
res = res + 'it'
print(res)


x = int(input())
s = []
for i in range(x):
	if i % 2 == 0:
		s.append('I hate ')
		s.append('that ')
	else:
		s.append('I love ')
		s.append('that ')
del s[-1]
s.append('it')
for e in s:
	print(e, end='')


n = int(input())
if n == 1:
	a = 'I hate it'
	print(a)
elif n % 2 == 0:
	a = 'I hate that'
	b = ' I love that '
	z = ' I love it'
	print((n // 2 - 1) * (a + b) + a + z)
elif n % 2 == 1:
	a = 'I hate that'
	b = ' I love that '
	z = ' I hate it'
	print(n // 2 * (a + b) + z)