Celebrity Jeopardy

Time limit1sMemory limit128 MB

Summary
Given an equation of the form variable = value, output that same equation unchanged, preserving exact spacing.
Level

Easy2 of 10

Topics
String, Implementation
Solved
No attempts yet

Problem

It is hard to construct a problem that is so easy everyone will get it, yet still difficult enough to be worthy of some respect. Usually we err on one side or the other. How simple can a problem really be?

Here, as in Celebrity Jeopardy, questions and answers are a bit confused, and because the participants are celebrities there is a real need to make the challenges simple. Your program needs to prepare a question to be solved --- an equation to be solved --- given the answer. Specifically, you have to write a program that, given the answer, finds the simplest possible equation to be solved, considering all possible equations that use the standard mathematical symbols in the usual manner. In this context 'simplest' can be defined unambiguously in several different ways that all lead to the same path of resolution. For now, find the equation whose transformation into the desired answer requires the least effort.

For example, given the answer X=2X = 2, you might create the equation 9−X=79 - X = 7. Alternatively you could build the system X>0X > 0; X2=4X^2 = 4. These may not be the simplest possible equations. Solving these mind-scratchers might be hard for a celebrity.

Input

Each input line contains a solution in the form <variable> = <value>.

Output

For each input line, print the simplest system of equations which would lead to the provided solution, respecting the use of space exactly as in the input.

Examples1

  1. Example 1

    Input
    Y = 3
    X=9
    
    Expected output
    Y = 3
    X=9