import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int s = a*b;
			int syu = (a+b)*2;
			System.out.println(s + " " + syu);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int s = a*b;
			int syu = (a+b)*2;
			System.out.println(s + " " + syu);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int s = a*b;
			int syu = (a+b)*2;
			System.out.println(s + " " + syu);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int s = a*b;
			int syu = (a+b)*2;
			System.out.println(s + " " + syu);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int s = a*b;
			int syu = (a+b)*2;
			System.out.println(s + " " + syu);
		} sc.hasNext() sc.hasNext sc {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int s = a*b;
			int syu = (a+b)*2;
			System.out.println(s + " " + syu);
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int s = a*b; s a*b a b int syu = (a+b)*2; syu (a+b)*2 (a+b) a b 2 System.out.println(s + " " + syu) System.out.println System.out System System.out s + " " + syu s + " " + syu s " " syu String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int s = a*b;
			int syu = (a+b)*2;
			System.out.println(s + " " + syu);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int s = a*b;
			int syu = (a+b)*2;
			System.out.println(s + " " + syu);
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int s = a*b;
			int syu = (a+b)*2;
			System.out.println(s + " " + syu);
		}
	}
}