Nasty Virus 

Our programmers have been recently experiencing a strange phenomenon. Some old FORTRAN programs that have been working for years suddenly stopped working!! A close inspection of the situation revealed the existence of a nasty virus in our computer. The virus wakes up every night, and adds random lines, some of them valid FORTRAN statements, to all FORTRAN programs. (The existing lines are not changed.) Furthermore, it was discovered that:

You are to write a program that will read one corrupted FORTRAN program and restores the program to its original state.

Fortunately, the original FORTRAN programs compute values of certain functions by using ONLY assignment statements where the right-hand side expression of each assignment statement is an expression over the operators: +, *, /, - and operands {a, b, ... y, z, 0, 1, ... 9}.

Furthermore, our programs contained NO USELESS assignment statements (an assignment to a variable, v, is useless if the value of v is not consequently used in the program) and the last assignment statement of the program computed the value of the desired function.

Also, our smart programmers always start their program by a line of comment, "Cn", where n is the number of lines (not counting the comment line itself) contained in the program.

Input and Output

The input consists of one possible corrupted FORTRAN program containing only assignment statement as described above.

The output, consists of the corrupted FORTRAN program in its original state.

Sample Input

C5
      x=5+6
      a=x+7
      LLWWLLWLL
      d=x+7
      if (x-a)10,3,2
      c=x+b
      e=2*x
      a=x*7
      kljhkjh kjhkjhk kjh
      y=x*a+c+d

Sample Output

C5
      x=5+6
      a=x+7
      d=x+7
      c=x+b
      y=x*a+c+d