Under construction

Still being built. Things may change

Gahui and the 4-Hour Wall 1

Interview

Time limit1sMemory limit512 MB

Summary
Given the rail time S and flight time F from station a to station b, decide which mode people take, where flights are chosen only when strictly faster.
Level

Easy1 of 10

Topics
Implementation
Solved
No attempts yet

Problem

The 4-hour wall is the tendency for high speed rail to win on routes where it takes 4 hours or less, and for flights to win otherwise. When people travel from station aa to station bb, they take a flight if it takes less time than high speed rail. Otherwise, they take high speed rail.

Taking high speed rail from station aa to station bb takes SabS_{ab} minutes. Taking a flight from station aa to station bb takes the sum of the following:

  • The time to travel from station aa to airport aa
  • The time to travel from airport aa to airport bb, which is FabF_{ab} minutes
  • The time to travel from airport bb to station bb

Tell which transportation mode people use more when they travel from station aa to station bb. Travel time between airports and stations is ignored.

Input

The first line contains SabS_{ab}, as described in the problem.

The second line contains FabF_{ab}, as described in the problem.

Output

If people use high speed rail more when traveling from station aa to station bb, print high speed rail. Otherwise, print flight.

Constraints

All travel times are at least 11 minute and at most 738738 minutes.

Examples2

  1. Example 1

    Input
    80
    99
    
    Expected output
    high speed rail
    
  2. Example 2

    Input
    99
    98
    
    Expected output
    flight