
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String line = in.nextLine();
        String[] Array = line.split(" ");
        int A = Integer.parseInt(Array[0]);
        int B = Integer.parseInt(Array[1]);
        System.out.println(A*B+" "+2*(A+B));
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String line = in.nextLine();
        String[] Array = line.split(" ");
        int A = Integer.parseInt(Array[0]);
        int B = Integer.parseInt(Array[1]);
        System.out.println(A*B+" "+2*(A+B));
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String line = in.nextLine();
        String[] Array = line.split(" ");
        int A = Integer.parseInt(Array[0]);
        int B = Integer.parseInt(Array[1]);
        System.out.println(A*B+" "+2*(A+B));
    } main {
        Scanner in = new Scanner(System.in);
        String line = in.nextLine();
        String[] Array = line.split(" ");
        int A = Integer.parseInt(Array[0]);
        int B = Integer.parseInt(Array[1]);
        System.out.println(A*B+" "+2*(A+B));
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) String line = in.nextLine(); line in.nextLine() in.nextLine in String[] Array = line.split(" "); Array line.split(" ") line.split line " " int A = Integer.parseInt(Array[0]); A Integer.parseInt(Array[0]) Integer.parseInt Integer Array[0] Array 0 int B = Integer.parseInt(Array[1]); B Integer.parseInt(Array[1]) Integer.parseInt Integer Array[1] Array 1 System.out.println(A*B+" "+2*(A+B)) System.out.println System.out System System.out A*B+" "+2*(A+B) A*B+" "+2*(A+B) A*B A B " " 2*(A+B) 2 (A+B) A B String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String line = in.nextLine();
        String[] Array = line.split(" ");
        int A = Integer.parseInt(Array[0]);
        int B = Integer.parseInt(Array[1]);
        System.out.println(A*B+" "+2*(A+B));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String line = in.nextLine();
        String[] Array = line.split(" ");
        int A = Integer.parseInt(Array[0]);
        int B = Integer.parseInt(Array[1]);
        System.out.println(A*B+" "+2*(A+B));
    }
} Main

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String line = in.nextLine();
        String[] Array = line.split(" ");
        int A = Integer.parseInt(Array[0]);
        int B = Integer.parseInt(Array[1]);
        System.out.println(A*B+" "+2*(A+B));
    }
}