import java.util.Scanner;

public class Main {

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

public static void main(String[] args){
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
int p = a*2 + b*2;
int ar = a*b;
System.out.println(ar+" "+p);
}
} Main public static void main(String[] args){
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
int p = a*2 + b*2;
int ar = a*b;
System.out.println(ar+" "+p);
} main {
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
int p = a*2 + b*2;
int ar = a*b;
System.out.println(ar+" "+p);
} Scanner input = new Scanner(System.in); input new Scanner(System.in) int a = input.nextInt(); a input.nextInt() input.nextInt input int b = input.nextInt(); b input.nextInt() input.nextInt input int p = a*2 + b*2; p a*2 + b*2 a*2 a 2 b*2 b 2 int ar = a*b; ar a*b a b System.out.println(ar+" "+p) System.out.println System.out System System.out ar+" "+p ar+" "+p ar " " p String[] args args public class Main {

public static void main(String[] args){
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
int p = a*2 + b*2;
int ar = a*b;
System.out.println(ar+" "+p);
}
} public class Main {

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

public class Main {

public static void main(String[] args){
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
int p = a*2 + b*2;
int ar = a*b;
System.out.println(ar+" "+p);
}
}
