import java.util.Scanner;

public class Main{
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int x =sc.nextInt();
	int y =sc.nextInt();
	int area =x*y;
	int length =2*(x+y);
	System.out.println(area + " " + length);
	}
} import java.util.Scanner; Scanner 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 area =x*y;
	int length =2*(x+y);
	System.out.println(area + " " + length);
	}
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int x =sc.nextInt();
	int y =sc.nextInt();
	int area =x*y;
	int length =2*(x+y);
	System.out.println(area + " " + length);
	} main {
	Scanner sc = new Scanner(System.in);
	int x =sc.nextInt();
	int y =sc.nextInt();
	int area =x*y;
	int length =2*(x+y);
	System.out.println(area + " " + length);
	} 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 area =x*y; area x*y x y int length =2*(x+y); length 2*(x+y) 2 (x+y) x y System.out.println(area + " " + length) System.out.println System.out System System.out area + " " + length area + " " + length area " " length 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 area =x*y;
	int length =2*(x+y);
	System.out.println(area + " " + length);
	}
} public class Main{
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int x =sc.nextInt();
	int y =sc.nextInt();
	int area =x*y;
	int length =2*(x+y);
	System.out.println(area + " " + length);
	}
} Main
import java.util.Scanner;

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