import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;


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

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		
		int x=scan.nextInt();
		int y=scan.nextInt();
		
		System.out.print(x*y+" ");
		System.out.println(2*(x+y));
		
	}

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

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

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;


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

}