2390: Boiling Water

Memory Limit:128 MB Time Limit:1.000 S
Creator:
Submit:8 Solved:5

Description

At sea level, atmospheric pressure is 100 kPa and water begins to boil at 100◦C. As you go above sea level, atmospheric pressure decreases, and water boils at lower temperatures. As you go below sea level, atmospheric pressure increases, and water boils at higher temperatures. 
A formula relating atmospheric pressure to the temperature at which water begins to boil is P = 5 × B − 400where P is atmospheric pressure measured in kPa, and B is the temperature at which water begins to boil measured in ◦C.Given the temperature at which water begins to boil, determine atmospheric pressure. Also determine if you are below sea level, at sea level, or above sea level. Note that the science of this problem is generally correct but the values of 100◦C and 100 kPa are approximate and the formula is a simplification of the exact relationship between water’s boiling point and atmospheric pressure.
在海平面上,大气压为100 kPa,水开始在100℃时沸腾。当你上升到海平面以上时,大气压减小,水在更低的温度下沸腾。当你下降到海平面以下时,大气压增加,水在更高的温度下沸腾。
有一个公式描述了大气压和水开始沸腾的温度之间的关系: P = 5 * B - 400;
其中,P是以kPa计量的大气压,B是水开始沸腾的温度,以℃计量。 给定水开始沸腾的温度,确定大气压。同时确定你是在海平面以下、海平面上,还是海平面以上。 
注意,这个问题的科学基础总体上是正确的,但100℃和100 kPa的数值是近似的,公式是水的沸点和大气压之间确切关系的简化。

Input

The input is one line containing an integer B where B ≥ 80 and B ≤ 200. This represents the temperature in ◦C at which water begins to boil. 
输入规范 输入是一行,包含一个整数B,其中 B ≥ 80 and B ≤ 200。这表示水开始沸腾的温度,以℃计量。 

Output

The output is two lines. The first line must contain an integer which is atmospheric pressure measured in kPa. The second line must contain the integer -1, 0, or 1. This integer represents whether you are below sea level, at sea level, or above sea level, respectively.
输出规范 输出是两行。第一行必须包含一个整数,即以kPa计量的大气压。第二行必须包含整数-1、0或1。这个整数表示你是在海平面以下、海平面上,还是海平面以上

Sample Input

99

Sample Output

95
1

Source/Category