import java.util.Scanner;

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

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