import std.stdio;
import std.array;
import std.math;
import std.conv;
import std.string;
void main() {
	string[] input = split(chomp(readln));
	int x = to!int(input[0]);
	int y = to!int(input[1]);
	writeln((x*y)," ",(x*2 + y*2));
}