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