//2704 上石　彩花
import java.util.Scanner;
public class Main{
	int a,b,c,d;
	
	public void solve(){
		Scanner sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		
		c=a*b;
		d=2*a+2*b;
		
		System.out.print(c+" ");
		System.out.println(d);
	}
	public static void main(String[]args){
		Main obj=new Main();
		obj.solve();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	int a,b,c,d;
	
	public void solve(){
		Scanner sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		
		c=a*b;
		d=2*a+2*b;
		
		System.out.print(c+" ");
		System.out.println(d);
	}
	public static void main(String[]args){
		Main obj=new Main();
		obj.solve();
	}
} Main int a a b b c c d; d public void solve(){
		Scanner sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		
		c=a*b;
		d=2*a+2*b;
		
		System.out.print(c+" ");
		System.out.println(d);
	} solve {
		Scanner sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		
		c=a*b;
		d=2*a+2*b;
		
		System.out.print(c+" ");
		System.out.println(d);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) a=sc.nextInt() a sc.nextInt() sc.nextInt sc b=sc.nextInt() b sc.nextInt() sc.nextInt sc c=a*b c a*b a b d=2*a+2*b d 2*a+2*b 2*a 2 a 2*b 2 b System.out.print(c+" ") System.out.print System.out System System.out c+" " c " " System.out.println(d) System.out.println System.out System System.out d public static void main(String[]args){
		Main obj=new Main();
		obj.solve();
	} main {
		Main obj=new Main();
		obj.solve();
	} Main obj=new Main(); obj new Main() obj.solve() obj.solve obj String[]args args public class Main{
	int a,b,c,d;
	
	public void solve(){
		Scanner sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		
		c=a*b;
		d=2*a+2*b;
		
		System.out.print(c+" ");
		System.out.println(d);
	}
	public static void main(String[]args){
		Main obj=new Main();
		obj.solve();
	}
} public class Main{
	int a,b,c,d;
	
	public void solve(){
		Scanner sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		
		c=a*b;
		d=2*a+2*b;
		
		System.out.print(c+" ");
		System.out.println(d);
	}
	public static void main(String[]args){
		Main obj=new Main();
		obj.solve();
	}
} Main
//2704 上石　彩花
import java.util.Scanner;
public class Main{
	int a,b,c,d;
	
	public void solve(){
		Scanner sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		
		c=a*b;
		d=2*a+2*b;
		
		System.out.print(c+" ");
		System.out.println(d);
	}
	public static void main(String[]args){
		Main obj=new Main();
		obj.solve();
	}
}