Commuter Train
Time limit1sMemory limit1024 MB
Given the city and suburb station ranges on a train line, decide which fare applies to a trip from station s to station t.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
The capital of Flatland has opened a new city commuter train line. The line has stations, numbered from 1 to . It runs through the city along its diameter and extends into the suburbs at both ends. Stations 1 through are in the suburbs, stations through are in the city, and stations through are in the suburbs.
The fare depends on the starting station, the ending station, and the stations the passenger travels through.
- If both the starting and ending stations are in the city, the "City" fare applies.
- If both stations are in the suburbs and the train does not pass through the city between them, the "Outside" fare applies.
- Otherwise, the "Full" fare applies.
Given the starting station and the ending station , write a program that determines which fare to apply.
Input
The first line contains three integers , , and (, , , ).
The second line contains two integers and (, ).
Output
If the "City" fare applies, print City.
If the "Outside" fare applies, print Outside.
If the "Full" fare applies, print Full.