import java.util.Scanner;
class Main{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		int	x = Integer.parseInt(s.next()),
			y = Integer.parseInt(s.next());
		System.out.print  (x*y);
		System.out.print  (" ");
		System.out.println((x+y)*2);
	}
} import java.util.Scanner; Scanner java.util class Main{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		int	x = Integer.parseInt(s.next()),
			y = Integer.parseInt(s.next());
		System.out.print  (x*y);
		System.out.print  (" ");
		System.out.println((x+y)*2);
	}
} Main static Scanner s = new Scanner(System.in); s new Scanner(System.in) public static void main(String[] args) {
		int	x = Integer.parseInt(s.next()),
			y = Integer.parseInt(s.next());
		System.out.print  (x*y);
		System.out.print  (" ");
		System.out.println((x+y)*2);
	} main {
		int	x = Integer.parseInt(s.next()),
			y = Integer.parseInt(s.next());
		System.out.print  (x*y);
		System.out.print  (" ");
		System.out.println((x+y)*2);
	} int	x = Integer.parseInt(s.next()) x Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s y = Integer.parseInt(s.next()); y Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s System.out.print  (x*y) System.out.print System.out System System.out x*y x y System.out.print  (" ") System.out.print System.out System System.out " " System.out.println((x+y)*2) System.out.println System.out System System.out (x+y)*2 (x+y) x y 2 String[] args args
import java.util.Scanner;
class Main{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		int	x = Integer.parseInt(s.next()),
			y = Integer.parseInt(s.next());
		System.out.print  (x*y);
		System.out.print  (" ");
		System.out.println((x+y)*2);
	}
}