import java.util.Scanner;

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

    public class Main{
        public void solve(){
        Scanner sc = new Scanner(System.in);
        int a,b,seki,syu;
		a=sc.nextInt();
		b=sc.nextInt();
		seki = a*b;
		syu = (a*2)+(b*2);
		System.out.println(seki+" "+syu);
        }
    public static void main(String[]args){
    Main obj = new Main();
    obj.solve();
    }
    }