import java.util.Scanner;

public class Main{
    public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int w = sc.nextInt();
        int square = h*w;
        int circuit = 2*(h+w);
        System.out.println(square+" "+circuit);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int w = sc.nextInt();
        int square = h*w;
        int circuit = 2*(h+w);
        System.out.println(square+" "+circuit);
    }
} Main public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int w = sc.nextInt();
        int square = h*w;
        int circuit = 2*(h+w);
        System.out.println(square+" "+circuit);
    } main {
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int w = sc.nextInt();
        int square = h*w;
        int circuit = 2*(h+w);
        System.out.println(square+" "+circuit);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc int w = sc.nextInt(); w sc.nextInt() sc.nextInt sc int square = h*w; square h*w h w int circuit = 2*(h+w); circuit 2*(h+w) 2 (h+w) h w System.out.println(square+" "+circuit) System.out.println System.out System System.out square+" "+circuit square+" "+circuit square " " circuit String[] args args public class Main{
    public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int w = sc.nextInt();
        int square = h*w;
        int circuit = 2*(h+w);
        System.out.println(square+" "+circuit);
    }
} public class Main{
    public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int w = sc.nextInt();
        int square = h*w;
        int circuit = 2*(h+w);
        System.out.println(square+" "+circuit);
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int w = sc.nextInt();
        int square = h*w;
        int circuit = 2*(h+w);
        System.out.println(square+" "+circuit);
    }
}