#include #include #include #include #include using namespace std; typedef long long ll; typedef long double ld; typedef pair pii; #define Boost ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0) #define pb push_back #define mp make_pair const int inf = 2147483647; const int MOD = 1e9+7; const int MAXN = 1e5+9; int main() { // Boost; ll n,m; cin>>n>>m; cout<<(n*m)-1; return 0; }