using System;
public class Program
{
public static void Main()
float a, b, S, P;
Console.WriteLine("a=");
a=float.Parse(Console.ReadLine() );
Console.WriteLine("b=");
b=float.Parse(Console.ReadLine() );
if ( a > 0 && b > 0 )
S=a*b; P=2*a+2*b;
Console.WriteLine("S=" + S);
Console.WriteLine("P=" + P);
}
else
Console.WriteLine("Няма такава фигура");