https://www.acmicpc.net/problem/14681
using System;
class Program
{
static void Main() {
string s=Console.ReadLine();
int x=int.Parse(s);
string s1=Console.ReadLine();
int y=int.Parse(s1);
if(x>0&&y>0) Console.Write(1);
else if(x<0&&y>0) Console.Write(2);
else if(x<0&&y<0) Console.Write(3);
else if(x>0&&y<0) Console.Write(4);
}
}