import java.util.Scanner;

class Main{
	static public void main (String args[]){
		Scanner scan = new Scanner(System.in);
		scan.useDelimiter("\\s");
		int val1 = 0;
		int val2 = 0;
		int area = 0;
		int around = 0;
		
		val1 = scan.nextInt();
		val2 = scan.nextInt();

		area = val1*val2;
		around = (val1 + val2)*2;
		System.out.println(area+" "+around);
	}
} import java.util.Scanner; Scanner java.util class Main{
	static public void main (String args[]){
		Scanner scan = new Scanner(System.in);
		scan.useDelimiter("\\s");
		int val1 = 0;
		int val2 = 0;
		int area = 0;
		int around = 0;
		
		val1 = scan.nextInt();
		val2 = scan.nextInt();

		area = val1*val2;
		around = (val1 + val2)*2;
		System.out.println(area+" "+around);
	}
} Main static public void main (String args[]){
		Scanner scan = new Scanner(System.in);
		scan.useDelimiter("\\s");
		int val1 = 0;
		int val2 = 0;
		int area = 0;
		int around = 0;
		
		val1 = scan.nextInt();
		val2 = scan.nextInt();

		area = val1*val2;
		around = (val1 + val2)*2;
		System.out.println(area+" "+around);
	} main {
		Scanner scan = new Scanner(System.in);
		scan.useDelimiter("\\s");
		int val1 = 0;
		int val2 = 0;
		int area = 0;
		int around = 0;
		
		val1 = scan.nextInt();
		val2 = scan.nextInt();

		area = val1*val2;
		around = (val1 + val2)*2;
		System.out.println(area+" "+around);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) scan.useDelimiter("\\s") scan.useDelimiter scan "\\s" int val1 = 0; val1 0 int val2 = 0; val2 0 int area = 0; area 0 int around = 0; around 0 val1 = scan.nextInt() val1 scan.nextInt() scan.nextInt scan val2 = scan.nextInt() val2 scan.nextInt() scan.nextInt scan area = val1*val2 area val1*val2 val1 val2 around = (val1 + val2)*2 around (val1 + val2)*2 (val1 + val2) val1 val2 2 System.out.println(area+" "+around) System.out.println System.out System System.out area+" "+around area+" "+around area " " around String args[] args
import java.util.Scanner;

class Main{
	static public void main (String args[]){
		Scanner scan = new Scanner(System.in);
		scan.useDelimiter("\\s");
		int val1 = 0;
		int val2 = 0;
		int area = 0;
		int around = 0;
		
		val1 = scan.nextInt();
		val2 = scan.nextInt();

		area = val1*val2;
		around = (val1 + val2)*2;
		System.out.println(area+" "+around);
	}
}