import java.util.Scanner;

class Main
{
  public static void main(String[] args) {
    int x, y;
    Scanner s = new Scanner(System.in);
    x = s.nextInt();
    y = s.nextInt();
    int perimeter = 2*x + 2*y;
    System.out.println(x*y+" "+perimeter);
  }
} import java.util.Scanner; Scanner java.util class Main
{
  public static void main(String[] args) {
    int x, y;
    Scanner s = new Scanner(System.in);
    x = s.nextInt();
    y = s.nextInt();
    int perimeter = 2*x + 2*y;
    System.out.println(x*y+" "+perimeter);
  }
} Main public static void main(String[] args) {
    int x, y;
    Scanner s = new Scanner(System.in);
    x = s.nextInt();
    y = s.nextInt();
    int perimeter = 2*x + 2*y;
    System.out.println(x*y+" "+perimeter);
  } main {
    int x, y;
    Scanner s = new Scanner(System.in);
    x = s.nextInt();
    y = s.nextInt();
    int perimeter = 2*x + 2*y;
    System.out.println(x*y+" "+perimeter);
  } int x x y; y Scanner s = new Scanner(System.in); s new Scanner(System.in) x = s.nextInt() x s.nextInt() s.nextInt s y = s.nextInt() y s.nextInt() s.nextInt s int perimeter = 2*x + 2*y; perimeter 2*x + 2*y 2*x 2 x 2*y 2 y System.out.println(x*y+" "+perimeter) System.out.println System.out System System.out x*y+" "+perimeter x*y+" "+perimeter x*y x y " " perimeter String[] args args
import java.util.Scanner;

class Main
{
  public static void main(String[] args) {
    int x, y;
    Scanner s = new Scanner(System.in);
    x = s.nextInt();
    y = s.nextInt();
    int perimeter = 2*x + 2*y;
    System.out.println(x*y+" "+perimeter);
  }
}