The water problem

Accountant at the lawfirm have a habit of maintaining handwritten ledger , thogh he is a wizard in using spreadsheet and accountingsoftware. His little brother oblirated some of the accounting entries while playing with water gun
Given input with the erased enteries shown as WATER.
Write a program to replace the enteries with the correct values.
Note:- Neither the value on LHS nor the RHS can be greater than integer's max value or smaller than integer's min value
Example 1
INPUT
567*282
15WATER4
OUTPUT
989

Comments (0)