
import java.util.Scanner;

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

import java.util.Scanner;

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