import java.util.Scanner;
class Main{
    int x,y,men,seki;  
    public void yatary() {
        Scanner sc = new Scanner(System.in);
        x = sc.nextInt();
        y = sc.nextInt();
        men = x + x + y + y;
        seki = x * y;
        System.out.println(seki + " " + men);   
    }
    public static void main(String[] args){
    new Main().yatary();
    }
} import java.util.Scanner; Scanner java.util class Main{
    int x,y,men,seki;  
    public void yatary() {
        Scanner sc = new Scanner(System.in);
        x = sc.nextInt();
        y = sc.nextInt();
        men = x + x + y + y;
        seki = x * y;
        System.out.println(seki + " " + men);   
    }
    public static void main(String[] args){
    new Main().yatary();
    }
} Main int x x y y men men seki; seki public void yatary() {
        Scanner sc = new Scanner(System.in);
        x = sc.nextInt();
        y = sc.nextInt();
        men = x + x + y + y;
        seki = x * y;
        System.out.println(seki + " " + men);   
    } yatary {
        Scanner sc = new Scanner(System.in);
        x = sc.nextInt();
        y = sc.nextInt();
        men = x + x + y + y;
        seki = x * y;
        System.out.println(seki + " " + men);   
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc men = x + x + y + y men x + x + y + y y x + x + y + y x x y y seki = x * y seki x * y x y System.out.println(seki + " " + men) System.out.println System.out System System.out seki + " " + men seki + " " + men seki " " men public static void main(String[] args){
    new Main().yatary();
    } main {
    new Main().yatary();
    } new Main().yatary() new Main().yatary new Main() String[] args args
import java.util.Scanner;
class Main{
    int x,y,men,seki;  
    public void yatary() {
        Scanner sc = new Scanner(System.in);
        x = sc.nextInt();
        y = sc.nextInt();
        men = x + x + y + y;
        seki = x * y;
        System.out.println(seki + " " + men);   
    }
    public static void main(String[] args){
    new Main().yatary();
    }
}