import java.util.Scanner;
public class Main{
    public void solve(){
        int t,y,men,syu;
        Scanner sc=new Scanner(System.in);
        t=sc.nextInt();
        y=sc.nextInt();
        men=t*y;
        syu=t*2+y*2;
        System.out.println(men+" "+syu);
    }
	public static void main(String[]args){
		Main obj =new Main();
		obj.solve();
	}
} import java.util.Scanner; Scanner java.util public class Main{
    public void solve(){
        int t,y,men,syu;
        Scanner sc=new Scanner(System.in);
        t=sc.nextInt();
        y=sc.nextInt();
        men=t*y;
        syu=t*2+y*2;
        System.out.println(men+" "+syu);
    }
	public static void main(String[]args){
		Main obj =new Main();
		obj.solve();
	}
} Main public void solve(){
        int t,y,men,syu;
        Scanner sc=new Scanner(System.in);
        t=sc.nextInt();
        y=sc.nextInt();
        men=t*y;
        syu=t*2+y*2;
        System.out.println(men+" "+syu);
    } solve {
        int t,y,men,syu;
        Scanner sc=new Scanner(System.in);
        t=sc.nextInt();
        y=sc.nextInt();
        men=t*y;
        syu=t*2+y*2;
        System.out.println(men+" "+syu);
    } int t t y y men men syu; syu Scanner sc=new Scanner(System.in); sc new Scanner(System.in) t=sc.nextInt() t sc.nextInt() sc.nextInt sc y=sc.nextInt() y sc.nextInt() sc.nextInt sc men=t*y men t*y t y syu=t*2+y*2 syu t*2+y*2 t*2 t 2 y*2 y 2 System.out.println(men+" "+syu) System.out.println System.out System System.out men+" "+syu men+" "+syu men " " syu 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{
    public void solve(){
        int t,y,men,syu;
        Scanner sc=new Scanner(System.in);
        t=sc.nextInt();
        y=sc.nextInt();
        men=t*y;
        syu=t*2+y*2;
        System.out.println(men+" "+syu);
    }
	public static void main(String[]args){
		Main obj =new Main();
		obj.solve();
	}
} public class Main{
    public void solve(){
        int t,y,men,syu;
        Scanner sc=new Scanner(System.in);
        t=sc.nextInt();
        y=sc.nextInt();
        men=t*y;
        syu=t*2+y*2;
        System.out.println(men+" "+syu);
    }
	public static void main(String[]args){
		Main obj =new Main();
		obj.solve();
	}
} Main
import java.util.Scanner;
public class Main{
    public void solve(){
        int t,y,men,syu;
        Scanner sc=new Scanner(System.in);
        t=sc.nextInt();
        y=sc.nextInt();
        men=t*y;
        syu=t*2+y*2;
        System.out.println(men+" "+syu);
    }
	public static void main(String[]args){
		Main obj =new Main();
		obj.solve();
	}
}