407120: GYM102697 091 Spacelab

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

091. Spacelabtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Spacelab

With the CodeRams club, you've created a lab in space to study solar power. You created your lab on a planet in our solar system. Unfortunately, a rival CodeQuest team also created a spacelab on a different planet. You need to figure out which spacelab is closer to the sun.

For reference, the order of the planets in our solar system from closest to farthest away from the sun is "Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune" (you can copy this into a list/array if you want).

Input

The first line of input contains a single string, representing the planet that your spacelab is located on. The second line of input contains a single string, representing the planet that the rival team's spacelab is located on. The planets given are guaranteed to be in our solar system, and no TNOs, dwarf planets, or asteroids will be given in the input.

Output

If your spacelab is closer to the sun than your rival's, output "CLOSER" (no quotes)

If your spacelab is farther away from the sun than your rival's, output "FARTHER AWAY" (no quotes)

If your spacelab is on the same planet as your rival's, output "THE SAME" (no quotes)

ExamplesInput
Mars
Jupiter
Output
CLOSER
Input
Uranus
Mercury
Output
FARTHER AWAY
Input
Neptune
Neptune
Output
THE SAME

加入题单

算法标签: