#include<iostream>
using namespace std;

int main(){
	int c, i;
	float im, brc;
	cin>>c>>i;
	im=i-1;
	brc=im*c;
	cout<<brc+1;
return 0;}