import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created 2017/06/01.
 */
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Double.parseDouble(sc.next());
      ary.add(input);
      if (ary.size() == 1) break;
    }
    
    double a = ary.get(0);
    double x = Math.PI;
    
    double s = Math.pow(a,2) * x;
    double m = a * 2 * x;

    System.out.printf("%f",s);
    System.out.print(" ");
    System.out.printf("%f",m);
  }

} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Double.parseDouble(sc.next());
      ary.add(input);
      if (ary.size() == 1) break;
    }
    
    double a = ary.get(0);
    double x = Math.PI;
    
    double s = Math.pow(a,2) * x;
    double m = a * 2 * x;

    System.out.printf("%f",s);
    System.out.print(" ");
    System.out.printf("%f",m);
  }

} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Double.parseDouble(sc.next());
      ary.add(input);
      if (ary.size() == 1) break;
    }
    
    double a = ary.get(0);
    double x = Math.PI;
    
    double s = Math.pow(a,2) * x;
    double m = a * 2 * x;

    System.out.printf("%f",s);
    System.out.print(" ");
    System.out.printf("%f",m);
  } main {
    Scanner sc = new Scanner(System.in);
    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Double.parseDouble(sc.next());
      ary.add(input);
      if (ary.size() == 1) break;
    }
    
    double a = ary.get(0);
    double x = Math.PI;
    
    double s = Math.pow(a,2) * x;
    double m = a * 2 * x;

    System.out.printf("%f",s);
    System.out.print(" ");
    System.out.printf("%f",m);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Double> ary = new ArrayList<>(); ary new ArrayList<>() while (true) {
      double input = Double.parseDouble(sc.next());
      ary.add(input);
      if (ary.size() == 1) break;
    } true {
      double input = Double.parseDouble(sc.next());
      ary.add(input);
      if (ary.size() == 1) break;
    } double input = Double.parseDouble(sc.next()); input Double.parseDouble(sc.next()) Double.parseDouble Double sc.next() sc.next sc ary.add(input) ary.add ary input if (ary.size() == 1) break; ary.size() == 1 ary.size() ary.size ary 1 break; double a = ary.get(0); a ary.get(0) ary.get ary 0 double x = Math.PI; x Math.PI Math Math.PI double s = Math.pow(a,2) * x; s Math.pow(a,2) * x Math.pow(a,2) Math.pow Math a 2 x double m = a * 2 * x; m a * 2 * x a * 2 * x a 2 x System.out.printf("%f",s) System.out.printf System.out System System.out "%f" s System.out.print(" ") System.out.print System.out System System.out " " System.out.printf("%f",m) System.out.printf System.out System System.out "%f" m String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Double.parseDouble(sc.next());
      ary.add(input);
      if (ary.size() == 1) break;
    }
    
    double a = ary.get(0);
    double x = Math.PI;
    
    double s = Math.pow(a,2) * x;
    double m = a * 2 * x;

    System.out.printf("%f",s);
    System.out.print(" ");
    System.out.printf("%f",m);
  }

} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Double.parseDouble(sc.next());
      ary.add(input);
      if (ary.size() == 1) break;
    }
    
    double a = ary.get(0);
    double x = Math.PI;
    
    double s = Math.pow(a,2) * x;
    double m = a * 2 * x;

    System.out.printf("%f",s);
    System.out.print(" ");
    System.out.printf("%f",m);
  }

} Main
import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created 2017/06/01.
 */
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Double.parseDouble(sc.next());
      ary.add(input);
      if (ary.size() == 1) break;
    }
    
    double a = ary.get(0);
    double x = Math.PI;
    
    double s = Math.pow(a,2) * x;
    double m = a * 2 * x;

    System.out.printf("%f",s);
    System.out.print(" ");
    System.out.printf("%f",m);
  }

}