import java.util.*;

class Main {
    public static void main(String[] args) throws Exception{
        Scanner input = new Scanner(System.in);
        int x = input.nextInt();
        int y = input.nextInt();
        System.out.println((x*y)+" "+(x+x+y+y));
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) throws Exception{
        Scanner input = new Scanner(System.in);
        int x = input.nextInt();
        int y = input.nextInt();
        System.out.println((x*y)+" "+(x+x+y+y));
    }
} Main public static void main(String[] args) throws Exception{
        Scanner input = new Scanner(System.in);
        int x = input.nextInt();
        int y = input.nextInt();
        System.out.println((x*y)+" "+(x+x+y+y));
    } main {
        Scanner input = new Scanner(System.in);
        int x = input.nextInt();
        int y = input.nextInt();
        System.out.println((x*y)+" "+(x+x+y+y));
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int x = input.nextInt(); x input.nextInt() input.nextInt input int y = input.nextInt(); y input.nextInt() input.nextInt input System.out.println((x*y)+" "+(x+x+y+y)) System.out.println System.out System System.out (x*y)+" "+(x+x+y+y) (x*y)+" "+(x+x+y+y) (x*y) x y " " (x+x+y+y) y x+x+y+y x x y y String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) throws Exception{
        Scanner input = new Scanner(System.in);
        int x = input.nextInt();
        int y = input.nextInt();
        System.out.println((x*y)+" "+(x+x+y+y));
    }
}