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