P24179 [AtCoder] Signed Difficulty
入门
题目描述

Problem Statement

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$.

Input

Input is given from Standard Input in the following format:
X.Y

Output

Print the answer.

Constraints

  • $1 \leq X \leq 15$
  • $0 \leq Y \leq 9$
  • X and Y are integers.

Sample Input 1

15.8

Sample Output 1

15+

Here, printing 15 + will not be accepted: do not print a space between X and +, or between X 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

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
15.8
样例输出
15+