This page is still under construction.

Parts of this page are still being built. What you see may change.

Sign of Operation

Time limit1sMemory limit128 MB

Summary
Choose the operator among +, -, and * that gives the largest value for a and b, and print the expression or NIE on a tie.
Level

Easy1 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

You are given two integers aa and bb. Insert one of the operators +, -, or * between them so that the value of the resulting expression is as large as possible. If that largest value can be reached by more than one operator, print NIE instead.

Input

A single line contains two integers aa and bb (−104≤a,b≤104-10^4 \le a, b \le 10^4).

Output

Print the expression that yields the largest value, in the form a<operator>b=result, on one line. Wrap a negative operand in parentheses (for example (-5)). Do not put the result in parentheses. If more than one operator produces the largest value, print NIE instead.

Examples3

  1. Example 1

    Input
    6 -5
    
    Expected output
    6-(-5)=11
    
  2. Example 2

    Input
    0 0
    
    Expected output
    NIE
    
  3. Example 3

    Input
    -2 -3
    
    Expected output
    (-2)*(-3)=6