#include <stdio.h>
int main ()
{
int c ,r , x ;
while (scanf ("%d %d",&r ,&c) == 2)
{
x = r*c ;
printf ("%d\n",x-1) ;
}
return 0 ;
}
int main ()
{
int c ,r , x ;
while (scanf ("%d %d",&r ,&c) == 2)
{
x = r*c ;
printf ("%d\n",x-1) ;
}
return 0 ;
}