import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String aStr = sc.next();
		String bStr= sc.next();
		int a = 0;
		int b = 0;
		try {
			a = Integer.parseInt(aStr);
			b = Integer.parseInt(bStr);
			if (a >= 1 && b <= 100) {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			}
		} catch (Exception e) {
			System.out.println("error");
		}
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String aStr = sc.next();
		String bStr= sc.next();
		int a = 0;
		int b = 0;
		try {
			a = Integer.parseInt(aStr);
			b = Integer.parseInt(bStr);
			if (a >= 1 && b <= 100) {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			}
		} catch (Exception e) {
			System.out.println("error");
		}
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String aStr = sc.next();
		String bStr= sc.next();
		int a = 0;
		int b = 0;
		try {
			a = Integer.parseInt(aStr);
			b = Integer.parseInt(bStr);
			if (a >= 1 && b <= 100) {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			}
		} catch (Exception e) {
			System.out.println("error");
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		String aStr = sc.next();
		String bStr= sc.next();
		int a = 0;
		int b = 0;
		try {
			a = Integer.parseInt(aStr);
			b = Integer.parseInt(bStr);
			if (a >= 1 && b <= 100) {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			}
		} catch (Exception e) {
			System.out.println("error");
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String aStr = sc.next(); aStr sc.next() sc.next sc String bStr= sc.next(); bStr sc.next() sc.next sc int a = 0; a 0 int b = 0; b 0 try {
			a = Integer.parseInt(aStr);
			b = Integer.parseInt(bStr);
			if (a >= 1 && b <= 100) {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			}
		} catch (Exception e) {
			System.out.println("error");
		} catch (Exception e) {
			System.out.println("error");
		} Exception e {
			System.out.println("error");
		} System.out.println("error") System.out.println System.out System System.out "error" {
			a = Integer.parseInt(aStr);
			b = Integer.parseInt(bStr);
			if (a >= 1 && b <= 100) {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			}
		} a = Integer.parseInt(aStr) a Integer.parseInt(aStr) Integer.parseInt Integer aStr b = Integer.parseInt(bStr) b Integer.parseInt(bStr) Integer.parseInt Integer bStr if (a >= 1 && b <= 100) {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			} a >= 1 && b <= 100 a >= 1 a 1 b <= 100 b 100 {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			} int area = a * b; area a * b a b int circ = 2 * a + 2 * b; circ 2 * a + 2 * b 2 * a 2 a 2 * b 2 b System.out.println(area + " " + circ) System.out.println System.out System System.out area + " " + circ area + " " + circ area " " circ sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String aStr = sc.next();
		String bStr= sc.next();
		int a = 0;
		int b = 0;
		try {
			a = Integer.parseInt(aStr);
			b = Integer.parseInt(bStr);
			if (a >= 1 && b <= 100) {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			}
		} catch (Exception e) {
			System.out.println("error");
		}
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String aStr = sc.next();
		String bStr= sc.next();
		int a = 0;
		int b = 0;
		try {
			a = Integer.parseInt(aStr);
			b = Integer.parseInt(bStr);
			if (a >= 1 && b <= 100) {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			}
		} catch (Exception e) {
			System.out.println("error");
		}
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String aStr = sc.next();
		String bStr= sc.next();
		int a = 0;
		int b = 0;
		try {
			a = Integer.parseInt(aStr);
			b = Integer.parseInt(bStr);
			if (a >= 1 && b <= 100) {
				int area = a * b;
				int circ = 2 * a + 2 * b;
				System.out.println(area + " " + circ);
			}
		} catch (Exception e) {
			System.out.println("error");
		}
		sc.close();
	}
}