#include<cstdio>
#include<iostream>
#include<cmath>
#include<vector>
#include<ctime>

using namespace std;
int x,y,z;
int main(){
cin >> x >> y;
y--; z=x*y+1;
cout << z << endl;

//system ("pause");
return 0;
}
