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