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");
}
package com.codegym.task.task04.task0425;
/*
Target locked!
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
// String s = bufferedReader.readLine();
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");
}
}
}