import java.util.Scanner;

class Main{
    static int area(int a, int b){
	return a * b;
    }
    static int surr(int a, int b){
	return (2 *(a + b));
    }

    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	int x = stdIn.nextInt();
	int y = stdIn.nextInt();
	System.out.println(area(x , y) + " " + surr(x , y));
    }
} import java.util.Scanner; Scanner java.util class Main{
    static int area(int a, int b){
	return a * b;
    }
    static int surr(int a, int b){
	return (2 *(a + b));
    }

    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	int x = stdIn.nextInt();
	int y = stdIn.nextInt();
	System.out.println(area(x , y) + " " + surr(x , y));
    }
} Main static int area(int a, int b){
	return a * b;
    } area {
	return a * b;
    } return a * b; a * b a b int a a int b b static int surr(int a, int b){
	return (2 *(a + b));
    } surr {
	return (2 *(a + b));
    } return (2 *(a + b)); (2 *(a + b)) 2 (a + b) a b int a a int b b public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	int x = stdIn.nextInt();
	int y = stdIn.nextInt();
	System.out.println(area(x , y) + " " + surr(x , y));
    } main {
	Scanner stdIn = new Scanner(System.in);
	int x = stdIn.nextInt();
	int y = stdIn.nextInt();
	System.out.println(area(x , y) + " " + surr(x , y));
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int x = stdIn.nextInt(); x stdIn.nextInt() stdIn.nextInt stdIn int y = stdIn.nextInt(); y stdIn.nextInt() stdIn.nextInt stdIn System.out.println(area(x , y) + " " + surr(x , y)) System.out.println System.out System System.out area(x , y) + " " + surr(x , y) area(x , y) + " " + surr(x , y) area(x , y) area x y " " surr(x , y) surr x y String[] args args
import java.util.Scanner;

class Main{
    static int area(int a, int b){
	return a * b;
    }
    static int surr(int a, int b){
	return (2 *(a + b));
    }

    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	int x = stdIn.nextInt();
	int y = stdIn.nextInt();
	System.out.println(area(x , y) + " " + surr(x , y));
    }
}