import java.util.*;

public class Main {
    private static Scanner scr;
	public static void main(String args[]){
	    scr = new Scanner(System.in);
		String[] str = scr.nextLine().split(" ",0);;
		int l = Integer.parseInt(str[0]);
		int h = Integer.parseInt(str[1]);
		System.out.println( (l*h) + " " + ((l+h)*2) );
        
	}
} import java.util.*; util.* java public class Main {
    private static Scanner scr;
	public static void main(String args[]){
	    scr = new Scanner(System.in);
		String[] str = scr.nextLine().split(" ",0);;
		int l = Integer.parseInt(str[0]);
		int h = Integer.parseInt(str[1]);
		System.out.println( (l*h) + " " + ((l+h)*2) );
        
	}
} Main private static Scanner scr; scr public static void main(String args[]){
	    scr = new Scanner(System.in);
		String[] str = scr.nextLine().split(" ",0);;
		int l = Integer.parseInt(str[0]);
		int h = Integer.parseInt(str[1]);
		System.out.println( (l*h) + " " + ((l+h)*2) );
        
	} main {
	    scr = new Scanner(System.in);
		String[] str = scr.nextLine().split(" ",0);;
		int l = Integer.parseInt(str[0]);
		int h = Integer.parseInt(str[1]);
		System.out.println( (l*h) + " " + ((l+h)*2) );
        
	} scr = new Scanner(System.in) scr new Scanner(System.in) String[] str = scr.nextLine().split(" ",0); str scr.nextLine().split(" ",0) scr.nextLine().split scr.nextLine() scr.nextLine scr " " 0 int l = Integer.parseInt(str[0]); l Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int h = Integer.parseInt(str[1]); h Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 System.out.println( (l*h) + " " + ((l+h)*2) ) System.out.println System.out System System.out (l*h) + " " + ((l+h)*2) (l*h) + " " + ((l+h)*2) (l*h) l h " " ((l+h)*2) (l+h) l h 2 String args[] args public class Main {
    private static Scanner scr;
	public static void main(String args[]){
	    scr = new Scanner(System.in);
		String[] str = scr.nextLine().split(" ",0);;
		int l = Integer.parseInt(str[0]);
		int h = Integer.parseInt(str[1]);
		System.out.println( (l*h) + " " + ((l+h)*2) );
        
	}
} public class Main {
    private static Scanner scr;
	public static void main(String args[]){
	    scr = new Scanner(System.in);
		String[] str = scr.nextLine().split(" ",0);;
		int l = Integer.parseInt(str[0]);
		int h = Integer.parseInt(str[1]);
		System.out.println( (l*h) + " " + ((l+h)*2) );
        
	}
} Main
import java.util.*;

public class Main {
    private static Scanner scr;
	public static void main(String args[]){
	    scr = new Scanner(System.in);
		String[] str = scr.nextLine().split(" ",0);;
		int l = Integer.parseInt(str[0]);
		int h = Integer.parseInt(str[1]);
		System.out.println( (l*h) + " " + ((l+h)*2) );
        
	}
}