Astrology
Time limit1sMemory limit1024 MB
Given a date as YYYY-MM-DD, print the zodiac sign of the Sun on that date using a fixed table of day ranges.
- Level
Easy1 of 10
- Topics
- Implementation, String
- Solved
- No attempts yet
Problem
The famous astrologer Pavel Globus writes a bot for trading stocks in the stock market. Pavel is going to predict the stock price by the stars. He analyzed historical data and noticed that, for example, when Mars was in Capricorn, the stock price fell, and when the moon was in Gemini, the quotes went up. Of course, Pavel will not reveal all the details of his algorithm.
Pavel is not so good at programming, and one of the parts of the program that he cannot cope with is determining the zodiac sign in which the Sun is located, depending on the current date. The zodiac sign for the current date can be determined from the following table:
Help Pavel by writing a program that determines the zodiac sign for the current date. In return, Pavel will help you increase your capital.
Input
You are given a string in the format YYYY-MM-DD, which is the current date. Here YYYY is the year ( YYYY ), MM is the month ( MM ), and DD is the day ( DD ).
The date is real.
Output
Print one of the words from the list Aries, Taurus, Gemini, Cancer, Leo, Virgo, Libra, Scorpio, Sagittarius, Capricorn, Aquarius, Pisces, corresponding to the zodiac sign.