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