https://www.acmicpc.net/problem/14681
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int x=s.nextInt();
int y=s.nextInt();
if(x>0&&y>0) System.out.print(1);
else if(x<0&&y>0) System.out.print(2);
else if(x<0&&y<0) System.out.print(3);
else if(x>0&&y<0) System.out.print(4);
}
}