import java.util.Scanner;

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    
    int b = sc.nextInt();
    
    int c = 2*a+2*b;
    int d = a*b;
    
    System.out.println(d + " " + c);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    
    int b = sc.nextInt();
    
    int c = 2*a+2*b;
    int d = a*b;
    
    System.out.println(d + " " + c);
    }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    
    int b = sc.nextInt();
    
    int c = 2*a+2*b;
    int d = a*b;
    
    System.out.println(d + " " + c);
    } main {
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    
    int b = sc.nextInt();
    
    int c = 2*a+2*b;
    int d = a*b;
    
    System.out.println(d + " " + c);
    } 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 int c = 2*a+2*b; c 2*a+2*b 2*a 2 a 2*b 2 b int d = a*b; d a*b a b System.out.println(d + " " + c) System.out.println System.out System System.out d + " " + c d + " " + c d " " c String[] args args public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    
    int b = sc.nextInt();
    
    int c = 2*a+2*b;
    int d = a*b;
    
    System.out.println(d + " " + c);
    }
} public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    
    int b = sc.nextInt();
    
    int c = 2*a+2*b;
    int d = a*b;
    
    System.out.println(d + " " + c);
    }
} Main
import java.util.Scanner;

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