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