using System;
public class Program
{
public static void Main()
double p,x;
Console.WriteLine("Введите значения для x: ");
x=double.Parse(Console.ReadLine());
if (x<0)
x=1-Math.Cos(2*x)/2;
p=Math.Pow(x,1.0/3);
Console.WriteLine("Ответ Р ="+p);
}
else if (x>=0)
x=Math.Abs(Math.Sin(Math.Pow(x,2)));
p=Math.Sqrt(x);