import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int line_x = Integer.parseInt(line[0]);
            int line_y = Integer.parseInt(line[1]);

            System.out.println(line_x*line_y +" "+ 2*(line_x+line_y));
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int line_x = Integer.parseInt(line[0]);
            int line_y = Integer.parseInt(line[1]);

            System.out.println(line_x*line_y +" "+ 2*(line_x+line_y));
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int line_x = Integer.parseInt(line[0]);
            int line_y = Integer.parseInt(line[1]);

            System.out.println(line_x*line_y +" "+ 2*(line_x+line_y));
        }
    } main {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int line_x = Integer.parseInt(line[0]);
            int line_y = Integer.parseInt(line[1]);

            System.out.println(line_x*line_y +" "+ 2*(line_x+line_y));
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int line_x = Integer.parseInt(line[0]);
            int line_y = Integer.parseInt(line[1]);

            System.out.println(line_x*line_y +" "+ 2*(line_x+line_y));
        } sc.hasNext() sc.hasNext sc {
            String[] line = sc.nextLine().split(" ");
            int line_x = Integer.parseInt(line[0]);
            int line_y = Integer.parseInt(line[1]);

            System.out.println(line_x*line_y +" "+ 2*(line_x+line_y));
        } String[] line = sc.nextLine().split(" "); line sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int line_x = Integer.parseInt(line[0]); line_x Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int line_y = Integer.parseInt(line[1]); line_y Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 System.out.println(line_x*line_y +" "+ 2*(line_x+line_y)) System.out.println System.out System System.out line_x*line_y +" "+ 2*(line_x+line_y) line_x*line_y +" "+ 2*(line_x+line_y) line_x*line_y line_x line_y " " 2*(line_x+line_y) 2 (line_x+line_y) line_x line_y String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int line_x = Integer.parseInt(line[0]);
            int line_y = Integer.parseInt(line[1]);

            System.out.println(line_x*line_y +" "+ 2*(line_x+line_y));
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int line_x = Integer.parseInt(line[0]);
            int line_y = Integer.parseInt(line[1]);

            System.out.println(line_x*line_y +" "+ 2*(line_x+line_y));
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int line_x = Integer.parseInt(line[0]);
            int line_y = Integer.parseInt(line[1]);

            System.out.println(line_x*line_y +" "+ 2*(line_x+line_y));
        }
    }
}