import java.io.*;
class Main
{
    public static void main(String[] args9)
    { 
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 
	String line=null;
	try {
	    line = br.readLine();
	} catch (IOException e) {
	    System.out.println("Input strange");
	}
	    
	String[] f= line.split(" ",0);
	int m = Integer.parseInt(f[0]);
	int n = Integer.parseInt(f[1]);
	System.out.printf("%d %d\n", m*n , 2*(m+n));
    }

} import java.io.*; io.* java class Main
{
    public static void main(String[] args9)
    { 
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 
	String line=null;
	try {
	    line = br.readLine();
	} catch (IOException e) {
	    System.out.println("Input strange");
	}
	    
	String[] f= line.split(" ",0);
	int m = Integer.parseInt(f[0]);
	int n = Integer.parseInt(f[1]);
	System.out.printf("%d %d\n", m*n , 2*(m+n));
    }

} Main public static void main(String[] args9)
    { 
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 
	String line=null;
	try {
	    line = br.readLine();
	} catch (IOException e) {
	    System.out.println("Input strange");
	}
	    
	String[] f= line.split(" ",0);
	int m = Integer.parseInt(f[0]);
	int n = Integer.parseInt(f[1]);
	System.out.printf("%d %d\n", m*n , 2*(m+n));
    } main { 
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 
	String line=null;
	try {
	    line = br.readLine();
	} catch (IOException e) {
	    System.out.println("Input strange");
	}
	    
	String[] f= line.split(" ",0);
	int m = Integer.parseInt(f[0]);
	int n = Integer.parseInt(f[1]);
	System.out.printf("%d %d\n", m*n , 2*(m+n));
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line=null; line null try {
	    line = br.readLine();
	} catch (IOException e) {
	    System.out.println("Input strange");
	} catch (IOException e) {
	    System.out.println("Input strange");
	} IOException e {
	    System.out.println("Input strange");
	} System.out.println("Input strange") System.out.println System.out System System.out "Input strange" {
	    line = br.readLine();
	} line = br.readLine() line br.readLine() br.readLine br String[] f= line.split(" ",0); f line.split(" ",0) line.split line " " 0 int m = Integer.parseInt(f[0]); m Integer.parseInt(f[0]) Integer.parseInt Integer f[0] f 0 int n = Integer.parseInt(f[1]); n Integer.parseInt(f[1]) Integer.parseInt Integer f[1] f 1 System.out.printf("%d %d\n", m*n , 2*(m+n)) System.out.printf System.out System System.out "%d %d\n" m*n m n 2*(m+n) 2 (m+n) m n String[] args9 args9
import java.io.*;
class Main
{
    public static void main(String[] args9)
    { 
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 
	String line=null;
	try {
	    line = br.readLine();
	} catch (IOException e) {
	    System.out.println("Input strange");
	}
	    
	String[] f= line.split(" ",0);
	int m = Integer.parseInt(f[0]);
	int n = Integer.parseInt(f[1]);
	System.out.printf("%d %d\n", m*n , 2*(m+n));
    }

}