import java.util.*;

public class Main {
    public static void main(String[] args) {
        int a, b, area, perimeter;
        Scanner scan = new Scanner(System.in);
        
        a = scan.nextInt();
        b = scan.nextInt();
        area = a * b;
        perimeter = (a + b) * 2;
        
        System.out.print(area);
        System.out.print(' ');
        System.out.println(perimeter);
        
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        int a, b, area, perimeter;
        Scanner scan = new Scanner(System.in);
        
        a = scan.nextInt();
        b = scan.nextInt();
        area = a * b;
        perimeter = (a + b) * 2;
        
        System.out.print(area);
        System.out.print(' ');
        System.out.println(perimeter);
        
        
    }
} Main public static void main(String[] args) {
        int a, b, area, perimeter;
        Scanner scan = new Scanner(System.in);
        
        a = scan.nextInt();
        b = scan.nextInt();
        area = a * b;
        perimeter = (a + b) * 2;
        
        System.out.print(area);
        System.out.print(' ');
        System.out.println(perimeter);
        
        
    } main {
        int a, b, area, perimeter;
        Scanner scan = new Scanner(System.in);
        
        a = scan.nextInt();
        b = scan.nextInt();
        area = a * b;
        perimeter = (a + b) * 2;
        
        System.out.print(area);
        System.out.print(' ');
        System.out.println(perimeter);
        
        
    } int a a b b area area perimeter; perimeter Scanner scan = new Scanner(System.in); scan new Scanner(System.in) a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan area = a * b area a * b a b perimeter = (a + b) * 2 perimeter (a + b) * 2 (a + b) a b 2 System.out.print(area) System.out.print System.out System System.out area System.out.print(' ') System.out.print System.out System System.out ' ' System.out.println(perimeter) System.out.println System.out System System.out perimeter String[] args args public class Main {
    public static void main(String[] args) {
        int a, b, area, perimeter;
        Scanner scan = new Scanner(System.in);
        
        a = scan.nextInt();
        b = scan.nextInt();
        area = a * b;
        perimeter = (a + b) * 2;
        
        System.out.print(area);
        System.out.print(' ');
        System.out.println(perimeter);
        
        
    }
} public class Main {
    public static void main(String[] args) {
        int a, b, area, perimeter;
        Scanner scan = new Scanner(System.in);
        
        a = scan.nextInt();
        b = scan.nextInt();
        area = a * b;
        perimeter = (a + b) * 2;
        
        System.out.print(area);
        System.out.print(' ');
        System.out.println(perimeter);
        
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        int a, b, area, perimeter;
        Scanner scan = new Scanner(System.in);
        
        a = scan.nextInt();
        b = scan.nextInt();
        area = a * b;
        perimeter = (a + b) * 2;
        
        System.out.print(area);
        System.out.print(' ');
        System.out.println(perimeter);
        
        
    }
}
