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