int a = Integer.parseInt(bufferedReader.readLine());
        int b = Integer.parseInt(bufferedReader.readLine());

        if(a>0 && b>0)
         {
             System.out.println("1");
         }
         else if(a<0 && b>0)
         {
             System.out.println("2");
         }
         else if(a>0 && b<0)
         {
             System.out.println("3");
         }
         else if(a<0 && b<0)
         {
             System.out.println("4");
         }