You are writing a paper for the Beta Astronomy Physics Conference about your recent discovery on grey holes. One of your collaborators has performed a huge number of measurements, which you would like to analyse in order to draw some conclusions. The only problem is: the data is measured in a wide variety of units, and to your disgust, they appear to use a mix of the imperial and metric systems. To simplify your analysis, you need to convert all these measurements into a different unit.
The input consists of:
1 <unit> = <value> <unit>".<value> <unit> to <unit>".In these formats, "<value>" is a floating-point number v (0.001≤v≤1000, with at most 9 digits after the decimal point) and "<unit>" is a string of at most 20 English lowercase letters (a-z). A unit in a query is guaranteed to be defined in at least one unit conversion equation. Every unit can be converted into every other unit in at most one way.
For every query, output the value of the requested unit, or "impossible" if the query cannot be answered.
Your answers should have a relative error of at most 10−6.