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

class Main{
  public static void main(String[] args){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
      String str = br.readLine();
      String str2[] = str.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      System.out.println(a*b + " " + (a+b)*2);
      br.close();
    } catch (IOException e){
      System.err.println(e.toString());
    }
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io class Main{
  public static void main(String[] args){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
      String str = br.readLine();
      String str2[] = str.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      System.out.println(a*b + " " + (a+b)*2);
      br.close();
    } catch (IOException e){
      System.err.println(e.toString());
    }
  }
} Main public static void main(String[] args){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
      String str = br.readLine();
      String str2[] = str.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      System.out.println(a*b + " " + (a+b)*2);
      br.close();
    } catch (IOException e){
      System.err.println(e.toString());
    }
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
      String str = br.readLine();
      String str2[] = str.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      System.out.println(a*b + " " + (a+b)*2);
      br.close();
    } catch (IOException e){
      System.err.println(e.toString());
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {
      String str = br.readLine();
      String str2[] = str.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      System.out.println(a*b + " " + (a+b)*2);
      br.close();
    } catch (IOException e){
      System.err.println(e.toString());
    } catch (IOException e){
      System.err.println(e.toString());
    } IOException e {
      System.err.println(e.toString());
    } System.err.println(e.toString()) System.err.println System.err System System.err e.toString() e.toString e {
      String str = br.readLine();
      String str2[] = str.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      System.out.println(a*b + " " + (a+b)*2);
      br.close();
    } String str = br.readLine(); str br.readLine() br.readLine br String str2[] = str.split(" "); str2 str.split(" ") str.split str " " int a = Integer.parseInt(str2[0]); a Integer.parseInt(str2[0]) Integer.parseInt Integer str2[0] str2 0 int b = Integer.parseInt(str2[1]); b Integer.parseInt(str2[1]) Integer.parseInt Integer str2[1] str2 1 System.out.println(a*b + " " + (a+b)*2) System.out.println System.out System System.out a*b + " " + (a+b)*2 a*b + " " + (a+b)*2 a*b a b " " (a+b)*2 (a+b) a b 2 br.close() br.close br String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{
  public static void main(String[] args){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
      String str = br.readLine();
      String str2[] = str.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      System.out.println(a*b + " " + (a+b)*2);
      br.close();
    } catch (IOException e){
      System.err.println(e.toString());
    }
  }
}
