#include<stdio.h>
#include<stdio.h>

int main()

{
   int A,B,area ;
    scanf ("%d",&A);
    scanf("%d",&B);
    if((A>=2&&A<=100)&&(B>=2&&B<=100))
   {

   area=(A-1)*(B-1) ;
    printf("the area is %d square yards.",area);

}


return 0 ;
}
