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