import java.io.*;
public class Main{  
    public static void main(String[] args){
        try{
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String[] score = reader.readLine().split(" ");
			String txt1 = score[0];
			String txt2 = score[1];
			int a = Integer.parseInt(txt1);
			int b = Integer.parseInt(txt2);
			int num;
			int sum;
			num = a * b;
			sum = (a * 2) + (b * 2);
			System.out.println(num + " " + sum);
        }catch(IOException e){
            System.out.println(e);
        }
    }
} import java.io.*; io.* java public class Main{  
    public static void main(String[] args){
        try{
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String[] score = reader.readLine().split(" ");
			String txt1 = score[0];
			String txt2 = score[1];
			int a = Integer.parseInt(txt1);
			int b = Integer.parseInt(txt2);
			int num;
			int sum;
			num = a * b;
			sum = (a * 2) + (b * 2);
			System.out.println(num + " " + sum);
        }catch(IOException e){
            System.out.println(e);
        }
    }
} Main public static void main(String[] args){
        try{
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String[] score = reader.readLine().split(" ");
			String txt1 = score[0];
			String txt2 = score[1];
			int a = Integer.parseInt(txt1);
			int b = Integer.parseInt(txt2);
			int num;
			int sum;
			num = a * b;
			sum = (a * 2) + (b * 2);
			System.out.println(num + " " + sum);
        }catch(IOException e){
            System.out.println(e);
        }
    } main {
        try{
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String[] score = reader.readLine().split(" ");
			String txt1 = score[0];
			String txt2 = score[1];
			int a = Integer.parseInt(txt1);
			int b = Integer.parseInt(txt2);
			int num;
			int sum;
			num = a * b;
			sum = (a * 2) + (b * 2);
			System.out.println(num + " " + sum);
        }catch(IOException e){
            System.out.println(e);
        }
    } try{
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String[] score = reader.readLine().split(" ");
			String txt1 = score[0];
			String txt2 = score[1];
			int a = Integer.parseInt(txt1);
			int b = Integer.parseInt(txt2);
			int num;
			int sum;
			num = a * b;
			sum = (a * 2) + (b * 2);
			System.out.println(num + " " + sum);
        }catch(IOException e){
            System.out.println(e);
        } catch(IOException e){
            System.out.println(e);
        } IOException e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String[] score = reader.readLine().split(" ");
			String txt1 = score[0];
			String txt2 = score[1];
			int a = Integer.parseInt(txt1);
			int b = Integer.parseInt(txt2);
			int num;
			int sum;
			num = a * b;
			sum = (a * 2) + (b * 2);
			System.out.println(num + " " + sum);
        } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String[] score = reader.readLine().split(" "); score reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " String txt1 = score[0]; txt1 score[0] score 0 String txt2 = score[1]; txt2 score[1] score 1 int a = Integer.parseInt(txt1); a Integer.parseInt(txt1) Integer.parseInt Integer txt1 int b = Integer.parseInt(txt2); b Integer.parseInt(txt2) Integer.parseInt Integer txt2 int num; num int sum; sum num = a * b num a * b a b sum = (a * 2) + (b * 2) sum (a * 2) + (b * 2) (a * 2) a 2 (b * 2) b 2 System.out.println(num + " " + sum) System.out.println System.out System System.out num + " " + sum num + " " + sum num " " sum String[] args args public class Main{  
    public static void main(String[] args){
        try{
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String[] score = reader.readLine().split(" ");
			String txt1 = score[0];
			String txt2 = score[1];
			int a = Integer.parseInt(txt1);
			int b = Integer.parseInt(txt2);
			int num;
			int sum;
			num = a * b;
			sum = (a * 2) + (b * 2);
			System.out.println(num + " " + sum);
        }catch(IOException e){
            System.out.println(e);
        }
    }
} public class Main{  
    public static void main(String[] args){
        try{
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String[] score = reader.readLine().split(" ");
			String txt1 = score[0];
			String txt2 = score[1];
			int a = Integer.parseInt(txt1);
			int b = Integer.parseInt(txt2);
			int num;
			int sum;
			num = a * b;
			sum = (a * 2) + (b * 2);
			System.out.println(num + " " + sum);
        }catch(IOException e){
            System.out.println(e);
        }
    }
} Main
import java.io.*;
public class Main{  
    public static void main(String[] args){
        try{
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String[] score = reader.readLine().split(" ");
			String txt1 = score[0];
			String txt2 = score[1];
			int a = Integer.parseInt(txt1);
			int b = Integer.parseInt(txt2);
			int num;
			int sum;
			num = a * b;
			sum = (a * 2) + (b * 2);
			System.out.println(num + " " + sum);
        }catch(IOException e){
            System.out.println(e);
        }
    }
}