package length;
import java.util.*;
interface Shape{
public void length();
}
class Triangle implements Shape{
double l1;
double l2;
double l3;
public Triangle() {
l1 = 0;
l2 = 0;
l3 = 0;
}
public Triangle(double a, double b, double c) {
l1 = a;
l2 = b;
l3 = c;
}
public void length() {
System.out.printf("%.2f\n",l1+l2+l3);
}
}
class Rectangle implements Shape{
double l1;
double l2;
public Rectangle() {
l1 = 0;
l2 = 0;
}
public Rectangle(double a, double b) {
l1 = a;
l2 = b;
}
public void length() {
System.out.printf("%.2f\n",(l1+l2)*2.0);
}
}
class Circle implements Shape{
double l1;
public Circle() {
l1 = 0;
}
public Circle(double a) {
l1 = a;
}
public void length() {
System.out.printf("%.2f\n",l1*2.0*3.14);
}
}
public class Main {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
while(reader.hasNext()) {
double a = 0, b = 0, c = 0;
String str = reader.nextLine();
String[] arr = str.split(" ");
int length = arr.length;
if(length == 1)
{
a = new Double(arr[0]);
Shape C = new Circle(a);
C.length();
}
else if(length==2)
{
a = new Double(arr[0]);
b = new Double(arr[1]);
}
}
}
}