#include int main() { int m, n, c; while(scanf("%d %d", &m, &n)!=EOF) { c = (m*n) - 1; printf("%d\n", c); } return 0; }