#include using namespace std; typedef long long int Int; int main() { Int r,c; cin>>r>>c; Int ans=(r-1)+r*(c-1); cout<