import java.util.*;

class Main {
    public static void main( String[] args){
        Scanner sc = new Scanner( System.in);
        int a =sc.nextInt();
        int b = sc.nextInt();
        if((a<1 || 100<a) || (b<1 || 100<b)){
            System.exit(-1);
        }
        int area = a*b;
        int length = 2*(a+b);
        System.out.println(area+" "+length);
    }
} import java.util.*; util.* java class Main {
    public static void main( String[] args){
        Scanner sc = new Scanner( System.in);
        int a =sc.nextInt();
        int b = sc.nextInt();
        if((a<1 || 100<a) || (b<1 || 100<b)){
            System.exit(-1);
        }
        int area = a*b;
        int length = 2*(a+b);
        System.out.println(area+" "+length);
    }
} Main public static void main( String[] args){
        Scanner sc = new Scanner( System.in);
        int a =sc.nextInt();
        int b = sc.nextInt();
        if((a<1 || 100<a) || (b<1 || 100<b)){
            System.exit(-1);
        }
        int area = a*b;
        int length = 2*(a+b);
        System.out.println(area+" "+length);
    } main {
        Scanner sc = new Scanner( System.in);
        int a =sc.nextInt();
        int b = sc.nextInt();
        if((a<1 || 100<a) || (b<1 || 100<b)){
            System.exit(-1);
        }
        int area = a*b;
        int length = 2*(a+b);
        System.out.println(area+" "+length);
    } Scanner sc = new Scanner( System.in); sc new Scanner( System.in) int a =sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if((a<1 || 100<a) || (b<1 || 100<b)){
            System.exit(-1);
        } (a<1 || 100<a) || (b<1 || 100<b) (a<1 || 100<a) a<1 a 1 100<a 100 a (b<1 || 100<b) b<1 b 1 100<b 100 b {
            System.exit(-1);
        } System.exit(-1) System.exit System -1 1 int area = a*b; area a*b a b int length = 2*(a+b); length 2*(a+b) 2 (a+b) a b System.out.println(area+" "+length) System.out.println System.out System System.out area+" "+length area+" "+length area " " length String[] args args
import java.util.*;

class Main {
    public static void main( String[] args){
        Scanner sc = new Scanner( System.in);
        int a =sc.nextInt();
        int b = sc.nextInt();
        if((a<1 || 100<a) || (b<1 || 100<b)){
            System.exit(-1);
        }
        int area = a*b;
        int length = 2*(a+b);
        System.out.println(area+" "+length);
    }
}