https://www.acmicpc.net/problem/14681
import java.util.*
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var x=s.nextInt()
var y=s.nextInt()
if(x>0&&y>0) print(1)
else if(x<0&&y>0) print(2)
else if(x<0&&y<0) print(3)
else if(x>0&&y<0) print(4)
}