Terraforming

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

Humanity's effort to turn Mars into a liveable planet is, in the words of World Government communicator Levi Uken (2315 A.D.), an "endeavour so great that it will take the united effort of mankind to accomplish."

At the beginning of the terraforming endeavour Mars has no oceans, no oxygen, and a mean temperature of 30-30 degrees Celsius.

Water

To enable a stable hydrological cycle, air moisture, weather patterns, and to moderate temperature swings, Mars needs 99\% ocean coverage.

Temperature

At very low temperatures, oceans are actually glaciers for most of the year. Although the temperature on Mars in the 2121st century already reaches 2020 degree Celsius on 'hot’ summer days, its average is far below freezing. To enable liquid oceans, the temperature has to stay positive, at least at the equator, corresponding to a mean temperature of +8+8 degrees Celsius.

Oxygen

The most important parameter for terraforming is the oxygen level---without a breathable atmosphere, Mars is not liveable for humans. Earth’s oxygen content is 2121\\% of the atmosphere at sea level. However, already 1414\\% is perfectly livable for humans, such as Bolivian cities El Alto (41504150 m) and La Paz (36403640 m), each with nearly a million inhabitants in the 2121st century.

입력

On the first line, the number n1,,315n\in\\{1,\ldots, 315\\} of environmental changes on Mars. Each of the following nn lines consists of a parameter (oxygen, ocean, or temperature), followed by an integer.

The change for oxygen and oceans is in percentage points, the change for temperature is in degrees Celsius.

출력

If the environmental changes achieve at least 99\% ocean coverage, at least 1414\\% oxygen, and at least +8+8 degrees celsius, output 'liveable'. Otherwise, output 'not liveable'.