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).
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.
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)
## 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)
[samples]
**Definitions**
Let $ P = ["\text{Mercury}", "\text{Venus}", "\text{Earth}", "\text{Mars}", "\text{Jupiter}", "\text{Saturn}", "\text{Uranus}", "\text{Neptune}"] $ be the ordered list of planets by distance from the sun.
Let $ d: P \to \{1, 2, \dots, 8\} $ be the distance function such that $ d(p) = i $ if $ p = P[i-1] $.
Let $ p_1 \in P $ be the planet of your spacelab.
Let $ p_2 \in P $ be the planet of the rival’s spacelab.
**Constraints**
$ p_1, p_2 \in P $
**Objective**
Compare $ d(p_1) $ and $ d(p_2) $:
- If $ d(p_1) < d(p_2) $, output "CLOSER"
- If $ d(p_1) > d(p_2) $, output "FARTHER AWAY"
- If $ d(p_1) = d(p_2) $, output "THE SAME"