import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int tate = in.nextInt();
        int yoko = in.nextInt();
        int menseki = tate*yoko;
        int syu = tate*2+yoko*2;
        System.out.println(menseki + " " + syu);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int tate = in.nextInt();
        int yoko = in.nextInt();
        int menseki = tate*yoko;
        int syu = tate*2+yoko*2;
        System.out.println(menseki + " " + syu);
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int tate = in.nextInt();
        int yoko = in.nextInt();
        int menseki = tate*yoko;
        int syu = tate*2+yoko*2;
        System.out.println(menseki + " " + syu);
    } main {
        Scanner in = new Scanner(System.in);
        int tate = in.nextInt();
        int yoko = in.nextInt();
        int menseki = tate*yoko;
        int syu = tate*2+yoko*2;
        System.out.println(menseki + " " + syu);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int tate = in.nextInt(); tate in.nextInt() in.nextInt in int yoko = in.nextInt(); yoko in.nextInt() in.nextInt in int menseki = tate*yoko; menseki tate*yoko tate yoko int syu = tate*2+yoko*2; syu tate*2+yoko*2 tate*2 tate 2 yoko*2 yoko 2 System.out.println(menseki + " " + syu) System.out.println System.out System System.out menseki + " " + syu menseki + " " + syu menseki " " syu String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int tate = in.nextInt();
        int yoko = in.nextInt();
        int menseki = tate*yoko;
        int syu = tate*2+yoko*2;
        System.out.println(menseki + " " + syu);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int tate = in.nextInt();
        int yoko = in.nextInt();
        int menseki = tate*yoko;
        int syu = tate*2+yoko*2;
        System.out.println(menseki + " " + syu);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int tate = in.nextInt();
        int yoko = in.nextInt();
        int menseki = tate*yoko;
        int syu = tate*2+yoko*2;
        System.out.println(menseki + " " + syu);
    }
}