import java.io.*;

public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        String[] split=line.split(" ",0);
        int tate=Integer.parseInt(split[0]);
        int yoko=Integer.parseInt(split[1]);
        System.out.println((tate*yoko)+" "+(tate*2+yoko*2));
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        String[] split=line.split(" ",0);
        int tate=Integer.parseInt(split[0]);
        int yoko=Integer.parseInt(split[1]);
        System.out.println((tate*yoko)+" "+(tate*2+yoko*2));
    }
} Main public static void main(String[] args)throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        String[] split=line.split(" ",0);
        int tate=Integer.parseInt(split[0]);
        int yoko=Integer.parseInt(split[1]);
        System.out.println((tate*yoko)+" "+(tate*2+yoko*2));
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        String[] split=line.split(" ",0);
        int tate=Integer.parseInt(split[0]);
        int yoko=Integer.parseInt(split[1]);
        System.out.println((tate*yoko)+" "+(tate*2+yoko*2));
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line=br.readLine(); line br.readLine() br.readLine br String[] split=line.split(" ",0); split line.split(" ",0) line.split line " " 0 int tate=Integer.parseInt(split[0]); tate Integer.parseInt(split[0]) Integer.parseInt Integer split[0] split 0 int yoko=Integer.parseInt(split[1]); yoko Integer.parseInt(split[1]) Integer.parseInt Integer split[1] split 1 System.out.println((tate*yoko)+" "+(tate*2+yoko*2)) System.out.println System.out System System.out (tate*yoko)+" "+(tate*2+yoko*2) (tate*yoko)+" "+(tate*2+yoko*2) (tate*yoko) tate yoko " " (tate*2+yoko*2) tate*2 tate 2 yoko*2 yoko 2 String[] args args public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        String[] split=line.split(" ",0);
        int tate=Integer.parseInt(split[0]);
        int yoko=Integer.parseInt(split[1]);
        System.out.println((tate*yoko)+" "+(tate*2+yoko*2));
    }
} public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        String[] split=line.split(" ",0);
        int tate=Integer.parseInt(split[0]);
        int yoko=Integer.parseInt(split[1]);
        System.out.println((tate*yoko)+" "+(tate*2+yoko*2));
    }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        String[] split=line.split(" ",0);
        int tate=Integer.parseInt(split[0]);
        int yoko=Integer.parseInt(split[1]);
        System.out.println((tate*yoko)+" "+(tate*2+yoko*2));
    }
}