import java.util.*;

public class Main {
	public static void main(String args[]){
		Scanner scn = new Scanner(System.in);
		String input = scn.nextLine();
		String[] token = input.split(" ");
		int a = Integer.parseInt(token[0]);
		int b = Integer.parseInt(token[1]);
		System.out.println(a*b + " " + 2*(a+b));
	}
} import java.util.*; util.* java public class Main {
	public static void main(String args[]){
		Scanner scn = new Scanner(System.in);
		String input = scn.nextLine();
		String[] token = input.split(" ");
		int a = Integer.parseInt(token[0]);
		int b = Integer.parseInt(token[1]);
		System.out.println(a*b + " " + 2*(a+b));
	}
} Main public static void main(String args[]){
		Scanner scn = new Scanner(System.in);
		String input = scn.nextLine();
		String[] token = input.split(" ");
		int a = Integer.parseInt(token[0]);
		int b = Integer.parseInt(token[1]);
		System.out.println(a*b + " " + 2*(a+b));
	} main {
		Scanner scn = new Scanner(System.in);
		String input = scn.nextLine();
		String[] token = input.split(" ");
		int a = Integer.parseInt(token[0]);
		int b = Integer.parseInt(token[1]);
		System.out.println(a*b + " " + 2*(a+b));
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) String input = scn.nextLine(); input scn.nextLine() scn.nextLine scn String[] token = input.split(" "); token input.split(" ") input.split input " " int a = Integer.parseInt(token[0]); a Integer.parseInt(token[0]) Integer.parseInt Integer token[0] token 0 int b = Integer.parseInt(token[1]); b Integer.parseInt(token[1]) Integer.parseInt Integer token[1] token 1 System.out.println(a*b + " " + 2*(a+b)) System.out.println System.out System System.out a*b + " " + 2*(a+b) a*b + " " + 2*(a+b) a*b a b " " 2*(a+b) 2 (a+b) a b String args[] args public class Main {
	public static void main(String args[]){
		Scanner scn = new Scanner(System.in);
		String input = scn.nextLine();
		String[] token = input.split(" ");
		int a = Integer.parseInt(token[0]);
		int b = Integer.parseInt(token[1]);
		System.out.println(a*b + " " + 2*(a+b));
	}
} public class Main {
	public static void main(String args[]){
		Scanner scn = new Scanner(System.in);
		String input = scn.nextLine();
		String[] token = input.split(" ");
		int a = Integer.parseInt(token[0]);
		int b = Integer.parseInt(token[1]);
		System.out.println(a*b + " " + 2*(a+b));
	}
} Main
import java.util.*;

public class Main {
	public static void main(String args[]){
		Scanner scn = new Scanner(System.in);
		String input = scn.nextLine();
		String[] token = input.split(" ");
		int a = Integer.parseInt(token[0]);
		int b = Integer.parseInt(token[1]);
		System.out.println(a*b + " " + 2*(a+b));
	}
}