import java.io.IOException;
import java.util.Scanner;

class Main{
    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String text = String.format("%s %s", a * b, 2*a + 2*b);
        System.out.println(text);
    }
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String text = String.format("%s %s", a * b, 2*a + 2*b);
        System.out.println(text);
    }
} Main public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String text = String.format("%s %s", a * b, 2*a + 2*b);
        System.out.println(text);
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String text = String.format("%s %s", a * b, 2*a + 2*b);
        System.out.println(text);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan String text = String.format("%s %s", a * b, 2*a + 2*b); text String.format("%s %s", a * b, 2*a + 2*b) String.format String "%s %s" a * b a b 2*a + 2*b 2*a 2 a 2*b 2 b System.out.println(text) System.out.println System.out System System.out text String[] args args
import java.io.IOException;
import java.util.Scanner;

class Main{
    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String text = String.format("%s %s", a * b, 2*a + 2*b);
        System.out.println(text);
    }
}