Signed Difficulty

AtCoder
IDabc216_a
Time2000ms
Memory256MB
Difficulty
You are given a real number $X.Y$, where $Y$ is a single digit. Print the following: (quotes for clarity) * $X$\-, if $0 \leq Y \leq 2$; * $X$, if $3 \leq Y \leq 6$; * $X$+, if $7 \leq Y \leq 9$. ## Constraints * $1 \leq X \leq 15$ * $0 \leq Y \leq 9$ * $X$ and $Y$ are integers. ## Input Input is given from Standard Input in the following format: $X.Y$ [samples]
Samples
Input #1
15.8
Output #1
15+

Here, printing `15 +` will not be accepted: do not print a space between $X$ and `+`, or between $X$ and `-`.
Input #2
1.0
Output #2
1-

You will not get inputs such as `1.00` and `1`.
Input #3
12.5
Output #3
12
API Response (JSON)
{
  "problem": {
    "name": "Signed Difficulty",
    "description": {
      "content": "You are given a real number $X.Y$, where $Y$ is a single digit. Print the following: (quotes for clarity) *   $X$\\-, if $0 \\leq Y \\leq 2$; *   $X$, if $3 \\leq Y \\leq 6$; *   $X$+, if $7 \\leq Y \\leq 9",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc216_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a real number $X.Y$, where $Y$ is a single digit.\nPrint the following: (quotes for clarity)\n\n*   $X$\\-, if $0 \\leq Y \\leq 2$;\n*   $X$, if $3 \\leq Y \\leq 6$;\n*   $X$+, if $7 \\leq Y \\leq 9...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments