using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FirstПрограмм
{
class Program
{
static void Main(string[] args)
{
double a,b,c,d;
Console.WriteLine("x sonni kiriting: ");
double x = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("y sonni kiriting: ");
double y = Convert.ToDouble(Console.ReadLine());
a=0.5*x+1;
b=-0.5*x-1;
c=Math.Pow((1-x*x),0.5);
d=-(Math.Pow((1-x*x),0.5));
if (y<a && x>-2 && x<0 && y>0 && y<1)
{
Console.WriteLine("Sohaga tegishli");
}
if (y>b && x>-2 && x<0 && y>-1 && y<0)
{
Console.WriteLine("Sohaga tegishli");
}
if (y<c && x>=0 && x<1 && y>0 && y<1)
{
Console.WriteLine("Sohaga tegishli");
}
if (y>d && x>=0 && x<1 && y>-1 && y<=0)
{
Console.WriteLine("Sohaga tegishli");
}
else
{
Console.WriteLine("Sohaga tegishli emas");
}
Console.ReadKey();
}
}
}