import java.util.*;

class Main {

	public static void main(String[] args){
		
		Scanner answer = new Scanner(System.in);

		int a = answer.nextInt();
		int b = answer.nextInt();
		int area = a*b;
		int periphery =(a+b)*2;

		System.out.println(area + " " + periphery);

	}
 } import java.util.*; util.* java class Main {

	public static void main(String[] args){
		
		Scanner answer = new Scanner(System.in);

		int a = answer.nextInt();
		int b = answer.nextInt();
		int area = a*b;
		int periphery =(a+b)*2;

		System.out.println(area + " " + periphery);

	}
 } Main public static void main(String[] args){
		
		Scanner answer = new Scanner(System.in);

		int a = answer.nextInt();
		int b = answer.nextInt();
		int area = a*b;
		int periphery =(a+b)*2;

		System.out.println(area + " " + periphery);

	} main {
		
		Scanner answer = new Scanner(System.in);

		int a = answer.nextInt();
		int b = answer.nextInt();
		int area = a*b;
		int periphery =(a+b)*2;

		System.out.println(area + " " + periphery);

	} Scanner answer = new Scanner(System.in); answer new Scanner(System.in) int a = answer.nextInt(); a answer.nextInt() answer.nextInt answer int b = answer.nextInt(); b answer.nextInt() answer.nextInt answer int area = a*b; area a*b a b int periphery =(a+b)*2; periphery (a+b)*2 (a+b) a b 2 System.out.println(area + " " + periphery) System.out.println System.out System System.out area + " " + periphery area + " " + periphery area " " periphery String[] args args
import java.util.*;

class Main {

	public static void main(String[] args){
		
		Scanner answer = new Scanner(System.in);

		int a = answer.nextInt();
		int b = answer.nextInt();
		int area = a*b;
		int periphery =(a+b)*2;

		System.out.println(area + " " + periphery);

	}
 }