#include #include #include #include #include #include #include int main(){ long long int n,m; while(scanf("%lld %lld",&n,&m)==2) { printf("%lld\n",m*n-1); } return 0; }