import java.io.*;
class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] menseki = line.split(" ");
		int sum = Integer.parseInt(menseki[0]) * Integer.parseInt(menseki[1]);
		int syu1 = Integer.parseInt(menseki[0]) * 2;
		int syu2 = Integer.parseInt(menseki[1]) * 2;
		int syuLength = syu1 + syu2;
		System.out.println(sum+" "+syuLength);
	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] menseki = line.split(" ");
		int sum = Integer.parseInt(menseki[0]) * Integer.parseInt(menseki[1]);
		int syu1 = Integer.parseInt(menseki[0]) * 2;
		int syu2 = Integer.parseInt(menseki[1]) * 2;
		int syuLength = syu1 + syu2;
		System.out.println(sum+" "+syuLength);
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] menseki = line.split(" ");
		int sum = Integer.parseInt(menseki[0]) * Integer.parseInt(menseki[1]);
		int syu1 = Integer.parseInt(menseki[0]) * 2;
		int syu2 = Integer.parseInt(menseki[1]) * 2;
		int syuLength = syu1 + syu2;
		System.out.println(sum+" "+syuLength);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] menseki = line.split(" ");
		int sum = Integer.parseInt(menseki[0]) * Integer.parseInt(menseki[1]);
		int syu1 = Integer.parseInt(menseki[0]) * 2;
		int syu2 = Integer.parseInt(menseki[1]) * 2;
		int syuLength = syu1 + syu2;
		System.out.println(sum+" "+syuLength);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String[] menseki = line.split(" "); menseki line.split(" ") line.split line " " int sum = Integer.parseInt(menseki[0]) * Integer.parseInt(menseki[1]); sum Integer.parseInt(menseki[0]) * Integer.parseInt(menseki[1]) Integer.parseInt(menseki[0]) Integer.parseInt Integer menseki[0] menseki 0 Integer.parseInt(menseki[1]) Integer.parseInt Integer menseki[1] menseki 1 int syu1 = Integer.parseInt(menseki[0]) * 2; syu1 Integer.parseInt(menseki[0]) * 2 Integer.parseInt(menseki[0]) Integer.parseInt Integer menseki[0] menseki 0 2 int syu2 = Integer.parseInt(menseki[1]) * 2; syu2 Integer.parseInt(menseki[1]) * 2 Integer.parseInt(menseki[1]) Integer.parseInt Integer menseki[1] menseki 1 2 int syuLength = syu1 + syu2; syuLength syu1 + syu2 syu1 syu2 System.out.println(sum+" "+syuLength) System.out.println System.out System System.out sum+" "+syuLength sum+" "+syuLength sum " " syuLength String[] args args
import java.io.*;
class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] menseki = line.split(" ");
		int sum = Integer.parseInt(menseki[0]) * Integer.parseInt(menseki[1]);
		int syu1 = Integer.parseInt(menseki[0]) * 2;
		int syu2 = Integer.parseInt(menseki[1]) * 2;
		int syuLength = syu1 + syu2;
		System.out.println(sum+" "+syuLength);
	}
}