import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int x = Integer.parseInt(br.readLine());
int y = Integer.parseInt(br.readLine());
if(x > 0) {
if(y > 0) {
System.out.print(1);
}
else {
System.out.print(4);
}
}
else {
if(y > 0) {
System.out.print(2);
}
else {
System.out.print(3);
}
}
}
}
'문제 풀이 > 자바' 카테고리의 다른 글
자바 문제 풀이 8 (0) | 2023.04.17 |
---|---|
자바 문제 풀이 7 (0) | 2023.04.16 |
자바 문제 풀이 5 (0) | 2023.04.13 |
자바 문제 풀이 4 (0) | 2023.04.11 |
자바 문제 풀이 3 (0) | 2023.04.09 |