import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int S = num1*num2;
        int L = 2*(num1+num2);
        System.out.println(S+" "+L);
        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int S = num1*num2;
        int L = 2*(num1+num2);
        System.out.println(S+" "+L);
        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int S = num1*num2;
        int L = 2*(num1+num2);
        System.out.println(S+" "+L);
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int S = num1*num2;
        int L = 2*(num1+num2);
        System.out.println(S+" "+L);
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan int S = num1*num2; S num1*num2 num1 num2 int L = 2*(num1+num2); L 2*(num1+num2) 2 (num1+num2) num1 num2 System.out.println(S+" "+L) System.out.println System.out System System.out S+" "+L S+" "+L S " " L scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int S = num1*num2;
        int L = 2*(num1+num2);
        System.out.println(S+" "+L);
        scan.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int S = num1*num2;
        int L = 2*(num1+num2);
        System.out.println(S+" "+L);
        scan.close();
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int S = num1*num2;
        int L = 2*(num1+num2);
        System.out.println(S+" "+L);
        scan.close();
    }
}
