407120: GYM102697 091 Spacelab
Description
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).
InputThe 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.
OutputIf 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)
ExamplesInputMars JupiterOutput
CLOSERInput
Uranus MercuryOutput
FARTHER AWAYInput
Neptune NeptuneOutput
THE SAME