import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
	
		int x,y,ans1,ans2;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str[] = br.readLine().split(" ");
		x = Integer.parseInt(str[0]);
		y = Integer.parseInt(str[1]);
		ans1 = x*y;
		ans2 = (x+y)*2;
		System.out.println(ans1 + " " + ans2);
	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args) throws IOException{
	
		int x,y,ans1,ans2;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str[] = br.readLine().split(" ");
		x = Integer.parseInt(str[0]);
		y = Integer.parseInt(str[1]);
		ans1 = x*y;
		ans2 = (x+y)*2;
		System.out.println(ans1 + " " + ans2);
	}
} Main public static void main(String[] args) throws IOException{
	
		int x,y,ans1,ans2;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str[] = br.readLine().split(" ");
		x = Integer.parseInt(str[0]);
		y = Integer.parseInt(str[1]);
		ans1 = x*y;
		ans2 = (x+y)*2;
		System.out.println(ans1 + " " + ans2);
	} main {
	
		int x,y,ans1,ans2;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str[] = br.readLine().split(" ");
		x = Integer.parseInt(str[0]);
		y = Integer.parseInt(str[1]);
		ans1 = x*y;
		ans2 = (x+y)*2;
		System.out.println(ans1 + " " + ans2);
	} int x x y y ans1 ans1 ans2; ans2 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str[] = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " x = Integer.parseInt(str[0]) x Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 y = Integer.parseInt(str[1]) y Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 ans1 = x*y ans1 x*y x y ans2 = (x+y)*2 ans2 (x+y)*2 (x+y) x y 2 System.out.println(ans1 + " " + ans2) System.out.println System.out System System.out ans1 + " " + ans2 ans1 + " " + ans2 ans1 " " ans2 String[] args args
import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
	
		int x,y,ans1,ans2;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str[] = br.readLine().split(" ");
		x = Integer.parseInt(str[0]);
		y = Integer.parseInt(str[1]);
		ans1 = x*y;
		ans2 = (x+y)*2;
		System.out.println(ans1 + " " + ans2);
	}
}