#include #include #include #include #include using namespace std; int main() { long n, m; cin>>n>>m; long long sum = n*m-1; cout<