The humidex is a measure used by Canadian meteorologists to describe the combined effect of heat and humidity. Unlike the heat index used in the United States, which is based on relative humidity, the humidex is based on the dew point.
When the temperature is 30°C and the dew point is 15°C, the humidex is 34. The humidex is a dimensionless number, but its value approximates a felt temperature in °C. If the temperature stays at 30°C while the dew point rises to 25°C, the humidex rises to 42.3.
The humidex is computed as follows:
humidex = temperature + h
h = (0.5555) * (e - 10.0)
e = 6.11 * exp[5417.7530 * ((1 / 273.16) - (1 / (dewpoint + 273.16)))]
where exp(x) is 2.718281828 raised to the power x.
Given any two of the three values — temperature, dew point, and humidex — write a program that computes the third.
You may assume that in every input the temperature, the dew point, and the humidex are all between −100°C and 100°C.
The input consists of several lines. Every line except the last contains four items separated by spaces: a letter, a number, a second letter, and a second number. Each letter states the meaning of the number that follows it and is one of:
T — temperatureD — dew pointH — humidexThe two letters on a line identify which two of the three quantities are given. The last line of the input is the single letter E.
For every input line except the last, print one line of the form:
T number D number H number
where the three numbers are the temperature, the dew point, and the humidex. Each value must be rounded to the nearest tenth of a degree and printed with exactly one digit after the decimal point. All temperatures are in degrees Celsius.