#include #define ll long long int using namespace std; int main() { ll m,n,ans; cin>>m>>n; ans=m-1+(n-1)*m; cout<