#include using namespace std; int main() { long long int n,m; scanf("%lld %lld",&n,&m); printf("%lld",n*m - 1); return 0; }