import java.util.Scanner;


public class Main{
	public static void main(String[] args) {

		Input test = new Input();
		test.num();

		
	}
}

class Input{
	void num() {
		
		Scanner sc=new Scanner(System.in);
        int x = sc.nextInt();
        int x2 = sc.nextInt();
        System.out.print(x*x2);
        System.out.print(" ");
        System.out.println((x+x2)*2);

	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {

		Input test = new Input();
		test.num();

		
	}
} Main public static void main(String[] args) {

		Input test = new Input();
		test.num();

		
	} main {

		Input test = new Input();
		test.num();

		
	} Input test = new Input(); test new Input() test.num() test.num test String[] args args class Input{
	void num() {
		
		Scanner sc=new Scanner(System.in);
        int x = sc.nextInt();
        int x2 = sc.nextInt();
        System.out.print(x*x2);
        System.out.print(" ");
        System.out.println((x+x2)*2);

	}
} Input void num() {
		
		Scanner sc=new Scanner(System.in);
        int x = sc.nextInt();
        int x2 = sc.nextInt();
        System.out.print(x*x2);
        System.out.print(" ");
        System.out.println((x+x2)*2);

	} num {
		
		Scanner sc=new Scanner(System.in);
        int x = sc.nextInt();
        int x2 = sc.nextInt();
        System.out.print(x*x2);
        System.out.print(" ");
        System.out.println((x+x2)*2);

	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int x2 = sc.nextInt(); x2 sc.nextInt() sc.nextInt sc System.out.print(x*x2) System.out.print System.out System System.out x*x2 x x2 System.out.print(" ") System.out.print System.out System System.out " " System.out.println((x+x2)*2) System.out.println System.out System System.out (x+x2)*2 (x+x2) x x2 2 public class Main{
	public static void main(String[] args) {

		Input test = new Input();
		test.num();

		
	}
} public class Main{
	public static void main(String[] args) {

		Input test = new Input();
		test.num();

		
	}
} Main
import java.util.Scanner;


public class Main{
	public static void main(String[] args) {

		Input test = new Input();
		test.num();

		
	}
}

class Input{
	void num() {
		
		Scanner sc=new Scanner(System.in);
        int x = sc.nextInt();
        int x2 = sc.nextInt();
        System.out.print(x*x2);
        System.out.print(" ");
        System.out.println((x+x2)*2);

	}
}