import java.io.*;

public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
        String[] cut = input.split(" ");
        int surface = Integer.parseInt(cut[0]);
        int length = Integer.parseInt(cut[1]);
        System.out.println(surface * length + " " + 2 * ( surface + length ));
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
        String[] cut = input.split(" ");
        int surface = Integer.parseInt(cut[0]);
        int length = Integer.parseInt(cut[1]);
        System.out.println(surface * length + " " + 2 * ( surface + length ));
    }
} Main public static void main(String[] args)throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
        String[] cut = input.split(" ");
        int surface = Integer.parseInt(cut[0]);
        int length = Integer.parseInt(cut[1]);
        System.out.println(surface * length + " " + 2 * ( surface + length ));
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
        String[] cut = input.split(" ");
        int surface = Integer.parseInt(cut[0]);
        int length = Integer.parseInt(cut[1]);
        System.out.println(surface * length + " " + 2 * ( surface + length ));
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String input = br.readLine(); input br.readLine() br.readLine br String[] cut = input.split(" "); cut input.split(" ") input.split input " " int surface = Integer.parseInt(cut[0]); surface Integer.parseInt(cut[0]) Integer.parseInt Integer cut[0] cut 0 int length = Integer.parseInt(cut[1]); length Integer.parseInt(cut[1]) Integer.parseInt Integer cut[1] cut 1 System.out.println(surface * length + " " + 2 * ( surface + length )) System.out.println System.out System System.out surface * length + " " + 2 * ( surface + length ) surface * length + " " + 2 * ( surface + length ) surface * length surface length " " 2 * ( surface + length ) 2 ( surface + length ) surface length String[] args args public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
        String[] cut = input.split(" ");
        int surface = Integer.parseInt(cut[0]);
        int length = Integer.parseInt(cut[1]);
        System.out.println(surface * length + " " + 2 * ( surface + length ));
    }
} public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
        String[] cut = input.split(" ");
        int surface = Integer.parseInt(cut[0]);
        int length = Integer.parseInt(cut[1]);
        System.out.println(surface * length + " " + 2 * ( surface + length ));
    }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
        String[] cut = input.split(" ");
        int surface = Integer.parseInt(cut[0]);
        int length = Integer.parseInt(cut[1]);
        System.out.println(surface * length + " " + 2 * ( surface + length ));
    }
}