import java.util.Scanner;
public class Main {
	void rect(){
		int a,b;
		Scanner s1 = new Scanner(System.in);
		a = s1.nextInt();
		b = s1.nextInt();
		System.out.println(a*b + " " + (2*a+2*b));
	}
	public static void main(String args[]){
		Main m1 = new Main();
		m1.rect();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void rect(){
		int a,b;
		Scanner s1 = new Scanner(System.in);
		a = s1.nextInt();
		b = s1.nextInt();
		System.out.println(a*b + " " + (2*a+2*b));
	}
	public static void main(String args[]){
		Main m1 = new Main();
		m1.rect();
	}
} Main void rect(){
		int a,b;
		Scanner s1 = new Scanner(System.in);
		a = s1.nextInt();
		b = s1.nextInt();
		System.out.println(a*b + " " + (2*a+2*b));
	} rect {
		int a,b;
		Scanner s1 = new Scanner(System.in);
		a = s1.nextInt();
		b = s1.nextInt();
		System.out.println(a*b + " " + (2*a+2*b));
	} int a a b; b Scanner s1 = new Scanner(System.in); s1 new Scanner(System.in) a = s1.nextInt() a s1.nextInt() s1.nextInt s1 b = s1.nextInt() b s1.nextInt() s1.nextInt s1 System.out.println(a*b + " " + (2*a+2*b)) System.out.println System.out System System.out a*b + " " + (2*a+2*b) a*b + " " + (2*a+2*b) a*b a b " " (2*a+2*b) 2*a 2 a 2*b 2 b public static void main(String args[]){
		Main m1 = new Main();
		m1.rect();
	} main {
		Main m1 = new Main();
		m1.rect();
	} Main m1 = new Main(); m1 new Main() m1.rect() m1.rect m1 String args[] args public class Main {
	void rect(){
		int a,b;
		Scanner s1 = new Scanner(System.in);
		a = s1.nextInt();
		b = s1.nextInt();
		System.out.println(a*b + " " + (2*a+2*b));
	}
	public static void main(String args[]){
		Main m1 = new Main();
		m1.rect();
	}
} public class Main {
	void rect(){
		int a,b;
		Scanner s1 = new Scanner(System.in);
		a = s1.nextInt();
		b = s1.nextInt();
		System.out.println(a*b + " " + (2*a+2*b));
	}
	public static void main(String args[]){
		Main m1 = new Main();
		m1.rect();
	}
} Main
import java.util.Scanner;
public class Main {
	void rect(){
		int a,b;
		Scanner s1 = new Scanner(System.in);
		a = s1.nextInt();
		b = s1.nextInt();
		System.out.println(a*b + " " + (2*a+2*b));
	}
	public static void main(String args[]){
		Main m1 = new Main();
		m1.rect();
	}
}