import java.util.*;

public class Main {
	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int t = scan.nextInt();
	int y = scan.nextInt();
	int m = t*y;
	int n = 2*t + 2*y;

	System.out.println(m + " " + n);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int t = scan.nextInt();
	int y = scan.nextInt();
	int m = t*y;
	int n = 2*t + 2*y;

	System.out.println(m + " " + n);
	}
} Main public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int t = scan.nextInt();
	int y = scan.nextInt();
	int m = t*y;
	int n = 2*t + 2*y;

	System.out.println(m + " " + n);
	} main {
	Scanner scan = new Scanner(System.in);
	int t = scan.nextInt();
	int y = scan.nextInt();
	int m = t*y;
	int n = 2*t + 2*y;

	System.out.println(m + " " + n);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int t = scan.nextInt(); t scan.nextInt() scan.nextInt scan int y = scan.nextInt(); y scan.nextInt() scan.nextInt scan int m = t*y; m t*y t y int n = 2*t + 2*y; n 2*t + 2*y 2*t 2 t 2*y 2 y System.out.println(m + " " + n) System.out.println System.out System System.out m + " " + n m + " " + n m " " n String[] args args public class Main {
	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int t = scan.nextInt();
	int y = scan.nextInt();
	int m = t*y;
	int n = 2*t + 2*y;

	System.out.println(m + " " + n);
	}
} public class Main {
	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int t = scan.nextInt();
	int y = scan.nextInt();
	int m = t*y;
	int n = 2*t + 2*y;

	System.out.println(m + " " + n);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int t = scan.nextInt();
	int y = scan.nextInt();
	int m = t*y;
	int n = 2*t + 2*y;

	System.out.println(m + " " + n);
	}
}