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