import java.util.Scanner;
public class Main{
	public static void main (String[] args){
		Scanner s = new Scanner(System.in);
		String str = s.nextLine();
		String strArray[] = str.split(" ");
		int a = Integer.parseInt(strArray[0]);
		int b = Integer.parseInt(strArray[1]);
		System.out.println((a*b) +" "+ 2*(a+b));
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main (String[] args){
		Scanner s = new Scanner(System.in);
		String str = s.nextLine();
		String strArray[] = str.split(" ");
		int a = Integer.parseInt(strArray[0]);
		int b = Integer.parseInt(strArray[1]);
		System.out.println((a*b) +" "+ 2*(a+b));
	}
} Main public static void main (String[] args){
		Scanner s = new Scanner(System.in);
		String str = s.nextLine();
		String strArray[] = str.split(" ");
		int a = Integer.parseInt(strArray[0]);
		int b = Integer.parseInt(strArray[1]);
		System.out.println((a*b) +" "+ 2*(a+b));
	} main {
		Scanner s = new Scanner(System.in);
		String str = s.nextLine();
		String strArray[] = str.split(" ");
		int a = Integer.parseInt(strArray[0]);
		int b = Integer.parseInt(strArray[1]);
		System.out.println((a*b) +" "+ 2*(a+b));
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) String str = s.nextLine(); str s.nextLine() s.nextLine s String strArray[] = str.split(" "); strArray str.split(" ") str.split str " " int a = Integer.parseInt(strArray[0]); a Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 int b = Integer.parseInt(strArray[1]); b Integer.parseInt(strArray[1]) Integer.parseInt Integer strArray[1] strArray 1 System.out.println((a*b) +" "+ 2*(a+b)) System.out.println System.out System System.out (a*b) +" "+ 2*(a+b) (a*b) +" "+ 2*(a+b) (a*b) a b " " 2*(a+b) 2 (a+b) a b String[] args args public class Main{
	public static void main (String[] args){
		Scanner s = new Scanner(System.in);
		String str = s.nextLine();
		String strArray[] = str.split(" ");
		int a = Integer.parseInt(strArray[0]);
		int b = Integer.parseInt(strArray[1]);
		System.out.println((a*b) +" "+ 2*(a+b));
	}
} public class Main{
	public static void main (String[] args){
		Scanner s = new Scanner(System.in);
		String str = s.nextLine();
		String strArray[] = str.split(" ");
		int a = Integer.parseInt(strArray[0]);
		int b = Integer.parseInt(strArray[1]);
		System.out.println((a*b) +" "+ 2*(a+b));
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main (String[] args){
		Scanner s = new Scanner(System.in);
		String str = s.nextLine();
		String strArray[] = str.split(" ");
		int a = Integer.parseInt(strArray[0]);
		int b = Integer.parseInt(strArray[1]);
		System.out.println((a*b) +" "+ 2*(a+b));
	}
}