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