Input (grade 12): When an inferior planet is visible before sunrise, it is near its greatest western elongation.
Output (grade 12): When an inferior planet is visible after sunset, it is near its greatest eastern elongation.