Hitachi String

AtCoder
IDhitachi2020_a
Time2000ms
Memory256MB
Difficulty
A Hitachi string is a concatenation of one or more copies of the string `hi`. For example, `hi` and `hihi` are Hitachi strings, while `ha` and `hii` are not. Given a string $S$, determine whether $S$ is a Hitachi string. ## Constraints * The length of $S$ is between $1$ and $10$ (inclusive). * $S$ is a string consisting of lowercase English letters. ## Input Input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
hihi
Output #1
Yes

`hihi` is the concatenation of two copies of `hi`, so it is a Hitachi string.
Input #2
hi
Output #2
Yes
Input #3
ha
Output #3
No
API Response (JSON)
{
  "problem": {
    "name": "Hitachi String",
    "description": {
      "content": "A Hitachi string is a concatenation of one or more copies of the string `hi`. For example, `hi` and `hihi` are Hitachi strings, while `ha` and `hii` are not. Given a string $S$, determine whether $S$ ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "hitachi2020_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "A Hitachi string is a concatenation of one or more copies of the string `hi`.\nFor example, `hi` and `hihi` are Hitachi strings, while `ha` and `hii` are not.\nGiven a string $S$, determine whether $S$ ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments