import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		
		int val = scan.nextInt();
		int val2 = val;
		val = scan.nextInt();
		
		System.out.print(val * val2 + " ");
		System.out.println(val + val + val2 + val2);	
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		
		int val = scan.nextInt();
		int val2 = val;
		val = scan.nextInt();
		
		System.out.print(val * val2 + " ");
		System.out.println(val + val + val2 + val2);	
	}
} Main public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		
		int val = scan.nextInt();
		int val2 = val;
		val = scan.nextInt();
		
		System.out.print(val * val2 + " ");
		System.out.println(val + val + val2 + val2);	
	} main {
		
		Scanner scan = new Scanner(System.in);
		
		int val = scan.nextInt();
		int val2 = val;
		val = scan.nextInt();
		
		System.out.print(val * val2 + " ");
		System.out.println(val + val + val2 + val2);	
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int val = scan.nextInt(); val scan.nextInt() scan.nextInt scan int val2 = val; val2 val val = scan.nextInt() val scan.nextInt() scan.nextInt scan System.out.print(val * val2 + " ") System.out.print System.out System System.out val * val2 + " " val * val2 val val2 " " System.out.println(val + val + val2 + val2) System.out.println System.out System System.out val + val + val2 + val2 val2 val + val + val2 + val2 val val val2 val2 String[] args args public class Main {
	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		
		int val = scan.nextInt();
		int val2 = val;
		val = scan.nextInt();
		
		System.out.print(val * val2 + " ");
		System.out.println(val + val + val2 + val2);	
	}
} public class Main {
	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		
		int val = scan.nextInt();
		int val2 = val;
		val = scan.nextInt();
		
		System.out.print(val * val2 + " ");
		System.out.println(val + val + val2 + val2);	
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		
		int val = scan.nextInt();
		int val2 = val;
		val = scan.nextInt();
		
		System.out.print(val * val2 + " ");
		System.out.println(val + val + val2 + val2);	
	}
}