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