import java.util.*;

class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int a, b;
a = scan.nextInt();
b = scan.nextInt();

System.out.println((a*b) + " " + ((a+b)*2));

}
} import java.util.*; util.* java class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int a, b;
a = scan.nextInt();
b = scan.nextInt();

System.out.println((a*b) + " " + ((a+b)*2));

}
} Main public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int a, b;
a = scan.nextInt();
b = scan.nextInt();

System.out.println((a*b) + " " + ((a+b)*2));

} main {
Scanner scan = new Scanner(System.in);
int a, b;
a = scan.nextInt();
b = scan.nextInt();

System.out.println((a*b) + " " + ((a+b)*2));

} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a a b; b a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan 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 String args[] args
import java.util.*;

class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int a, b;
a = scan.nextInt();
b = scan.nextInt();

System.out.println((a*b) + " " + ((a+b)*2));

}
}