import java.util.*;

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

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