import java.util.Scanner;

class Main {
    public static void main(String[] args) {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int a = Integer.parseInt(sc.next());
    	int b = Integer.parseInt(sc.next());
        System.out.println(a*b+" "+(a+b)*2);
    }
}
 import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int a = Integer.parseInt(sc.next());
    	int b = Integer.parseInt(sc.next());
        System.out.println(a*b+" "+(a+b)*2);
    }
} Main public static void main(String[] args) {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int a = Integer.parseInt(sc.next());
    	int b = Integer.parseInt(sc.next());
        System.out.println(a*b+" "+(a+b)*2);
    } main {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int a = Integer.parseInt(sc.next());
    	int b = Integer.parseInt(sc.next());
        System.out.println(a*b+" "+(a+b)*2);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc System.out.println(a*b+" "+(a+b)*2) System.out.println System.out System System.out a*b+" "+(a+b)*2 a*b+" "+(a+b)*2 a*b a b " " (a+b)*2 (a+b) a b 2 String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int a = Integer.parseInt(sc.next());
    	int b = Integer.parseInt(sc.next());
        System.out.println(a*b+" "+(a+b)*2);
    }
}

