import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String[] whStr = reader.readLine().split(" ");
    int w = Integer.parseInt(whStr[0]);
    int h = Integer.parseInt(whStr[1]);
    
    System.out.println((w * h) + " " + (w * 2 + h * 2));
  }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String[] whStr = reader.readLine().split(" ");
    int w = Integer.parseInt(whStr[0]);
    int h = Integer.parseInt(whStr[1]);
    
    System.out.println((w * h) + " " + (w * 2 + h * 2));
  }

} Main public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String[] whStr = reader.readLine().split(" ");
    int w = Integer.parseInt(whStr[0]);
    int h = Integer.parseInt(whStr[1]);
    
    System.out.println((w * h) + " " + (w * 2 + h * 2));
  } main {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String[] whStr = reader.readLine().split(" ");
    int w = Integer.parseInt(whStr[0]);
    int h = Integer.parseInt(whStr[1]);
    
    System.out.println((w * h) + " " + (w * 2 + h * 2));
  } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String[] whStr = reader.readLine().split(" "); whStr reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int w = Integer.parseInt(whStr[0]); w Integer.parseInt(whStr[0]) Integer.parseInt Integer whStr[0] whStr 0 int h = Integer.parseInt(whStr[1]); h Integer.parseInt(whStr[1]) Integer.parseInt Integer whStr[1] whStr 1 System.out.println((w * h) + " " + (w * 2 + h * 2)) System.out.println System.out System System.out (w * h) + " " + (w * 2 + h * 2) (w * h) + " " + (w * 2 + h * 2) (w * h) w h " " (w * 2 + h * 2) w * 2 w 2 h * 2 h 2 String[] args args public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String[] whStr = reader.readLine().split(" ");
    int w = Integer.parseInt(whStr[0]);
    int h = Integer.parseInt(whStr[1]);
    
    System.out.println((w * h) + " " + (w * 2 + h * 2));
  }

} public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String[] whStr = reader.readLine().split(" ");
    int w = Integer.parseInt(whStr[0]);
    int h = Integer.parseInt(whStr[1]);
    
    System.out.println((w * h) + " " + (w * 2 + h * 2));
  }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String[] whStr = reader.readLine().split(" ");
    int w = Integer.parseInt(whStr[0]);
    int h = Integer.parseInt(whStr[1]);
    
    System.out.println((w * h) + " " + (w * 2 + h * 2));
  }

}