#abc216a. A - Signed Difficulty

A - Signed Difficulty

Score : 100100 points

问题描述

你将得到一个实数 X.YX.Y,其中 YY 是一个单个数字。

请按以下规则打印结果(括号内内容仅用于清晰说明):

  • 0Y20 \leq Y \leq 2,则打印 X\color{red} X-
  • 3Y63 \leq Y \leq 6,则打印 X\color{green}X
  • 7Y97 \leq Y \leq 9,则打印 X+\color{blue} X+

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

You are given a real number X.YX.Y, where YY is a single digit.

Print the following: (quotes for clarity)

  • XX-, if 0Y20 \leq Y \leq 2;
  • XX, if 3Y63 \leq Y \leq 6;
  • XX+, if 7Y97 \leq Y \leq 9.

Constraints

  • 1X151 \leq X \leq 15
  • 0Y90 \leq Y \leq 9
  • XX and YY are integers.

Input

Input is given from Standard Input in the following format:

X.YX.Y

Output

Print the answer.

Sample Input 1

15.8

Sample Output 1

15+

Here, printing 15 + will not be accepted: do not print a space between XX and +, or between XX and -.

Sample Input 2

1.0

Sample Output 2

1-

You will not get inputs such as 1.00 and 1.

Sample Input 3

12.5

Sample Output 3

12

update @ 2024/3/10 09:34:26