import java.io.*;
import java.util.*;

class Main{
        public static void main(String[] args){
                Scanner scanner = new Scanner(System.in);
                int a = scanner.nextInt();
                int b = scanner.nextInt();
                System.out.println(a*b + " " + 2*(a+b));
        }
} import java.io.*; io.* java import java.util.*; util.* java class Main{
        public static void main(String[] args){
                Scanner scanner = new Scanner(System.in);
                int a = scanner.nextInt();
                int b = scanner.nextInt();
                System.out.println(a*b + " " + 2*(a+b));
        }
} Main public static void main(String[] args){
                Scanner scanner = new Scanner(System.in);
                int a = scanner.nextInt();
                int b = scanner.nextInt();
                System.out.println(a*b + " " + 2*(a+b));
        } main {
                Scanner scanner = new Scanner(System.in);
                int a = scanner.nextInt();
                int b = scanner.nextInt();
                System.out.println(a*b + " " + 2*(a+b));
        } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner System.out.println(a*b + " " + 2*(a+b)) System.out.println System.out System System.out a*b + " " + 2*(a+b) a*b + " " + 2*(a+b) a*b a b " " 2*(a+b) 2 (a+b) a b String[] args args
import java.io.*;
import java.util.*;

class Main{
        public static void main(String[] args){
                Scanner scanner = new Scanner(System.in);
                int a = scanner.nextInt();
                int b = scanner.nextInt();
                System.out.println(a*b + " " + 2*(a+b));
        }
}