CF705A.Hulk

入门

通过率:0%

时间限制:1.00s

内存限制:256MB

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

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.

布鲁斯·班纳博士非常讨厌他的敌人(就像其他人一样)。众所周知,当他变成无敌浩克时,几乎说不出话来。因此,他请你帮忙表达他的情绪。

浩克非常喜欢《盗梦空间》,而正如该电影一样,他的情绪也非常复杂,共有 nn 层。第一层是“憎恨”,第二层是“喜爱”,第三层是“憎恨”,依此类推……

例如,若 n=1n = 1,则他的情绪表达为 “I hate it”;若 n=2n = 2,则为 “I hate that I love it”;若 n=3n = 3,则为 “I hate that I love that I hate it”,以此类推。

请帮助班纳博士。

输入格式

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

输入仅包含一行,一个整数 nn(1≤n≤1001 \leq n \leq 100)——表示爱与恨的层数。

输出格式

Print Dr.Banner's feeling in one line.

在一行中输出Dr. Banner的情绪。

输入输出样例

  • 输入#1

    1

    输出#1

    I hate it
  • 输入#2

    2

    输出#2

    I hate that I love it
  • 输入#3

    3

    输出#3

    I hate that I love that I hate it

输入解题思路,AI测评打分。不知道怎么写?

首页