noip2017d1t1(小凯的疑惑)
//同余方程
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
long long a,b,x;
cin>>a>>b;
x=a*b-a-b;
cout<<x<<endl;
return 0;
}
//同余方程
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
long long a,b,x;
cin>>a>>b;
x=a*b-a-b;
cout<<x<<endl;
return 0;
}