#include<iostream>
using namespace std;
int main()
{
	float a,b,c,nbr;
	cin>>a>>b;
	c=a*(b-1);
	nbr=c+1;
	cout<<nbr<<endl;


return 0;
}