#include #include #include #include #include #include #include int main(){ long int n; long int m; long int c; scanf("%ld %ld",&n,&m); c=n*m; c=c-1; printf("%ld",c); return 0; }