import java.util.Scanner;
public class Main {

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

public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);
		
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		
		int area = a * b;
		int perimeter = (2*a) + (2*b);
		System.out.println(area + " " + perimeter);
}
} Main public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);
		
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		
		int area = a * b;
		int perimeter = (2*a) + (2*b);
		System.out.println(area + " " + perimeter);
} main {
		
		Scanner scan = new Scanner(System.in);
		
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		
		int area = a * b;
		int perimeter = (2*a) + (2*b);
		System.out.println(area + " " + perimeter);
} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int area = a * b; area a * b a b int perimeter = (2*a) + (2*b); perimeter (2*a) + (2*b) (2*a) 2 a (2*b) 2 b System.out.println(area + " " + perimeter) System.out.println System.out System System.out area + " " + perimeter area + " " + perimeter area " " perimeter String[] args args public class Main {

public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);
		
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		
		int area = a * b;
		int perimeter = (2*a) + (2*b);
		System.out.println(area + " " + perimeter);
}
} public class Main {

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

public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);
		
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		
		int area = a * b;
		int perimeter = (2*a) + (2*b);
		System.out.println(area + " " + perimeter);
}
}

