import java.util.Scanner;

class Main
{
    public static void main(String args[])
    {
        Scanner scan = new Scanner(System.in);
        
        int a = scan.nextInt();
        int b = scan.nextInt();
        System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    }
} import java.util.Scanner; Scanner java.util class Main
{
    public static void main(String args[])
    {
        Scanner scan = new Scanner(System.in);
        
        int a = scan.nextInt();
        int b = scan.nextInt();
        System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    }
} Main public static void main(String args[])
    {
        Scanner scan = new Scanner(System.in);
        
        int a = scan.nextInt();
        int b = scan.nextInt();
        System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    } main {
        Scanner scan = new Scanner(System.in);
        
        int a = scan.nextInt();
        int b = scan.nextInt();
        System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan System.out.print(a*b+" ") System.out.print System.out System System.out a*b+" " a*b a b " " System.out.println(2*a+2*b) System.out.println System.out System System.out 2*a+2*b 2*a 2 a 2*b 2 b String args[] args
import java.util.Scanner;

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