import java.util.Scanner;
public class Zodiac{
    public static void main(String[] args) {

        int date, month;
        Scanner sc = new Scanner(System.in);
        System.out.println("Input Your date : ");
        date = sc.nextInt();

        System.out.println("Input Your month: ");
        month = sc.nextInt();

        if ((date>21 && month == 12) || (date<=19 && month== 1)){
           System.out.println("Your zodiac sign is Capricorn");
       }
       if ((date>20 && month ==1) || (date<=18 && month == 2)){
           System.out.println("Your zodiac sign is Aquarius");
       }
       if ((date>19 && month == 2) || (date <=20 && month == 3)){
           System.out.println("Your zodiac sign is Pisces");
       }
       if ((date>21 && month == 3) || (date <=20 && month == 4)){
           System.out.println("Your zodiac sign is Aries");
       }
       if ((date>21 && month == 4) || (date <=20 && month == 5)){
           System.out.println("Your zodiac sign is Taurus");
       }
       if ((date>21 && month == 5) || (date<=20 && month == 6)){
           System.out.println("Your zodiac sign is Gemini");
       }
       if ((date>21 && month == 6) || (date<=20 && month == 7)){
           System.out.println("Your zodiac sign is Cancer");
       }
       if ((date>21 && month  == 7) || (date<=20 && month== 8)){
           System.out.println("Your zodiac sign is  Leo");
       }
       if ((date>21 && month ==8) || (date<=22 && month == 9)){
           System.out.println("Your zodiac sign is Virgo");
       }
       if ((date>23 && month == 9) || (date<=20 && month ==10)){
           System.out.println("Your zodiac sign is Libra");
       }
       if ((date>21 && month == 10) || (date<=22 && month == 11)){
           System.out.println("Your zodiac sign is Scorpio");
       }
       if ((date>23 && month == 11) || (date<=20 && month == 12)){
           System.out.println("Your zodiac sign is Sagitarius");
       }
      else {
            System.out.println("invalid");
      }
    }
}
