import java.io.IOException; import java.util.Scanner; class Main{ public static void main(String args[]) throws IOException{ try (Scanner sc = new Scanner(System.in)) { int a= sc.nextInt(); System.out.println(String.format("%.6f", Math.PI *a*a)); System.out.println(String.format("%.6f", a*a*2.0)); } } }