import java.util.Scanner;


class Main {
	public static void main(String args[]) {
		
	Scanner sc = new Scanner(System.in);
	String  t = sc.next();
	int a = Integer.parseInt(t);
	String  y = sc.next();
	int b = Integer.parseInt(y);
	System.out.print( a * b );
	System.out.print( " " );
	System.out.println( a + a + b + b );
	}

} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String args[]) {
		
	Scanner sc = new Scanner(System.in);
	String  t = sc.next();
	int a = Integer.parseInt(t);
	String  y = sc.next();
	int b = Integer.parseInt(y);
	System.out.print( a * b );
	System.out.print( " " );
	System.out.println( a + a + b + b );
	}

} Main public static void main(String args[]) {
		
	Scanner sc = new Scanner(System.in);
	String  t = sc.next();
	int a = Integer.parseInt(t);
	String  y = sc.next();
	int b = Integer.parseInt(y);
	System.out.print( a * b );
	System.out.print( " " );
	System.out.println( a + a + b + b );
	} main {
		
	Scanner sc = new Scanner(System.in);
	String  t = sc.next();
	int a = Integer.parseInt(t);
	String  y = sc.next();
	int b = Integer.parseInt(y);
	System.out.print( a * b );
	System.out.print( " " );
	System.out.println( a + a + b + b );
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String  t = sc.next(); t sc.next() sc.next sc int a = Integer.parseInt(t); a Integer.parseInt(t) Integer.parseInt Integer t String  y = sc.next(); y sc.next() sc.next sc int b = Integer.parseInt(y); b Integer.parseInt(y) Integer.parseInt Integer y System.out.print( a * b ) System.out.print System.out System System.out a * b a b System.out.print( " " ) System.out.print System.out System System.out " " System.out.println( a + a + b + b ) System.out.println System.out System System.out a + a + b + b b a + a + b + b a a b b String args[] args
import java.util.Scanner;


class Main {
	public static void main(String args[]) {
		
	Scanner sc = new Scanner(System.in);
	String  t = sc.next();
	int a = Integer.parseInt(t);
	String  y = sc.next();
	int b = Integer.parseInt(y);
	System.out.print( a * b );
	System.out.print( " " );
	System.out.println( a + a + b + b );
	}

}