import java.io.*;
public class Main {
	public static void main (String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String side[] = line.split(" ");
		int x = Integer.parseInt(side[0]);
		int y = Integer.parseInt(side[1]);	
		int area = x * y;
		int cir  = 2 * (x + y); 
		System.out.println(area + " " +cir);
	}
} import java.io.*; io.* java public class Main {
	public static void main (String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String side[] = line.split(" ");
		int x = Integer.parseInt(side[0]);
		int y = Integer.parseInt(side[1]);	
		int area = x * y;
		int cir  = 2 * (x + y); 
		System.out.println(area + " " +cir);
	}
} Main public static void main (String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String side[] = line.split(" ");
		int x = Integer.parseInt(side[0]);
		int y = Integer.parseInt(side[1]);	
		int area = x * y;
		int cir  = 2 * (x + y); 
		System.out.println(area + " " +cir);
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String side[] = line.split(" ");
		int x = Integer.parseInt(side[0]);
		int y = Integer.parseInt(side[1]);	
		int area = x * y;
		int cir  = 2 * (x + y); 
		System.out.println(area + " " +cir);
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String line = reader.readLine(); line reader.readLine() reader.readLine reader String side[] = line.split(" "); side line.split(" ") line.split line " " int x = Integer.parseInt(side[0]); x Integer.parseInt(side[0]) Integer.parseInt Integer side[0] side 0 int y = Integer.parseInt(side[1]); y Integer.parseInt(side[1]) Integer.parseInt Integer side[1] side 1 int area = x * y; area x * y x y int cir  = 2 * (x + y); cir 2 * (x + y) 2 (x + y) x y System.out.println(area + " " +cir) System.out.println System.out System System.out area + " " +cir area + " " +cir area " " cir String[] args args public class Main {
	public static void main (String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String side[] = line.split(" ");
		int x = Integer.parseInt(side[0]);
		int y = Integer.parseInt(side[1]);	
		int area = x * y;
		int cir  = 2 * (x + y); 
		System.out.println(area + " " +cir);
	}
} public class Main {
	public static void main (String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String side[] = line.split(" ");
		int x = Integer.parseInt(side[0]);
		int y = Integer.parseInt(side[1]);	
		int area = x * y;
		int cir  = 2 * (x + y); 
		System.out.println(area + " " +cir);
	}
} Main
import java.io.*;
public class Main {
	public static void main (String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String side[] = line.split(" ");
		int x = Integer.parseInt(side[0]);
		int y = Integer.parseInt(side[1]);	
		int area = x * y;
		int cir  = 2 * (x + y); 
		System.out.println(area + " " +cir);
	}
}