#include using namespace std; int main() { unsigned long long a, b; scanf("%llu %llu", &a, &b); printf("%llu\n", (a*b)-1); return 0; }