import java.util.Scanner;
class Main{
    public static void main(String[]arge){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int men=a*b;
        int syu=(a+b)*2;
        System.out.print(men);
        System.out.println(" "+syu);   
    }
}
         import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[]arge){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int men=a*b;
        int syu=(a+b)*2;
        System.out.print(men);
        System.out.println(" "+syu);   
    }
} Main public static void main(String[]arge){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int men=a*b;
        int syu=(a+b)*2;
        System.out.print(men);
        System.out.println(" "+syu);   
    } main {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int men=a*b;
        int syu=(a+b)*2;
        System.out.print(men);
        System.out.println(" "+syu);   
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc int men=a*b; men a*b a b int syu=(a+b)*2; syu (a+b)*2 (a+b) a b 2 System.out.print(men) System.out.print System.out System System.out men System.out.println(" "+syu) System.out.println System.out System System.out " "+syu " " syu String[]arge arge
import java.util.Scanner;
class Main{
    public static void main(String[]arge){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int men=a*b;
        int syu=(a+b)*2;
        System.out.print(men);
        System.out.println(" "+syu);   
    }
}
        