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