import java.util.Scanner;
 
class Main{
 public static void main(String[] args){
  int a;
  int b;
  Scanner sc = new Scanner(System.in);
  a = sc.nextInt();
  b = sc.nextInt();
 
  int area = a*b;
  int syu = 2*(a+b);
   
  System.out.println(area+" "+syu);
 }
} import java.util.Scanner; Scanner java.util class Main{
 public static void main(String[] args){
  int a;
  int b;
  Scanner sc = new Scanner(System.in);
  a = sc.nextInt();
  b = sc.nextInt();
 
  int area = a*b;
  int syu = 2*(a+b);
   
  System.out.println(area+" "+syu);
 }
} Main public static void main(String[] args){
  int a;
  int b;
  Scanner sc = new Scanner(System.in);
  a = sc.nextInt();
  b = sc.nextInt();
 
  int area = a*b;
  int syu = 2*(a+b);
   
  System.out.println(area+" "+syu);
 } main {
  int a;
  int b;
  Scanner sc = new Scanner(System.in);
  a = sc.nextInt();
  b = sc.nextInt();
 
  int area = a*b;
  int syu = 2*(a+b);
   
  System.out.println(area+" "+syu);
 } int a; a int b; b Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc int area = a*b; area a*b a b int syu = 2*(a+b); syu 2*(a+b) 2 (a+b) a b System.out.println(area+" "+syu) System.out.println System.out System System.out area+" "+syu area+" "+syu area " " syu String[] args args
import java.util.Scanner;
 
class Main{
 public static void main(String[] args){
  int a;
  int b;
  Scanner sc = new Scanner(System.in);
  a = sc.nextInt();
  b = sc.nextInt();
 
  int area = a*b;
  int syu = 2*(a+b);
   
  System.out.println(area+" "+syu);
 }
}