import java.util.*;

public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int x = sc.nextInt();
	int y= sc.nextInt();

	int a = x*y;
	int b = 2*x+2*y;

	System.out.println(a+" "+b);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int x = sc.nextInt();
	int y= sc.nextInt();

	int a = x*y;
	int b = 2*x+2*y;

	System.out.println(a+" "+b);
  }
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int x = sc.nextInt();
	int y= sc.nextInt();

	int a = x*y;
	int b = 2*x+2*y;

	System.out.println(a+" "+b);
  } main {
	Scanner sc = new Scanner(System.in);

	int x = sc.nextInt();
	int y= sc.nextInt();

	int a = x*y;
	int b = 2*x+2*y;

	System.out.println(a+" "+b);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y= sc.nextInt(); y sc.nextInt() sc.nextInt sc int a = x*y; a x*y x y int b = 2*x+2*y; b 2*x+2*y 2*x 2 x 2*y 2 y System.out.println(a+" "+b) System.out.println System.out System System.out a+" "+b a+" "+b a " " b String[] args args public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int x = sc.nextInt();
	int y= sc.nextInt();

	int a = x*y;
	int b = 2*x+2*y;

	System.out.println(a+" "+b);
  }
} public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int x = sc.nextInt();
	int y= sc.nextInt();

	int a = x*y;
	int b = 2*x+2*y;

	System.out.println(a+" "+b);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int x = sc.nextInt();
	int y= sc.nextInt();

	int a = x*y;
	int b = 2*x+2*y;

	System.out.println(a+" "+b);
  }
}