import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
      Scanner stdIn = new Scanner(System.in);
      int a = stdIn.nextInt();
      int b = stdIn.nextInt();
      int a1 = a*b;
      int a2 = 2*(a+b);
      System.out.printf("%d %d\n", a1, a2);
      }
 }
 import java.util.Scanner; Scanner java.util class Main
 {
   public static void main(String[] args)
      {
      Scanner stdIn = new Scanner(System.in);
      int a = stdIn.nextInt();
      int b = stdIn.nextInt();
      int a1 = a*b;
      int a2 = 2*(a+b);
      System.out.printf("%d %d\n", a1, a2);
      }
 } Main public static void main(String[] args)
      {
      Scanner stdIn = new Scanner(System.in);
      int a = stdIn.nextInt();
      int b = stdIn.nextInt();
      int a1 = a*b;
      int a2 = 2*(a+b);
      System.out.printf("%d %d\n", a1, a2);
      } main {
      Scanner stdIn = new Scanner(System.in);
      int a = stdIn.nextInt();
      int b = stdIn.nextInt();
      int a1 = a*b;
      int a2 = 2*(a+b);
      System.out.printf("%d %d\n", a1, a2);
      } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn int a1 = a*b; a1 a*b a b int a2 = 2*(a+b); a2 2*(a+b) 2 (a+b) a b System.out.printf("%d %d\n", a1, a2) System.out.printf System.out System System.out "%d %d\n" a1 a2 String[] args args
import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
      Scanner stdIn = new Scanner(System.in);
      int a = stdIn.nextInt();
      int b = stdIn.nextInt();
      int a1 = a*b;
      int a2 = 2*(a+b);
      System.out.printf("%d %d\n", a1, a2);
      }
 }

