import java.io.*;
class Main{
	public static void main(String[] args){
		int a,b;
		try{
		BufferedReader br = new BufferedReader(new InputStreamReader   (System.in));
			String str = br.readLine();
			String[] strAry = str.split(" ");
			a = Integer.parseInt(strAry[0]);	
			b = Integer.parseInt(strAry[1]);
			System.out.println(a*b +" "+ 2*(a+b));
		} catch(Exception e) {
		}
	 }
}	 import java.io.*; io.* java class Main{
	public static void main(String[] args){
		int a,b;
		try{
		BufferedReader br = new BufferedReader(new InputStreamReader   (System.in));
			String str = br.readLine();
			String[] strAry = str.split(" ");
			a = Integer.parseInt(strAry[0]);	
			b = Integer.parseInt(strAry[1]);
			System.out.println(a*b +" "+ 2*(a+b));
		} catch(Exception e) {
		}
	 }
} Main public static void main(String[] args){
		int a,b;
		try{
		BufferedReader br = new BufferedReader(new InputStreamReader   (System.in));
			String str = br.readLine();
			String[] strAry = str.split(" ");
			a = Integer.parseInt(strAry[0]);	
			b = Integer.parseInt(strAry[1]);
			System.out.println(a*b +" "+ 2*(a+b));
		} catch(Exception e) {
		}
	 } main {
		int a,b;
		try{
		BufferedReader br = new BufferedReader(new InputStreamReader   (System.in));
			String str = br.readLine();
			String[] strAry = str.split(" ");
			a = Integer.parseInt(strAry[0]);	
			b = Integer.parseInt(strAry[1]);
			System.out.println(a*b +" "+ 2*(a+b));
		} catch(Exception e) {
		}
	 } int a a b; b try{
		BufferedReader br = new BufferedReader(new InputStreamReader   (System.in));
			String str = br.readLine();
			String[] strAry = str.split(" ");
			a = Integer.parseInt(strAry[0]);	
			b = Integer.parseInt(strAry[1]);
			System.out.println(a*b +" "+ 2*(a+b));
		} catch(Exception e) {
		} catch(Exception e) {
		} Exception e {
		} {
		BufferedReader br = new BufferedReader(new InputStreamReader   (System.in));
			String str = br.readLine();
			String[] strAry = str.split(" ");
			a = Integer.parseInt(strAry[0]);	
			b = Integer.parseInt(strAry[1]);
			System.out.println(a*b +" "+ 2*(a+b));
		} 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 String[] strAry = str.split(" "); strAry str.split(" ") str.split str " " a = Integer.parseInt(strAry[0]) a Integer.parseInt(strAry[0]) Integer.parseInt Integer strAry[0] strAry 0 b = Integer.parseInt(strAry[1]) b Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 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
import java.io.*;
class Main{
	public static void main(String[] args){
		int a,b;
		try{
		BufferedReader br = new BufferedReader(new InputStreamReader   (System.in));
			String str = br.readLine();
			String[] strAry = str.split(" ");
			a = Integer.parseInt(strAry[0]);	
			b = Integer.parseInt(strAry[1]);
			System.out.println(a*b +" "+ 2*(a+b));
		} catch(Exception e) {
		}
	 }
}	