import java.util.Scanner;
class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int Longitudinal = scanner.nextInt();
        int side = scanner.nextInt();

        int area = Longitudinal * side;
        int length = (Longitudinal + side) * 2;
        
        System.out.println(area + " " + length);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int Longitudinal = scanner.nextInt();
        int side = scanner.nextInt();

        int area = Longitudinal * side;
        int length = (Longitudinal + side) * 2;
        
        System.out.println(area + " " + length);
    }
} Main public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int Longitudinal = scanner.nextInt();
        int side = scanner.nextInt();

        int area = Longitudinal * side;
        int length = (Longitudinal + side) * 2;
        
        System.out.println(area + " " + length);
    } main {
        Scanner scanner = new Scanner(System.in);
        int Longitudinal = scanner.nextInt();
        int side = scanner.nextInt();

        int area = Longitudinal * side;
        int length = (Longitudinal + side) * 2;
        
        System.out.println(area + " " + length);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int Longitudinal = scanner.nextInt(); Longitudinal scanner.nextInt() scanner.nextInt scanner int side = scanner.nextInt(); side scanner.nextInt() scanner.nextInt scanner int area = Longitudinal * side; area Longitudinal * side Longitudinal side int length = (Longitudinal + side) * 2; length (Longitudinal + side) * 2 (Longitudinal + side) Longitudinal side 2 System.out.println(area + " " + length) System.out.println System.out System System.out area + " " + length area + " " + length area " " length String args[] args
import java.util.Scanner;
class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int Longitudinal = scanner.nextInt();
        int side = scanner.nextInt();

        int area = Longitudinal * side;
        int length = (Longitudinal + side) * 2;
        
        System.out.println(area + " " + length);
    }
}