import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String line = br.readLine();
		String[] oneline = line.split(" ");
		
		int[] data = {0,0};
		
		for(int i=0; i<oneline.length; i++){
			data[i] = Integer.parseInt(oneline[i]);
		}
		
		int area = data[0] * data[1];
		int length = 2 *(data[0]+data[1]);
		
		System.out.println(area +" "+ length);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String line = br.readLine();
		String[] oneline = line.split(" ");
		
		int[] data = {0,0};
		
		for(int i=0; i<oneline.length; i++){
			data[i] = Integer.parseInt(oneline[i]);
		}
		
		int area = data[0] * data[1];
		int length = 2 *(data[0]+data[1]);
		
		System.out.println(area +" "+ length);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String line = br.readLine();
		String[] oneline = line.split(" ");
		
		int[] data = {0,0};
		
		for(int i=0; i<oneline.length; i++){
			data[i] = Integer.parseInt(oneline[i]);
		}
		
		int area = data[0] * data[1];
		int length = 2 *(data[0]+data[1]);
		
		System.out.println(area +" "+ length);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String line = br.readLine();
		String[] oneline = line.split(" ");
		
		int[] data = {0,0};
		
		for(int i=0; i<oneline.length; i++){
			data[i] = Integer.parseInt(oneline[i]);
		}
		
		int area = data[0] * data[1];
		int length = 2 *(data[0]+data[1]);
		
		System.out.println(area +" "+ length);
	} 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[] oneline = line.split(" "); oneline line.split(" ") line.split line " " int[] data = {0,0}; data {0,0} 0 0 for(int i=0; i<oneline.length; i++){
			data[i] = Integer.parseInt(oneline[i]);
		} int i=0; int i=0; i 0 i<oneline.length i oneline.length oneline oneline.length i++ i++ i {
			data[i] = Integer.parseInt(oneline[i]);
		} {
			data[i] = Integer.parseInt(oneline[i]);
		} data[i] = Integer.parseInt(oneline[i]) data[i] data i Integer.parseInt(oneline[i]) Integer.parseInt Integer oneline[i] oneline i int area = data[0] * data[1]; area data[0] * data[1] data[0] data 0 data[1] data 1 int length = 2 *(data[0]+data[1]); length 2 *(data[0]+data[1]) 2 (data[0]+data[1]) data[0] data 0 data[1] data 1 System.out.println(area +" "+ length) System.out.println System.out System System.out area +" "+ length area +" "+ length area " " length String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String line = br.readLine();
		String[] oneline = line.split(" ");
		
		int[] data = {0,0};
		
		for(int i=0; i<oneline.length; i++){
			data[i] = Integer.parseInt(oneline[i]);
		}
		
		int area = data[0] * data[1];
		int length = 2 *(data[0]+data[1]);
		
		System.out.println(area +" "+ length);
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String line = br.readLine();
		String[] oneline = line.split(" ");
		
		int[] data = {0,0};
		
		for(int i=0; i<oneline.length; i++){
			data[i] = Integer.parseInt(oneline[i]);
		}
		
		int area = data[0] * data[1];
		int length = 2 *(data[0]+data[1]);
		
		System.out.println(area +" "+ length);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String line = br.readLine();
		String[] oneline = line.split(" ");
		
		int[] data = {0,0};
		
		for(int i=0; i<oneline.length; i++){
			data[i] = Integer.parseInt(oneline[i]);
		}
		
		int area = data[0] * data[1];
		int length = 2 *(data[0]+data[1]);
		
		System.out.println(area +" "+ length);
	}
}