import java.io.*;
import java.util.*;
public class Main{
	public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		
		int L= 2*(a+b);
		int S= a*b;
		
		System.out.println(S+" "+L);
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
	public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		
		int L= 2*(a+b);
		int S= a*b;
		
		System.out.println(S+" "+L);
	}
} Main public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		
		int L= 2*(a+b);
		int S= a*b;
		
		System.out.println(S+" "+L);
	} main {
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		
		int L= 2*(a+b);
		int S= a*b;
		
		System.out.println(S+" "+L);
	} Scanner cin= new Scanner(System.in); cin new Scanner(System.in) int a= cin.nextInt(); a cin.nextInt() cin.nextInt cin int b= cin.nextInt(); b cin.nextInt() cin.nextInt cin int L= 2*(a+b); L 2*(a+b) 2 (a+b) a b int S= a*b; S a*b a b System.out.println(S+" "+L) System.out.println System.out System System.out S+" "+L S+" "+L S " " L String args[] args public class Main{
	public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		
		int L= 2*(a+b);
		int S= a*b;
		
		System.out.println(S+" "+L);
	}
} public class Main{
	public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		
		int L= 2*(a+b);
		int S= a*b;
		
		System.out.println(S+" "+L);
	}
} Main
import java.io.*;
import java.util.*;
public class Main{
	public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		
		int L= 2*(a+b);
		int S= a*b;
		
		System.out.println(S+" "+L);
	}
}