import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main{
	public static void main (String[] args) throws java.lang.Exception{
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		int an = Integer.parseInt(a);
		int bn = Integer.parseInt(b);
		int sq = an * bn;
		int arnd = 2 * (an + bn);
		System.out.println(sq + " " + arnd);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main{
	public static void main (String[] args) throws java.lang.Exception{
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		int an = Integer.parseInt(a);
		int bn = Integer.parseInt(b);
		int sq = an * bn;
		int arnd = 2 * (an + bn);
		System.out.println(sq + " " + arnd);
	}
} Main public static void main (String[] args) throws java.lang.Exception{
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		int an = Integer.parseInt(a);
		int bn = Integer.parseInt(b);
		int sq = an * bn;
		int arnd = 2 * (an + bn);
		System.out.println(sq + " " + arnd);
	} main {
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		int an = Integer.parseInt(a);
		int bn = Integer.parseInt(b);
		int sq = an * bn;
		int arnd = 2 * (an + bn);
		System.out.println(sq + " " + arnd);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String a = scan.next(); a scan.next() scan.next scan String b = scan.next(); b scan.next() scan.next scan int an = Integer.parseInt(a); an Integer.parseInt(a) Integer.parseInt Integer a int bn = Integer.parseInt(b); bn Integer.parseInt(b) Integer.parseInt Integer b int sq = an * bn; sq an * bn an bn int arnd = 2 * (an + bn); arnd 2 * (an + bn) 2 (an + bn) an bn System.out.println(sq + " " + arnd) System.out.println System.out System System.out sq + " " + arnd sq + " " + arnd sq " " arnd String[] args args
import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main{
	public static void main (String[] args) throws java.lang.Exception{
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = scan.next();
		int an = Integer.parseInt(a);
		int bn = Integer.parseInt(b);
		int sq = an * bn;
		int arnd = 2 * (an + bn);
		System.out.println(sq + " " + arnd);
	}
}