using System;
using System.IO;
class Program
{
static void Main()
{
double x = Convert.ToDouble(Console.ReadLine());
double b = Math.PI * Math.Sqrt(x);
double c = 2 * Math.PI * x;
Console.WriteLine("{0: 0.000}",b);
Console.WriteLine("{0: 0.000}",c);
}
}
Console.WriteLine("{0:f4}", Math.Truncate(10000 * Math.PI) / 10000);
Console.WriteLine(TruncateWithPrecision(Math.PI , 4));
static string TruncateWithPrecision(double value, int precision)
{
if (precision < 0) throw new ArgumentOutOfRangeException(nameof(precision));
var prepared = string.Format($"{{0:f{precision + 1}}}", value);
return prepared.Substring(0, prepared.Length - (precision == 0 ? 2 : 1));
}
double c = Math.Round(c, 2);