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