import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int a = Integer.parseInt(input1);
	String input2 = scan.next();
	int b = Integer.parseInt(input2);
	int area = a * b;
	int length = (a + b) * 2;
	System.out.println(area + " " + length);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int a = Integer.parseInt(input1);
	String input2 = scan.next();
	int b = Integer.parseInt(input2);
	int area = a * b;
	int length = (a + b) * 2;
	System.out.println(area + " " + length);
    }
} Main public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int a = Integer.parseInt(input1);
	String input2 = scan.next();
	int b = Integer.parseInt(input2);
	int area = a * b;
	int length = (a + b) * 2;
	System.out.println(area + " " + length);
    } main {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int a = Integer.parseInt(input1);
	String input2 = scan.next();
	int b = Integer.parseInt(input2);
	int area = a * b;
	int length = (a + b) * 2;
	System.out.println(area + " " + length);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String input1 = scan.next(); input1 scan.next() scan.next scan int a = Integer.parseInt(input1); a Integer.parseInt(input1) Integer.parseInt Integer input1 String input2 = scan.next(); input2 scan.next() scan.next scan int b = Integer.parseInt(input2); b Integer.parseInt(input2) Integer.parseInt Integer input2 int area = a * b; area a * b a b int length = (a + b) * 2; length (a + b) * 2 (a + b) a b 2 System.out.println(area + " " + length) System.out.println System.out System System.out area + " " + length area + " " + length area " " length String[] args args public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int a = Integer.parseInt(input1);
	String input2 = scan.next();
	int b = Integer.parseInt(input2);
	int area = a * b;
	int length = (a + b) * 2;
	System.out.println(area + " " + length);
    }
} public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int a = Integer.parseInt(input1);
	String input2 = scan.next();
	int b = Integer.parseInt(input2);
	int area = a * b;
	int length = (a + b) * 2;
	System.out.println(area + " " + length);
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int a = Integer.parseInt(input1);
	String input2 = scan.next();
	int b = Integer.parseInt(input2);
	int area = a * b;
	int length = (a + b) * 2;
	System.out.println(area + " " + length);
    }
}