#include #include using namespace std; typedef long long ll; ll a, b; int main() { cin >> a >> b; cout << a * b - 1 << endl; return 0; }