import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
	
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	

	String[] line = reader.readLine().split(" ");

	int a = Integer.parseInt(line[0]);
	int b = Integer.parseInt(line[1]);

	int c = a * b;
	int d = a + a + b + b;

	System.out.println(c +" "+ d);
	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args) throws IOException{
	
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	

	String[] line = reader.readLine().split(" ");

	int a = Integer.parseInt(line[0]);
	int b = Integer.parseInt(line[1]);

	int c = a * b;
	int d = a + a + b + b;

	System.out.println(c +" "+ d);
	}
} Main public static void main(String[] args) throws IOException{
	
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	

	String[] line = reader.readLine().split(" ");

	int a = Integer.parseInt(line[0]);
	int b = Integer.parseInt(line[1]);

	int c = a * b;
	int d = a + a + b + b;

	System.out.println(c +" "+ d);
	} main {
	
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	

	String[] line = reader.readLine().split(" ");

	int a = Integer.parseInt(line[0]);
	int b = Integer.parseInt(line[1]);

	int c = a * b;
	int d = a + a + b + b;

	System.out.println(c +" "+ d);
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String[] line = reader.readLine().split(" "); line reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int a = Integer.parseInt(line[0]); a Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int b = Integer.parseInt(line[1]); b Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int c = a * b; c a * b a b int d = a + a + b + b; d a + a + b + b b a + a + b + b a a b b System.out.println(c +" "+ d) System.out.println System.out System System.out c +" "+ d c +" "+ d c " " d String[] args args
import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
	
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	

	String[] line = reader.readLine().split(" ");

	int a = Integer.parseInt(line[0]);
	int b = Integer.parseInt(line[1]);

	int c = a * b;
	int d = a + a + b + b;

	System.out.println(c +" "+ d);
	}
}