import java.io.IOException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws IOException
    {
        Scanner in = new Scanner(System.in);
        String str1 = in.next();
        String str2 = in.next();
        int a = Integer.parseInt(str1);
        int b = Integer.parseInt(str2);
        int x = a * b;
        int y = ( a + b ) * 2;
        System.out.println(x+" "+y);
    }
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws IOException
    {
        Scanner in = new Scanner(System.in);
        String str1 = in.next();
        String str2 = in.next();
        int a = Integer.parseInt(str1);
        int b = Integer.parseInt(str2);
        int x = a * b;
        int y = ( a + b ) * 2;
        System.out.println(x+" "+y);
    }
} Main public static void main(String[] args) throws IOException
    {
        Scanner in = new Scanner(System.in);
        String str1 = in.next();
        String str2 = in.next();
        int a = Integer.parseInt(str1);
        int b = Integer.parseInt(str2);
        int x = a * b;
        int y = ( a + b ) * 2;
        System.out.println(x+" "+y);
    } main {
        Scanner in = new Scanner(System.in);
        String str1 = in.next();
        String str2 = in.next();
        int a = Integer.parseInt(str1);
        int b = Integer.parseInt(str2);
        int x = a * b;
        int y = ( a + b ) * 2;
        System.out.println(x+" "+y);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) String str1 = in.next(); str1 in.next() in.next in String str2 = in.next(); str2 in.next() in.next in int a = Integer.parseInt(str1); a Integer.parseInt(str1) Integer.parseInt Integer str1 int b = Integer.parseInt(str2); b Integer.parseInt(str2) Integer.parseInt Integer str2 int x = a * b; x a * b a b int y = ( a + b ) * 2; y ( a + b ) * 2 ( a + b ) a b 2 System.out.println(x+" "+y) System.out.println System.out System System.out x+" "+y x+" "+y x " " y String[] args args public class Main {
    public static void main(String[] args) throws IOException
    {
        Scanner in = new Scanner(System.in);
        String str1 = in.next();
        String str2 = in.next();
        int a = Integer.parseInt(str1);
        int b = Integer.parseInt(str2);
        int x = a * b;
        int y = ( a + b ) * 2;
        System.out.println(x+" "+y);
    }
} public class Main {
    public static void main(String[] args) throws IOException
    {
        Scanner in = new Scanner(System.in);
        String str1 = in.next();
        String str2 = in.next();
        int a = Integer.parseInt(str1);
        int b = Integer.parseInt(str2);
        int x = a * b;
        int y = ( a + b ) * 2;
        System.out.println(x+" "+y);
    }
} Main
import java.io.IOException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws IOException
    {
        Scanner in = new Scanner(System.in);
        String str1 = in.next();
        String str2 = in.next();
        int a = Integer.parseInt(str1);
        int b = Integer.parseInt(str2);
        int x = a * b;
        int y = ( a + b ) * 2;
        System.out.println(x+" "+y);
    }
}