import java.io.*;
 
class Main{
    public static void main (String[ ] args) throws Exception{
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        String str = br.readLine();
        String[] strarr = str.split(" ");
        int a[] = new int[2];

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

        a[0] = Integer.parseInt(strarr[0]);
        a[1] = Integer.parseInt(strarr[1]);
        
        int ans[] = new int[2];
        ans[0] = a[0]*a[1];
        ans[1] = a[0]+a[1]+a[0]+a[1];
        
        System.out.println(ans[0] + " " + ans[1]);
    }
} Main public static void main (String[ ] args) throws Exception{
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        String str = br.readLine();
        String[] strarr = str.split(" ");
        int a[] = new int[2];

        a[0] = Integer.parseInt(strarr[0]);
        a[1] = Integer.parseInt(strarr[1]);
        
        int ans[] = new int[2];
        ans[0] = a[0]*a[1];
        ans[1] = a[0]+a[1]+a[0]+a[1];
        
        System.out.println(ans[0] + " " + ans[1]);
    } main {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        String str = br.readLine();
        String[] strarr = str.split(" ");
        int a[] = new int[2];

        a[0] = Integer.parseInt(strarr[0]);
        a[1] = Integer.parseInt(strarr[1]);
        
        int ans[] = new int[2];
        ans[0] = a[0]*a[1];
        ans[1] = a[0]+a[1]+a[0]+a[1];
        
        System.out.println(ans[0] + " " + ans[1]);
    } 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[] strarr = str.split(" "); strarr str.split(" ") str.split str " " int a[] = new int[2]; a new int[2] 2 a[0] = Integer.parseInt(strarr[0]) a[0] a 0 Integer.parseInt(strarr[0]) Integer.parseInt Integer strarr[0] strarr 0 a[1] = Integer.parseInt(strarr[1]) a[1] a 1 Integer.parseInt(strarr[1]) Integer.parseInt Integer strarr[1] strarr 1 int ans[] = new int[2]; ans new int[2] 2 ans[0] = a[0]*a[1] ans[0] ans 0 a[0]*a[1] a[0] a 0 a[1] a 1 ans[1] = a[0]+a[1]+a[0]+a[1] ans[1] ans 1 a[0]+a[1]+a[0]+a[1] a[0] a[0]+a[1]+a[0]+a[1] a[0] a 0 a[1] a 1 a[0] a 0 a[1] a 1 System.out.println(ans[0] + " " + ans[1]) System.out.println System.out System System.out ans[0] + " " + ans[1] ans[0] + " " + ans[1] ans[0] ans 0 " " ans[1] ans 1 String[ ] args args
import java.io.*;
 
class Main{
    public static void main (String[ ] args) throws Exception{
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        String str = br.readLine();
        String[] strarr = str.split(" ");
        int a[] = new int[2];

        a[0] = Integer.parseInt(strarr[0]);
        a[1] = Integer.parseInt(strarr[1]);
        
        int ans[] = new int[2];
        ans[0] = a[0]*a[1];
        ans[1] = a[0]+a[1]+a[0]+a[1];
        
        System.out.println(ans[0] + " " + ans[1]);
    }
}