import java.util.*;public class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int a=s.nextInt(),b=s.nextInt();System.out.println(a*b+" "+2*(a+b));}} import java.util.*; util.* java public class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int a=s.nextInt(),b=s.nextInt();System.out.println(a*b+" "+2*(a+b));}} Main public static void main(String[]z){Scanner s=new Scanner(System.in);int a=s.nextInt(),b=s.nextInt();System.out.println(a*b+" "+2*(a+b));} main {Scanner s=new Scanner(System.in);int a=s.nextInt(),b=s.nextInt();System.out.println(a*b+" "+2*(a+b));} Scanner s=new Scanner(System.in); s new Scanner(System.in) int a=s.nextInt() a s.nextInt() s.nextInt s b=s.nextInt(); b s.nextInt() s.nextInt s System.out.println(a*b+" "+2*(a+b)) System.out.println System.out System System.out a*b+" "+2*(a+b) a*b+" "+2*(a+b) a*b a b " " 2*(a+b) 2 (a+b) a b String[]z z public class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int a=s.nextInt(),b=s.nextInt();System.out.println(a*b+" "+2*(a+b));}} public class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int a=s.nextInt(),b=s.nextInt();System.out.println(a*b+" "+2*(a+b));}} Main
import java.util.*;public class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int a=s.nextInt(),b=s.nextInt();System.out.println(a*b+" "+2*(a+b));}}