import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		String a = input.next();
		String b = input.next();

		int ai = Integer.parseInt(a);
		int bi = Integer.parseInt(b);

		int s = ai * bi;
		int l = 2*(ai + bi);

		System.out.println(s + " " + l);
		
		
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		String a = input.next();
		String b = input.next();

		int ai = Integer.parseInt(a);
		int bi = Integer.parseInt(b);

		int s = ai * bi;
		int l = 2*(ai + bi);

		System.out.println(s + " " + l);
		
		
	}
} Main public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		String a = input.next();
		String b = input.next();

		int ai = Integer.parseInt(a);
		int bi = Integer.parseInt(b);

		int s = ai * bi;
		int l = 2*(ai + bi);

		System.out.println(s + " " + l);
		
		
	} main {
		Scanner input = new Scanner(System.in);
		String a = input.next();
		String b = input.next();

		int ai = Integer.parseInt(a);
		int bi = Integer.parseInt(b);

		int s = ai * bi;
		int l = 2*(ai + bi);

		System.out.println(s + " " + l);
		
		
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) String a = input.next(); a input.next() input.next input String b = input.next(); b input.next() input.next input int ai = Integer.parseInt(a); ai Integer.parseInt(a) Integer.parseInt Integer a int bi = Integer.parseInt(b); bi Integer.parseInt(b) Integer.parseInt Integer b int s = ai * bi; s ai * bi ai bi int l = 2*(ai + bi); l 2*(ai + bi) 2 (ai + bi) ai bi System.out.println(s + " " + l) System.out.println System.out System System.out s + " " + l s + " " + l s " " l String[] args args public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		String a = input.next();
		String b = input.next();

		int ai = Integer.parseInt(a);
		int bi = Integer.parseInt(b);

		int s = ai * bi;
		int l = 2*(ai + bi);

		System.out.println(s + " " + l);
		
		
	}
} public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		String a = input.next();
		String b = input.next();

		int ai = Integer.parseInt(a);
		int bi = Integer.parseInt(b);

		int s = ai * bi;
		int l = 2*(ai + bi);

		System.out.println(s + " " + l);
		
		
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		String a = input.next();
		String b = input.next();

		int ai = Integer.parseInt(a);
		int bi = Integer.parseInt(b);

		int s = ai * bi;
		int l = 2*(ai + bi);

		System.out.println(s + " " + l);
		
		
	}
}