import java.util.Scanner;
 
    class Main {
    public static void main(String args[] )  {
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();	
	    int b = sc.nextInt();
            int i = a * b;
            int o = (a+b)*2;
            System.out.printf("%d %d%n",i,o);
        }
    } import java.util.Scanner; Scanner java.util class Main {
    public static void main(String args[] )  {
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();	
	    int b = sc.nextInt();
            int i = a * b;
            int o = (a+b)*2;
            System.out.printf("%d %d%n",i,o);
        }
    } Main public static void main(String args[] )  {
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();	
	    int b = sc.nextInt();
            int i = a * b;
            int o = (a+b)*2;
            System.out.printf("%d %d%n",i,o);
        } main {
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();	
	    int b = sc.nextInt();
            int i = a * b;
            int o = (a+b)*2;
            System.out.printf("%d %d%n",i,o);
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int i = a * b; i a * b a b int o = (a+b)*2; o (a+b)*2 (a+b) a b 2 System.out.printf("%d %d%n",i,o) System.out.printf System.out System System.out "%d %d%n" i o String args[] args
import java.util.Scanner;
 
    class Main {
    public static void main(String args[] )  {
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();	
	    int b = sc.nextInt();
            int i = a * b;
            int o = (a+b)*2;
            System.out.printf("%d %d%n",i,o);
        }
    }