#include using namespace std; int main() { long long width, height; cin >> width >> height; cout << ((width*height)-1) << '\n'; return 0; }