import java.util.Scanner;

public class Main{
     
    public void solve(){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.printf("%d %d\n", calcRectangleArea(a, b), calcRectangleAround(a, b));
        
    }
     
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
    
    public int calcRectangleArea(int height, int width){
        return height * width;
    }
    
    public int calcRectangleAround(int height, int width){
        return (height + width) * 2;
    }
} import java.util.Scanner; Scanner java.util public class Main{
     
    public void solve(){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.printf("%d %d\n", calcRectangleArea(a, b), calcRectangleAround(a, b));
        
    }
     
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
    
    public int calcRectangleArea(int height, int width){
        return height * width;
    }
    
    public int calcRectangleAround(int height, int width){
        return (height + width) * 2;
    }
} Main public void solve(){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.printf("%d %d\n", calcRectangleArea(a, b), calcRectangleAround(a, b));
        
    } solve {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.printf("%d %d\n", calcRectangleArea(a, b), calcRectangleAround(a, b));
        
    } 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 System.out.printf("%d %d\n", calcRectangleArea(a, b), calcRectangleAround(a, b)) System.out.printf System.out System System.out "%d %d\n" calcRectangleArea(a, b) calcRectangleArea a b calcRectangleAround(a, b) calcRectangleAround a b public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    } main {
        Main obj = new Main();
        obj.solve();
    } Main obj = new Main(); obj new Main() obj.solve() obj.solve obj String[] args args public int calcRectangleArea(int height, int width){
        return height * width;
    } calcRectangleArea {
        return height * width;
    } return height * width; height * width height width int height height int width width public int calcRectangleAround(int height, int width){
        return (height + width) * 2;
    } calcRectangleAround {
        return (height + width) * 2;
    } return (height + width) * 2; (height + width) * 2 (height + width) height width 2 int height height int width width public class Main{
     
    public void solve(){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.printf("%d %d\n", calcRectangleArea(a, b), calcRectangleAround(a, b));
        
    }
     
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
    
    public int calcRectangleArea(int height, int width){
        return height * width;
    }
    
    public int calcRectangleAround(int height, int width){
        return (height + width) * 2;
    }
} public class Main{
     
    public void solve(){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.printf("%d %d\n", calcRectangleArea(a, b), calcRectangleAround(a, b));
        
    }
     
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
    
    public int calcRectangleArea(int height, int width){
        return height * width;
    }
    
    public int calcRectangleAround(int height, int width){
        return (height + width) * 2;
    }
} Main
import java.util.Scanner;

public class Main{
     
    public void solve(){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.printf("%d %d\n", calcRectangleArea(a, b), calcRectangleAround(a, b));
        
    }
     
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
    
    public int calcRectangleArea(int height, int width){
        return height * width;
    }
    
    public int calcRectangleAround(int height, int width){
        return (height + width) * 2;
    }
}