import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s  = line.split(" ");
		int height =Integer.parseInt(s[0]);
		int width=Integer.parseInt(s[1]);
		System.out.print(menseki(height,width));
		System.out.print(" ");
		System.out.println(shuu(height,width));
	}

	private static int menseki(int height, int width) {
		return height * width;
	}

	private static int shuu(int height, int width) {
		return (height + width) * 2;
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s  = line.split(" ");
		int height =Integer.parseInt(s[0]);
		int width=Integer.parseInt(s[1]);
		System.out.print(menseki(height,width));
		System.out.print(" ");
		System.out.println(shuu(height,width));
	}

	private static int menseki(int height, int width) {
		return height * width;
	}

	private static int shuu(int height, int width) {
		return (height + width) * 2;
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s  = line.split(" ");
		int height =Integer.parseInt(s[0]);
		int width=Integer.parseInt(s[1]);
		System.out.print(menseki(height,width));
		System.out.print(" ");
		System.out.println(shuu(height,width));
	} main {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s  = line.split(" ");
		int height =Integer.parseInt(s[0]);
		int width=Integer.parseInt(s[1]);
		System.out.print(menseki(height,width));
		System.out.print(" ");
		System.out.println(shuu(height,width));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] s  = line.split(" "); s line.split(" ") line.split line " " int height =Integer.parseInt(s[0]); height Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int width=Integer.parseInt(s[1]); width Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 System.out.print(menseki(height,width)) System.out.print System.out System System.out menseki(height,width) menseki height width System.out.print(" ") System.out.print System.out System System.out " " System.out.println(shuu(height,width)) System.out.println System.out System System.out shuu(height,width) shuu height width String[] args args private static int menseki(int height, int width) {
		return height * width;
	} menseki {
		return height * width;
	} return height * width; height * width height width int height height int width width private static int shuu(int height, int width) {
		return (height + width) * 2;
	} shuu {
		return (height + width) * 2;
	} return (height + width) * 2; (height + width) * 2 (height + width) height width 2 int height height int width width public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s  = line.split(" ");
		int height =Integer.parseInt(s[0]);
		int width=Integer.parseInt(s[1]);
		System.out.print(menseki(height,width));
		System.out.print(" ");
		System.out.println(shuu(height,width));
	}

	private static int menseki(int height, int width) {
		return height * width;
	}

	private static int shuu(int height, int width) {
		return (height + width) * 2;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s  = line.split(" ");
		int height =Integer.parseInt(s[0]);
		int width=Integer.parseInt(s[1]);
		System.out.print(menseki(height,width));
		System.out.print(" ");
		System.out.println(shuu(height,width));
	}

	private static int menseki(int height, int width) {
		return height * width;
	}

	private static int shuu(int height, int width) {
		return (height + width) * 2;
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s  = line.split(" ");
		int height =Integer.parseInt(s[0]);
		int width=Integer.parseInt(s[1]);
		System.out.print(menseki(height,width));
		System.out.print(" ");
		System.out.println(shuu(height,width));
	}

	private static int menseki(int height, int width) {
		return height * width;
	}

	private static int shuu(int height, int width) {
		return (height + width) * 2;
	}
}