import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.util.Scanner;
public class Main {
	public static void main( String[] args ) {
		Scanner sc = new Scanner( System.in ) ;
		String line = sc.nextLine();
		Pattern ptn = Pattern.compile( "^([0-9]+)\\s([0-9]+)$" ) ;
		Matcher mch = ptn.matcher( line );
		if ( mch.find() == true ) {
			int i = Integer.parseInt( mch.group(1) ) ;
			int j = Integer.parseInt( mch.group(2) ) ;
			System.out.println( i*j + " " + (2*i + 2*j) ) ;
		}
	}
} import java.util.regex.Pattern; Pattern java.util.regex import java.util.regex.Matcher; Matcher java.util.regex import java.util.Scanner; Scanner java.util public class Main {
	public static void main( String[] args ) {
		Scanner sc = new Scanner( System.in ) ;
		String line = sc.nextLine();
		Pattern ptn = Pattern.compile( "^([0-9]+)\\s([0-9]+)$" ) ;
		Matcher mch = ptn.matcher( line );
		if ( mch.find() == true ) {
			int i = Integer.parseInt( mch.group(1) ) ;
			int j = Integer.parseInt( mch.group(2) ) ;
			System.out.println( i*j + " " + (2*i + 2*j) ) ;
		}
	}
} Main public static void main( String[] args ) {
		Scanner sc = new Scanner( System.in ) ;
		String line = sc.nextLine();
		Pattern ptn = Pattern.compile( "^([0-9]+)\\s([0-9]+)$" ) ;
		Matcher mch = ptn.matcher( line );
		if ( mch.find() == true ) {
			int i = Integer.parseInt( mch.group(1) ) ;
			int j = Integer.parseInt( mch.group(2) ) ;
			System.out.println( i*j + " " + (2*i + 2*j) ) ;
		}
	} main {
		Scanner sc = new Scanner( System.in ) ;
		String line = sc.nextLine();
		Pattern ptn = Pattern.compile( "^([0-9]+)\\s([0-9]+)$" ) ;
		Matcher mch = ptn.matcher( line );
		if ( mch.find() == true ) {
			int i = Integer.parseInt( mch.group(1) ) ;
			int j = Integer.parseInt( mch.group(2) ) ;
			System.out.println( i*j + " " + (2*i + 2*j) ) ;
		}
	} Scanner sc = new Scanner( System.in ) ; sc new Scanner( System.in ) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc Pattern ptn = Pattern.compile( "^([0-9]+)\\s([0-9]+)$" ) ; ptn Pattern.compile( "^([0-9]+)\\s([0-9]+)$" ) Pattern.compile Pattern "^([0-9]+)\\s([0-9]+)$" Matcher mch = ptn.matcher( line ); mch ptn.matcher( line ) ptn.matcher ptn line if ( mch.find() == true ) {
			int i = Integer.parseInt( mch.group(1) ) ;
			int j = Integer.parseInt( mch.group(2) ) ;
			System.out.println( i*j + " " + (2*i + 2*j) ) ;
		} mch.find() == true mch.find() mch.find mch true {
			int i = Integer.parseInt( mch.group(1) ) ;
			int j = Integer.parseInt( mch.group(2) ) ;
			System.out.println( i*j + " " + (2*i + 2*j) ) ;
		} int i = Integer.parseInt( mch.group(1) ) ; i Integer.parseInt( mch.group(1) ) Integer.parseInt Integer mch.group(1) mch.group mch 1 int j = Integer.parseInt( mch.group(2) ) ; j Integer.parseInt( mch.group(2) ) Integer.parseInt Integer mch.group(2) mch.group mch 2 System.out.println( i*j + " " + (2*i + 2*j) ) System.out.println System.out System System.out i*j + " " + (2*i + 2*j) i*j + " " + (2*i + 2*j) i*j i j " " (2*i + 2*j) 2*i 2 i 2*j 2 j String[] args args public class Main {
	public static void main( String[] args ) {
		Scanner sc = new Scanner( System.in ) ;
		String line = sc.nextLine();
		Pattern ptn = Pattern.compile( "^([0-9]+)\\s([0-9]+)$" ) ;
		Matcher mch = ptn.matcher( line );
		if ( mch.find() == true ) {
			int i = Integer.parseInt( mch.group(1) ) ;
			int j = Integer.parseInt( mch.group(2) ) ;
			System.out.println( i*j + " " + (2*i + 2*j) ) ;
		}
	}
} public class Main {
	public static void main( String[] args ) {
		Scanner sc = new Scanner( System.in ) ;
		String line = sc.nextLine();
		Pattern ptn = Pattern.compile( "^([0-9]+)\\s([0-9]+)$" ) ;
		Matcher mch = ptn.matcher( line );
		if ( mch.find() == true ) {
			int i = Integer.parseInt( mch.group(1) ) ;
			int j = Integer.parseInt( mch.group(2) ) ;
			System.out.println( i*j + " " + (2*i + 2*j) ) ;
		}
	}
} Main
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.util.Scanner;
public class Main {
	public static void main( String[] args ) {
		Scanner sc = new Scanner( System.in ) ;
		String line = sc.nextLine();
		Pattern ptn = Pattern.compile( "^([0-9]+)\\s([0-9]+)$" ) ;
		Matcher mch = ptn.matcher( line );
		if ( mch.find() == true ) {
			int i = Integer.parseInt( mch.group(1) ) ;
			int j = Integer.parseInt( mch.group(2) ) ;
			System.out.println( i*j + " " + (2*i + 2*j) ) ;
		}
	}
}