import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Main {

	public static void main(String[] args)throws IOException  {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		 List<Integer> list = new ArrayList<Integer>();
		 for (String s : Arrays.asList(br.readLine().trim().split("\\s+"))) list.add(Integer.parseInt(s));
		 
		 int a = list.get(0), b = list.get(1);
		 
		 System.out.println(""+(a*b)+" "+(2*a+2*b));
		 
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util public class Main {

	public static void main(String[] args)throws IOException  {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		 List<Integer> list = new ArrayList<Integer>();
		 for (String s : Arrays.asList(br.readLine().trim().split("\\s+"))) list.add(Integer.parseInt(s));
		 
		 int a = list.get(0), b = list.get(1);
		 
		 System.out.println(""+(a*b)+" "+(2*a+2*b));
		 
	}

} Main public static void main(String[] args)throws IOException  {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		 List<Integer> list = new ArrayList<Integer>();
		 for (String s : Arrays.asList(br.readLine().trim().split("\\s+"))) list.add(Integer.parseInt(s));
		 
		 int a = list.get(0), b = list.get(1);
		 
		 System.out.println(""+(a*b)+" "+(2*a+2*b));
		 
	} main {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		 List<Integer> list = new ArrayList<Integer>();
		 for (String s : Arrays.asList(br.readLine().trim().split("\\s+"))) list.add(Integer.parseInt(s));
		 
		 int a = list.get(0), b = list.get(1);
		 
		 System.out.println(""+(a*b)+" "+(2*a+2*b));
		 
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for (String s : Arrays.asList(br.readLine().trim().split("\\s+"))) list.add(Integer.parseInt(s)); String s Arrays.asList(br.readLine().trim().split("\\s+")) Arrays.asList Arrays br.readLine().trim().split("\\s+") br.readLine().trim().split br.readLine().trim() br.readLine().trim br.readLine() br.readLine br "\\s+" list.add(Integer.parseInt(s)); list.add(Integer.parseInt(s)) list.add list Integer.parseInt(s) Integer.parseInt Integer s int a = list.get(0) a list.get(0) list.get list 0 b = list.get(1); b list.get(1) list.get list 1 System.out.println(""+(a*b)+" "+(2*a+2*b)) System.out.println System.out System System.out ""+(a*b)+" "+(2*a+2*b) " " ""+(a*b)+" "+(2*a+2*b) "" (a*b) a b " " (2*a+2*b) 2*a 2 a 2*b 2 b String[] args args public class Main {

	public static void main(String[] args)throws IOException  {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		 List<Integer> list = new ArrayList<Integer>();
		 for (String s : Arrays.asList(br.readLine().trim().split("\\s+"))) list.add(Integer.parseInt(s));
		 
		 int a = list.get(0), b = list.get(1);
		 
		 System.out.println(""+(a*b)+" "+(2*a+2*b));
		 
	}

} public class Main {

	public static void main(String[] args)throws IOException  {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		 List<Integer> list = new ArrayList<Integer>();
		 for (String s : Arrays.asList(br.readLine().trim().split("\\s+"))) list.add(Integer.parseInt(s));
		 
		 int a = list.get(0), b = list.get(1);
		 
		 System.out.println(""+(a*b)+" "+(2*a+2*b));
		 
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Main {

	public static void main(String[] args)throws IOException  {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		 List<Integer> list = new ArrayList<Integer>();
		 for (String s : Arrays.asList(br.readLine().trim().split("\\s+"))) list.add(Integer.parseInt(s));
		 
		 int a = list.get(0), b = list.get(1);
		 
		 System.out.println(""+(a*b)+" "+(2*a+2*b));
		 
	}

}