import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int width = sc.nextInt();
        int height = sc.nextInt();
        
        int area = width * height;
        int allLines = (width + height) * 2;
        
        System.out.println(area + " " + allLines);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int width = sc.nextInt();
        int height = sc.nextInt();
        
        int area = width * height;
        int allLines = (width + height) * 2;
        
        System.out.println(area + " " + allLines);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int width = sc.nextInt();
        int height = sc.nextInt();
        
        int area = width * height;
        int allLines = (width + height) * 2;
        
        System.out.println(area + " " + allLines);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int width = sc.nextInt();
        int height = sc.nextInt();
        
        int area = width * height;
        int allLines = (width + height) * 2;
        
        System.out.println(area + " " + allLines);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int width = sc.nextInt(); width sc.nextInt() sc.nextInt sc int height = sc.nextInt(); height sc.nextInt() sc.nextInt sc int area = width * height; area width * height width height int allLines = (width + height) * 2; allLines (width + height) * 2 (width + height) width height 2 System.out.println(area + " " + allLines) System.out.println System.out System System.out area + " " + allLines area + " " + allLines area " " allLines String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int width = sc.nextInt();
        int height = sc.nextInt();
        
        int area = width * height;
        int allLines = (width + height) * 2;
        
        System.out.println(area + " " + allLines);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int width = sc.nextInt();
        int height = sc.nextInt();
        
        int area = width * height;
        int allLines = (width + height) * 2;
        
        System.out.println(area + " " + allLines);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int width = sc.nextInt();
        int height = sc.nextInt();
        
        int area = width * height;
        int allLines = (width + height) * 2;
        
        System.out.println(area + " " + allLines);
    }
}