import java.util.Scanner;
class Main{
public static void main(String[] args)
{
Scanner scan =new Scanner(System.in);
String str1=scan.next();
String str2=scan.next();
int a=Integer.parseInt(str1);
int b=Integer.parseInt(str2);
System.out.println(a*b+" "+(a*2+b*2));
}
} import java.util.Scanner; Scanner java.util class Main{
public static void main(String[] args)
{
Scanner scan =new Scanner(System.in);
String str1=scan.next();
String str2=scan.next();
int a=Integer.parseInt(str1);
int b=Integer.parseInt(str2);
System.out.println(a*b+" "+(a*2+b*2));
}
} Main public static void main(String[] args)
{
Scanner scan =new Scanner(System.in);
String str1=scan.next();
String str2=scan.next();
int a=Integer.parseInt(str1);
int b=Integer.parseInt(str2);
System.out.println(a*b+" "+(a*2+b*2));
} main {
Scanner scan =new Scanner(System.in);
String str1=scan.next();
String str2=scan.next();
int a=Integer.parseInt(str1);
int b=Integer.parseInt(str2);
System.out.println(a*b+" "+(a*2+b*2));
} Scanner scan =new Scanner(System.in); scan new Scanner(System.in) String str1=scan.next(); str1 scan.next() scan.next scan String str2=scan.next(); str2 scan.next() scan.next scan int a=Integer.parseInt(str1); a Integer.parseInt(str1) Integer.parseInt Integer str1 int b=Integer.parseInt(str2); b Integer.parseInt(str2) Integer.parseInt Integer str2 System.out.println(a*b+" "+(a*2+b*2)) System.out.println System.out System System.out a*b+" "+(a*2+b*2) a*b+" "+(a*2+b*2) a*b a b " " (a*2+b*2) a*2 a 2 b*2 b 2 String[] args args
import java.util.Scanner;
class Main{
public static void main(String[] args)
{
Scanner scan =new Scanner(System.in);
String str1=scan.next();
String str2=scan.next();
int a=Integer.parseInt(str1);
int b=Integer.parseInt(str2);
System.out.println(a*b+" "+(a*2+b*2));
}
}