

import java.util.Scanner;

public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);

		int height = scanner.nextInt();
		int length = scanner.nextInt();	
		while(height < 1 );
		while(length > 100);

		int round = 2*height + 2*length;
		int area = length * height;

		System.out.println(area + " " + round);
	}
}
 import java.util.Scanner; Scanner java.util public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);

		int height = scanner.nextInt();
		int length = scanner.nextInt();	
		while(height < 1 );
		while(length > 100);

		int round = 2*height + 2*length;
		int area = length * height;

		System.out.println(area + " " + round);
	}
} Main private static Scanner scanner; scanner public static void main(String[] args) {

		scanner = new Scanner(System.in);

		int height = scanner.nextInt();
		int length = scanner.nextInt();	
		while(height < 1 );
		while(length > 100);

		int round = 2*height + 2*length;
		int area = length * height;

		System.out.println(area + " " + round);
	} main {

		scanner = new Scanner(System.in);

		int height = scanner.nextInt();
		int length = scanner.nextInt();	
		while(height < 1 );
		while(length > 100);

		int round = 2*height + 2*length;
		int area = length * height;

		System.out.println(area + " " + round);
	} scanner = new Scanner(System.in) scanner new Scanner(System.in) int height = scanner.nextInt(); height scanner.nextInt() scanner.nextInt scanner int length = scanner.nextInt(); length scanner.nextInt() scanner.nextInt scanner while(height < 1 ); height < 1 height 1 while(length > 100); length > 100 length 100 int round = 2*height + 2*length; round 2*height + 2*length 2*height 2 height 2*length 2 length int area = length * height; area length * height length height System.out.println(area + " " + round) System.out.println System.out System System.out area + " " + round area + " " + round area " " round String[] args args public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);

		int height = scanner.nextInt();
		int length = scanner.nextInt();	
		while(height < 1 );
		while(length > 100);

		int round = 2*height + 2*length;
		int area = length * height;

		System.out.println(area + " " + round);
	}
} public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);

		int height = scanner.nextInt();
		int length = scanner.nextInt();	
		while(height < 1 );
		while(length > 100);

		int round = 2*height + 2*length;
		int area = length * height;

		System.out.println(area + " " + round);
	}
} Main


import java.util.Scanner;

public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);

		int height = scanner.nextInt();
		int length = scanner.nextInt();	
		while(height < 1 );
		while(length > 100);

		int round = 2*height + 2*length;
		int area = length * height;

		System.out.println(area + " " + round);
	}
}

