import java.util.Scanner;

public class Main { 
	public static void main(String[] args){
		String str;
		int i1, i2;;

		Scanner scan = new Scanner(System.in);

		str = scan.next();
		i1 = Integer.parseInt(str);
		
		str = scan.next();
		i2 = Integer.parseInt(str);

		System.out.println(i1*i2 + " " + 2*(i1+i2));
	}
} import java.util.Scanner; Scanner java.util public class Main { 
	public static void main(String[] args){
		String str;
		int i1, i2;;

		Scanner scan = new Scanner(System.in);

		str = scan.next();
		i1 = Integer.parseInt(str);
		
		str = scan.next();
		i2 = Integer.parseInt(str);

		System.out.println(i1*i2 + " " + 2*(i1+i2));
	}
} Main public static void main(String[] args){
		String str;
		int i1, i2;;

		Scanner scan = new Scanner(System.in);

		str = scan.next();
		i1 = Integer.parseInt(str);
		
		str = scan.next();
		i2 = Integer.parseInt(str);

		System.out.println(i1*i2 + " " + 2*(i1+i2));
	} main {
		String str;
		int i1, i2;;

		Scanner scan = new Scanner(System.in);

		str = scan.next();
		i1 = Integer.parseInt(str);
		
		str = scan.next();
		i2 = Integer.parseInt(str);

		System.out.println(i1*i2 + " " + 2*(i1+i2));
	} String str; str int i1 i1 i2; i2 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) str = scan.next() str scan.next() scan.next scan i1 = Integer.parseInt(str) i1 Integer.parseInt(str) Integer.parseInt Integer str str = scan.next() str scan.next() scan.next scan i2 = Integer.parseInt(str) i2 Integer.parseInt(str) Integer.parseInt Integer str System.out.println(i1*i2 + " " + 2*(i1+i2)) System.out.println System.out System System.out i1*i2 + " " + 2*(i1+i2) i1*i2 + " " + 2*(i1+i2) i1*i2 i1 i2 " " 2*(i1+i2) 2 (i1+i2) i1 i2 String[] args args public class Main { 
	public static void main(String[] args){
		String str;
		int i1, i2;;

		Scanner scan = new Scanner(System.in);

		str = scan.next();
		i1 = Integer.parseInt(str);
		
		str = scan.next();
		i2 = Integer.parseInt(str);

		System.out.println(i1*i2 + " " + 2*(i1+i2));
	}
} public class Main { 
	public static void main(String[] args){
		String str;
		int i1, i2;;

		Scanner scan = new Scanner(System.in);

		str = scan.next();
		i1 = Integer.parseInt(str);
		
		str = scan.next();
		i2 = Integer.parseInt(str);

		System.out.println(i1*i2 + " " + 2*(i1+i2));
	}
} Main
import java.util.Scanner;

public class Main { 
	public static void main(String[] args){
		String str;
		int i1, i2;;

		Scanner scan = new Scanner(System.in);

		str = scan.next();
		i1 = Integer.parseInt(str);
		
		str = scan.next();
		i2 = Integer.parseInt(str);

		System.out.println(i1*i2 + " " + 2*(i1+i2));
	}
}