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