#C8582. Evaluate Equations
Evaluate Equations
Evaluate Equations
In this problem, you are given a series of equations in the format \( variable = integer \). Each equation assigns an integer value to a variable. If a variable appears more than once, only its last assignment is kept. The output should list each variable's final value in the order of their first appearance. For example, if \( x \) is first assigned 10 and later updated to 7, the output should show \( x = 7 \) maintaining the order in which \( x \) originally appeared.
inputFormat
The first line of input contains an integer \( n \) representing the number of equations. Each of the following \( n \) lines contains an equation in the form "variable = integer".
outputFormat
Output the final state of each variable on separate lines in the format "variable = integer", following the order of their first appearance in the input.
## sample1
x = 10
x = 10
</p>