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