{"raw_statement":[{"iden":"statement","content":"Spacelab\n\nWith 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. \n\nFor 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).\n\nThe 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.\n\nIf your spacelab is closer to the sun than your rival's, output \"CLOSER\" (no quotes)\n\nIf your spacelab is farther away from the sun than your rival's, output \"FARTHER AWAY\" (no quotes)\n\nIf your spacelab is on the same planet as your rival's, output \"THE SAME\" (no quotes)\n\n"},{"iden":"input","content":"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."},{"iden":"output","content":"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)"},{"iden":"examples","content":"InputMars\nJupiter\nOutputCLOSER\nInputUranus\nMercury\nOutputFARTHER AWAY\nInputNeptune\nNeptune\nOutputTHE SAME\n"}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ 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.  \nLet $ d: P \\to \\{1, 2, \\dots, 8\\} $ be the distance function such that $ d(p) = i $ if $ p = P[i-1] $.  \nLet $ p_1 \\in P $ be the planet of your spacelab.  \nLet $ p_2 \\in P $ be the planet of the rival’s spacelab.\n\n**Constraints**  \n$ p_1, p_2 \\in P $\n\n**Objective**  \nCompare $ d(p_1) $ and $ d(p_2) $:  \n- If $ d(p_1) < d(p_2) $, output \"CLOSER\"  \n- If $ d(p_1) > d(p_2) $, output \"FARTHER AWAY\"  \n- If $ d(p_1) = d(p_2) $, output \"THE SAME\"","simple_statement":"You and a rival have space labs on two planets.  \nGiven the names of the two planets, say:  \n- \"CLOSER\" if yours is closer to the sun,  \n- \"FARTHER AWAY\" if yours is farther,  \n- \"THE SAME\" if on the same planet.  \n\nPlanets in order from sun: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune.","has_page_source":false}