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