#include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long long int n, m; cin >> n >> m; long long ans = (n-1) + (m-1)* n; cout << ans <