import java.io.*;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String str =br.readLine();
		Scanner sc=new Scanner(str);
		int a=sc.nextInt();
		int b=sc.nextInt();
		System.out.println(a*b+" "+(a+b)*2);
		sc.close();
		
		
	
		
	}
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String str =br.readLine();
		Scanner sc=new Scanner(str);
		int a=sc.nextInt();
		int b=sc.nextInt();
		System.out.println(a*b+" "+(a+b)*2);
		sc.close();
		
		
	
		
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String str =br.readLine();
		Scanner sc=new Scanner(str);
		int a=sc.nextInt();
		int b=sc.nextInt();
		System.out.println(a*b+" "+(a+b)*2);
		sc.close();
		
		
	
		
	} main {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String str =br.readLine();
		Scanner sc=new Scanner(str);
		int a=sc.nextInt();
		int b=sc.nextInt();
		System.out.println(a*b+" "+(a+b)*2);
		sc.close();
		
		
	
		
	} BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str =br.readLine(); str br.readLine() br.readLine br Scanner sc=new Scanner(str); sc new Scanner(str) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc System.out.println(a*b+" "+(a+b)*2) System.out.println System.out System System.out a*b+" "+(a+b)*2 a*b+" "+(a+b)*2 a*b a b " " (a+b)*2 (a+b) a b 2 sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String str =br.readLine();
		Scanner sc=new Scanner(str);
		int a=sc.nextInt();
		int b=sc.nextInt();
		System.out.println(a*b+" "+(a+b)*2);
		sc.close();
		
		
	
		
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String str =br.readLine();
		Scanner sc=new Scanner(str);
		int a=sc.nextInt();
		int b=sc.nextInt();
		System.out.println(a*b+" "+(a+b)*2);
		sc.close();
		
		
	
		
	}
} Main
import java.io.*;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String str =br.readLine();
		Scanner sc=new Scanner(str);
		int a=sc.nextInt();
		int b=sc.nextInt();
		System.out.println(a*b+" "+(a+b)*2);
		sc.close();
		
		
	
		
	}
}