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