import java.util.Scanner;

public class Main {


	/**
	 * たてとよこの長方形面積と周の長さを求める
	 * @param args　たて、よこ
	 */
		public static void main(String[] args){
			int tate ,yoko;
			Scanner scan = new Scanner(System.in);
			tate =	scan.nextInt();
			yoko = scan.nextInt();
			System.out.println(tate*yoko +" "+(tate+yoko)*2);
		}
}
 import java.util.Scanner; Scanner java.util public class Main {


	/**
	 * たてとよこの長方形面積と周の長さを求める
	 * @param args　たて、よこ
	 */
		public static void main(String[] args){
			int tate ,yoko;
			Scanner scan = new Scanner(System.in);
			tate =	scan.nextInt();
			yoko = scan.nextInt();
			System.out.println(tate*yoko +" "+(tate+yoko)*2);
		}
} Main /**
	 * たてとよこの長方形面積と周の長さを求める
	 * @param args　たて、よこ
	 */
		public static void main(String[] args){
			int tate ,yoko;
			Scanner scan = new Scanner(System.in);
			tate =	scan.nextInt();
			yoko = scan.nextInt();
			System.out.println(tate*yoko +" "+(tate+yoko)*2);
		} main {
			int tate ,yoko;
			Scanner scan = new Scanner(System.in);
			tate =	scan.nextInt();
			yoko = scan.nextInt();
			System.out.println(tate*yoko +" "+(tate+yoko)*2);
		} int tate tate yoko; yoko Scanner scan = new Scanner(System.in); scan new Scanner(System.in) tate =	scan.nextInt() tate scan.nextInt() scan.nextInt scan yoko = scan.nextInt() yoko scan.nextInt() scan.nextInt scan System.out.println(tate*yoko +" "+(tate+yoko)*2) System.out.println System.out System System.out tate*yoko +" "+(tate+yoko)*2 tate*yoko +" "+(tate+yoko)*2 tate*yoko tate yoko " " (tate+yoko)*2 (tate+yoko) tate yoko 2 String[] args args public class Main {


	/**
	 * たてとよこの長方形面積と周の長さを求める
	 * @param args　たて、よこ
	 */
		public static void main(String[] args){
			int tate ,yoko;
			Scanner scan = new Scanner(System.in);
			tate =	scan.nextInt();
			yoko = scan.nextInt();
			System.out.println(tate*yoko +" "+(tate+yoko)*2);
		}
} public class Main {


	/**
	 * たてとよこの長方形面積と周の長さを求める
	 * @param args　たて、よこ
	 */
		public static void main(String[] args){
			int tate ,yoko;
			Scanner scan = new Scanner(System.in);
			tate =	scan.nextInt();
			yoko = scan.nextInt();
			System.out.println(tate*yoko +" "+(tate+yoko)*2);
		}
} Main
import java.util.Scanner;

public class Main {


	/**
	 * たてとよこの長方形面積と周の長さを求める
	 * @param args　たて、よこ
	 */
		public static void main(String[] args){
			int tate ,yoko;
			Scanner scan = new Scanner(System.in);
			tate =	scan.nextInt();
			yoko = scan.nextInt();
			System.out.println(tate*yoko +" "+(tate+yoko)*2);
		}
}

