import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = 0;
		int b = 0;
		int menseki = 0;
		int shu = 0;

		a = sc.nextInt();
		b = sc.nextInt();

		menseki = a * b;
		shu = ( a * 2 ) + ( b * 2 );

		System.out.println( menseki + " " + shu );
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = 0;
		int b = 0;
		int menseki = 0;
		int shu = 0;

		a = sc.nextInt();
		b = sc.nextInt();

		menseki = a * b;
		shu = ( a * 2 ) + ( b * 2 );

		System.out.println( menseki + " " + shu );
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = 0;
		int b = 0;
		int menseki = 0;
		int shu = 0;

		a = sc.nextInt();
		b = sc.nextInt();

		menseki = a * b;
		shu = ( a * 2 ) + ( b * 2 );

		System.out.println( menseki + " " + shu );
	} main {
		Scanner sc = new Scanner(System.in);

		int a = 0;
		int b = 0;
		int menseki = 0;
		int shu = 0;

		a = sc.nextInt();
		b = sc.nextInt();

		menseki = a * b;
		shu = ( a * 2 ) + ( b * 2 );

		System.out.println( menseki + " " + shu );
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = 0; a 0 int b = 0; b 0 int menseki = 0; menseki 0 int shu = 0; shu 0 a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc menseki = a * b menseki a * b a b shu = ( a * 2 ) + ( b * 2 ) shu ( a * 2 ) + ( b * 2 ) ( a * 2 ) a 2 ( b * 2 ) b 2 System.out.println( menseki + " " + shu ) System.out.println System.out System System.out menseki + " " + shu menseki + " " + shu menseki " " shu String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = 0;
		int b = 0;
		int menseki = 0;
		int shu = 0;

		a = sc.nextInt();
		b = sc.nextInt();

		menseki = a * b;
		shu = ( a * 2 ) + ( b * 2 );

		System.out.println( menseki + " " + shu );
	}
}