import java.io.*;
import java.util.*;
class Main{
    public static void main(String args[]) throws IOException{

	int x=0;
	int y=0;
	int i=0;

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	String delimiter = " ";
        StringTokenizer stringTokenizer = new StringTokenizer( str, delimiter );
	while(stringTokenizer.hasMoreTokens())
	{
            String current = stringTokenizer.nextToken();
	    if(i==0)x=Integer.parseInt(current);
	    if(i==1)y=Integer.parseInt(current);
	    i++;
	}

	
	System.out.println(x*y+" "+(x+y)*2);
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main{
    public static void main(String args[]) throws IOException{

	int x=0;
	int y=0;
	int i=0;

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	String delimiter = " ";
        StringTokenizer stringTokenizer = new StringTokenizer( str, delimiter );
	while(stringTokenizer.hasMoreTokens())
	{
            String current = stringTokenizer.nextToken();
	    if(i==0)x=Integer.parseInt(current);
	    if(i==1)y=Integer.parseInt(current);
	    i++;
	}

	
	System.out.println(x*y+" "+(x+y)*2);
    }
} Main public static void main(String args[]) throws IOException{

	int x=0;
	int y=0;
	int i=0;

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	String delimiter = " ";
        StringTokenizer stringTokenizer = new StringTokenizer( str, delimiter );
	while(stringTokenizer.hasMoreTokens())
	{
            String current = stringTokenizer.nextToken();
	    if(i==0)x=Integer.parseInt(current);
	    if(i==1)y=Integer.parseInt(current);
	    i++;
	}

	
	System.out.println(x*y+" "+(x+y)*2);
    } main {

	int x=0;
	int y=0;
	int i=0;

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	String delimiter = " ";
        StringTokenizer stringTokenizer = new StringTokenizer( str, delimiter );
	while(stringTokenizer.hasMoreTokens())
	{
            String current = stringTokenizer.nextToken();
	    if(i==0)x=Integer.parseInt(current);
	    if(i==1)y=Integer.parseInt(current);
	    i++;
	}

	
	System.out.println(x*y+" "+(x+y)*2);
    } int x=0; x 0 int y=0; y 0 int i=0; i 0 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String delimiter = " "; delimiter " " StringTokenizer stringTokenizer = new StringTokenizer( str, delimiter ); stringTokenizer new StringTokenizer( str, delimiter ) while(stringTokenizer.hasMoreTokens())
	{
            String current = stringTokenizer.nextToken();
	    if(i==0)x=Integer.parseInt(current);
	    if(i==1)y=Integer.parseInt(current);
	    i++;
	} stringTokenizer.hasMoreTokens() stringTokenizer.hasMoreTokens stringTokenizer {
            String current = stringTokenizer.nextToken();
	    if(i==0)x=Integer.parseInt(current);
	    if(i==1)y=Integer.parseInt(current);
	    i++;
	} String current = stringTokenizer.nextToken(); current stringTokenizer.nextToken() stringTokenizer.nextToken stringTokenizer if(i==0)x=Integer.parseInt(current); i==0 i 0 x=Integer.parseInt(current) x Integer.parseInt(current) Integer.parseInt Integer current if(i==1)y=Integer.parseInt(current); i==1 i 1 y=Integer.parseInt(current) y Integer.parseInt(current) Integer.parseInt Integer current i++ i System.out.println(x*y+" "+(x+y)*2) System.out.println System.out System System.out x*y+" "+(x+y)*2 x*y+" "+(x+y)*2 x*y x y " " (x+y)*2 (x+y) x y 2 String args[] args
import java.io.*;
import java.util.*;
class Main{
    public static void main(String args[]) throws IOException{

	int x=0;
	int y=0;
	int i=0;

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	String delimiter = " ";
        StringTokenizer stringTokenizer = new StringTokenizer( str, delimiter );
	while(stringTokenizer.hasMoreTokens())
	{
            String current = stringTokenizer.nextToken();
	    if(i==0)x=Integer.parseInt(current);
	    if(i==1)y=Integer.parseInt(current);
	    i++;
	}

	
	System.out.println(x*y+" "+(x+y)*2);
    }
}