#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long long r, c; cin >> r >> c; cout << r*c-1; return 0; }