import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // TODO code application logic here
        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 S = a * b;
        int L = 2*(a + b);
        System.out.println(S+" "+L);
    }
    
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        // TODO code application logic here
        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 S = a * b;
        int L = 2*(a + b);
        System.out.println(S+" "+L);
    }
    
} Main public static void main(String[] args) {
        // TODO code application logic here
        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 S = a * b;
        int L = 2*(a + b);
        System.out.println(S+" "+L);
    } main {
        // TODO code application logic here
        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 S = a * b;
        int L = 2*(a + b);
        System.out.println(S+" "+L);
    } 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 S = a * b; S a * b a b int L = 2*(a + b); L 2*(a + b) 2 (a + b) a b System.out.println(S+" "+L) System.out.println System.out System System.out S+" "+L S+" "+L S " " L String[] args args public class Main {

    public static void main(String[] args) {
        // TODO code application logic here
        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 S = a * b;
        int L = 2*(a + b);
        System.out.println(S+" "+L);
    }
    
} public class Main {

    public static void main(String[] args) {
        // TODO code application logic here
        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 S = a * b;
        int L = 2*(a + b);
        System.out.println(S+" "+L);
    }
    
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // TODO code application logic here
        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 S = a * b;
        int L = 2*(a + b);
        System.out.println(S+" "+L);
    }
    
}