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