import java.io.*;
import java.util.Scanner;
    
class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException {
        int a = ReadInt();
        int b = ReadInt();
        System.out.print(a * b + " " + (a + b) * 2 + "\n");
    }
    static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    }
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException {
        int a = ReadInt();
        int b = ReadInt();
        System.out.print(a * b + " " + (a + b) * 2 + "\n");
    }
    static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) throws IOException {
        int a = ReadInt();
        int b = ReadInt();
        System.out.print(a * b + " " + (a + b) * 2 + "\n");
    } main {
        int a = ReadInt();
        int b = ReadInt();
        System.out.print(a * b + " " + (a + b) * 2 + "\n");
    } int a = ReadInt(); a ReadInt() ReadInt int b = ReadInt(); b ReadInt() ReadInt System.out.print(a * b + " " + (a + b) * 2 + "\n") System.out.print System.out System System.out a * b + " " + (a + b) * 2 + "\n" (a + b) * 2 a * b + " " + (a + b) * 2 + "\n" a * b a b " " (a + b) * 2 (a + b) a b 2 "\n" String[] args args static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    } ReadInt {
        return Integer.parseInt(sc.next());
    } return Integer.parseInt(sc.next()); Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc
import java.io.*;
import java.util.Scanner;
    
class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException {
        int a = ReadInt();
        int b = ReadInt();
        System.out.print(a * b + " " + (a + b) * 2 + "\n");
    }
    static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    }
}