import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main{
  public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArray;
		strArray = br.readLine().split("\\s");
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) +  " " + (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
  public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArray;
		strArray = br.readLine().split("\\s");
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) +  " " + (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2);
	}
} Main public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArray;
		strArray = br.readLine().split("\\s");
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) +  " " + (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArray;
		strArray = br.readLine().split("\\s");
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) +  " " + (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] strArray; strArray strArray = br.readLine().split("\\s") strArray br.readLine().split("\\s") br.readLine().split br.readLine() br.readLine br "\\s" System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) +  " " + (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2) System.out.println System.out System System.out Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) +  " " + (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2 Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) +  " " + (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2 Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 Integer.parseInt(strArray[1]) Integer.parseInt Integer strArray[1] strArray 1 " " (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2 (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 Integer.parseInt(strArray[1]) Integer.parseInt Integer strArray[1] strArray 1 2 String[] args args public class Main{
  public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArray;
		strArray = br.readLine().split("\\s");
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) +  " " + (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2);
	}
} public class Main{
  public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArray;
		strArray = br.readLine().split("\\s");
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) +  " " + (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main{
  public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArray;
		strArray = br.readLine().split("\\s");
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) +  " " + (Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1])) * 2);
	}
}